aboutsummaryrefslogtreecommitdiff
path: root/x11-themes/cursor-crystal-theme/Makefile
blob: f24bdd429fe330ff98d0aa035799914a3f753cf6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:	cursor-crystal-theme
# Date created:			6 Jun 2007
# Whom:				David Naylor <naylor.b.david@gmail.com>
#
# $FreeBSD$
#

# Note:	1)	If port is interupted while compiling, "make clean" must be run before
#		attempting to recompile.

PORTNAME=	cursor-crystal-theme
DISTVERSION=	1.1.1
PORTREVISION=	3
CATEGORIES=	x11-themes
MASTER_SITES=	http://www.notmart.org/files/ \
		http://pinguin.stttelkom.ac.id/gentoo/distfiles/
DISTNAME=	Crystalcursors

MAINTAINER=	naylor.b.david@gmail.com
COMMENT=	KDE Crystal style X cursor theme

BUILD_DEPENDS=	convert:${PORTSDIR}/graphics/ImageMagick \
		xcursorgen:${PORTSDIR}/x11/xcursorgen

USE_BZIP2=	yes
USE_GMAKE=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|function ||' \
		${WRKSRC}/colorize.sh \
		${WRKSRC}/left-handed_templates/flopalltheme.sh \
		${WRKSRC}/left-handed_templates/floptheme.sh
	@${REINPLACE_CMD} -e 's|make|$${MAKE}|g' \
		${WRKSRC}/blue_src/Makefile \
		${WRKSRC}/gray_src/Makefile \
		${WRKSRC}/green_src/Makefile \
		${WRKSRC}/left-handed_templates/Makefile \
		${WRKSRC}/white_src/Makefile

pre-install:
	@${REINPLACE_CMD} \
		-e 's|$$(HOME)/.icons/|${DESTDIR}${PREFIX}/lib/X11/icons|' \
		-e 's|$$(MAKE) .*install|$$(MAKE) PREFIX=${DESTDIR}${PREFIX}/lib/X11/icons install|g' \
		-e 's|theme.default .*/default/index.theme|theme.default ${DESTDIR}${PREFIX}/lib/X11/icons/default/index.theme|' \
		${WRKSRC}/Makefile

.include <bsd.port.mk>