Tweak x11-themes/cursor-crystal-theme version 1.1.1_5
[dports.git] / x11-themes / cursor-crystal-theme / Makefile
1 # Created by: David Naylor <naylor.b.david@gmail.com>
2 # $FreeBSD: x11-themes/cursor-crystal-theme/Makefile 327783 2013-09-20 23:54:03Z bapt $
3
4 # Note: 1)      If port is interupted while compiling, "make clean" must be run before
5 #               attempting to recompile.
6
7 PORTNAME=       cursor-crystal-theme
8 DISTVERSION=    1.1.1
9 PORTREVISION=   5
10 CATEGORIES=     x11-themes
11 MASTER_SITES=   http://www.notmart.org/files/ \
12                 http://pinguin.stttelkom.ac.id/gentoo/distfiles/
13 DISTNAME=       Crystalcursors
14
15 MAINTAINER=     dbn@FreeBSD.org
16 COMMENT=        KDE Crystal style X cursor theme
17
18 BUILD_DEPENDS=  convert:${PORTSDIR}/graphics/ImageMagick \
19                 xcursorgen:${PORTSDIR}/x11/xcursorgen
20
21 USE_BZIP2=      yes
22 USE_GMAKE=      yes
23
24 NO_STAGE=       yes
25 post-patch:
26         @${REINPLACE_CMD} -e 's|function ||' \
27                 ${WRKSRC}/colorize.sh \
28                 ${WRKSRC}/left-handed_templates/flopalltheme.sh \
29                 ${WRKSRC}/left-handed_templates/floptheme.sh
30         @${REINPLACE_CMD} -e 's|make|$${MAKE}|g' \
31                 ${WRKSRC}/blue_src/Makefile \
32                 ${WRKSRC}/gray_src/Makefile \
33                 ${WRKSRC}/green_src/Makefile \
34                 ${WRKSRC}/left-handed_templates/Makefile \
35                 ${WRKSRC}/white_src/Makefile
36
37 pre-install:
38         @${REINPLACE_CMD} \
39                 -e 's|$$(HOME)/.icons/|${DESTDIR}${PREFIX}/lib/X11/icons|' \
40                 -e 's|$$(MAKE) .*install|$$(MAKE) PREFIX=${DESTDIR}${PREFIX}/lib/X11/icons install|g' \
41                 -e 's|theme.default .*/default/index.theme|theme.default ${DESTDIR}${PREFIX}/lib/X11/icons/default/index.theme|' \
42                 ${WRKSRC}/Makefile
43
44 .include <bsd.port.mk>