summaryrefslogtreecommitdiff
path: root/x11-themes/bluecurve-themes/Makefile
blob: 94cebd5b4073a84bd52d71c4aec1e09e517c1562 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# New ports collection makefile for:	bluecurve-themes
# Date created:			29 May 2005
# Whom:				Jean-Yves Lefort <jylefort@FreeBSD.org>
#
# $FreeBSD$
#

# NOTE TO VISITING COMMITTER: if you need to bump the port revisions
# of the slave ports, you should add PORTREVISION?= to the "master
# port" section below.

PORTNAME?=	bluecurve-themes
PORTREVISION=	1
CATEGORIES=	x11-themes

MAINTAINER=	ports@FreeBSD.org
COMMENT?=	Meta-port for Bluecurve themes

.if ${PORTNAME} == "bluecurve-themes"	# meta-port

PORTVERSION=	1.0
# PORTREVISION is useless for a meta-port, but it was incorrectly
# added to the global section by someone (with the intent of bumping
# the revisions of the slave ports) and it cannot be removed without
# causing a version downgrade or using PORTEPOCH.
PORTREVISION=	4
MASTER_SITES=	# empty
DISTFILES=	# empty
EXTRACT_ONLY=	# empty

# note: gtk-/icon-/metacity- are brought in by gnome-
RUN_DEPENDS=	${LOCALBASE}/lib/X11/icons/Bluecurve/cursors/X_cursor:${PORTSDIR}/x11-themes/cursor-bluecurve-theme \
		${LOCALBASE}/share/themes/Bluecurve/index.theme:${PORTSDIR}/x11-themes/gnome-bluecurve-theme \
		${LINUXBASE}/usr/share/themes/Bluecurve/gtk-2.0/gtkrc:${PORTSDIR}/x11-themes/linux-gtk-bluecurve-theme \
		${LOCALBASE}/lib/plugins/styles/bluecurve.so:${PORTSDIR}/x11-themes/qt-bluecurve-theme \
		${LOCALBASE}/share/xmms/Skins/Bluecurve-xmms.zip:${PORTSDIR}/x11-themes/xmms-bluecurve-theme

NO_BUILD=	yes

do-install:	# empty

.else					# master port

PORTVERSION=	7.0.0
CATEGORIES=	x11-themes
MASTER_SITES=	${MASTER_SITE_FEDORA_LINUX}
MASTER_SITE_SUBDIR=	../releases/7/Fedora/source/SRPMS/
DISTFILES=	redhat-artwork-${PORTVERSION}-9.fc7.src.rpm

EXTRACT_DEPENDS+=	rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio

WRKSRC=		${WRKDIR}/redhat-artwork-${PORTVERSION}

# the slave ports use their own pkg files and dirs
DESCR?=		${.CURDIR}/pkg-descr
PLIST?=		${.CURDIR}/pkg-plist
FILESDIR=	${.CURDIR}/files
SCRIPTDIR=	${.CURDIR}/scripts

do-extract:
	@${MKDIR} ${WRKDIR}
	@cd ${WRKDIR} && \
	rpm2cpio.pl ${_DISTDIR}/${_DISTFILES} | ${CPIO} -id --quiet && \
	${TAR} -zxf redhat-artwork-${PORTVERSION}.tar.gz

.if defined(BC_HIERS)
.if !exists(${PLIST})
PLIST=		${WRKDIR}/pkg-plist

pre-install: bc-generate-plist
.endif

bc-generate-plist:
	@${RM} -f ${PLIST}
	@for h in ${BC_HIERS}; do \
		src=`${ECHO_CMD} "$$h" | ${CUT} -f 1 -d ':'` && \
		dst_rel=`${ECHO_CMD} "$$h" | ${CUT} -f 2 -d ':' | ${SED} -e 's|^${PREFIX}/||'` && \
		cd "$$src" && \
		${FIND} * ! -type d | ${SORT} \
			| ${SED} -e "s|^|$$dst_rel/|" >> ${PLIST} && \
		${FIND} * -type d ! -empty | ${SORT} -r \
			| ${SED} -e "s|^|@dirrm $$dst_rel/|" >> ${PLIST}; \
	done

do-install:
	for h in ${BC_HIERS}; do \
		src=`${ECHO_CMD} "$$h" | ${CUT} -f 1 -d ':'` && \
		dst=`${ECHO_CMD} "$$h" | ${CUT} -f 2 -d ':'` && \
		${MKDIR} "$$dst" && cd "$$src" && \
		${FIND} * -type d ! -empty -exec \
			${MKDIR} "$$dst/{}" \; && \
		${FIND} * -type l -exec \
			${CP} -Rf "{}" "$$dst/{}" \; && \
		${FIND} * ! -type d ! -type l -exec \
			${INSTALL_DATA} "{}" "$$dst/{}" \; ; \
	done

.endif				# BC_HIERS

.endif				# master port

.if !defined(_BC_MK_INCLUDED)
.include <bsd.port.mk>
.endif