summaryrefslogtreecommitdiffstats
path: root/x11-themes/gtk-qnxtheme/Makefile
blob: c78c14a717b45b1db8a8b6ac86ae90ff06ef42f7 (plain)
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
# New ports collection makefile for:	qnxtheme
# Date created:         Thu Jan 30 13:27:44 CET 2003
# Whom:                 Miguel Mendez <flynn@energyhq.homeip.net>
#
# $FreeBSD$
#

PORTNAME=	gtk-qnxtheme
PORTVERSION=	0.1
PORTREVISION=	2
CATEGORIES=	x11-themes
MASTER_SITES=	${MASTER_SITE_THEMES}
MASTER_SITE_SUBDIR=	qnxtheme
DISTNAME=	qnxtheme-default-${PORTVERSION}

MAINTAINER=	flynn@energyhq.es.eu.org
COMMENT=	QNX-inspired theme for GTK1 and GTK2

WANT_GNOME=	yes
USE_REINPLACE=	yes
USE_X_PREFIX=	yes
NO_BUILD=	yes
WRKSRC=		${WRKDIR}/QNX

OPTIONS+=	GTK2	"Build the GTK2 theme as well." off

.include	<bsd.port.pre.mk>

.if defined(WITH_GTK2)
USE_GNOME=	gtk20
PLIST_SUB+=	GTK2=""
.else
PLIST_SUB+=	GTK2="@comment "
.endif

# XXX - port build fails unless I create dummy file if OPTIONS aren't yet set
post-extract:
	@${ECHO_CMD} "all:" > ${WRKSRC}/Makefile

do-install:
	@${REINPLACE_CMD} -e 's@/usr@${X11BASE}@g' ${WRKSRC}/gtk/gtkrc
	@${REINPLACE_CMD} -e 's@QNX@qnxtheme@g' ${WRKSRC}/gtk/gtkrc
	@${RM} -f ${WRKSRC}/gtk/gtkrc.bak
	@${MKDIR} ${X11BASE}/share/themes/qnxtheme/gtk
	@for i in ${WRKSRC}/gtk/*; do \
		${INSTALL_DATA} $$i ${X11BASE}/share/themes/qnxtheme/gtk; \
	done
.if defined(WITH_GTK2)
	@${REINPLACE_CMD} -e 's@/usr@${X11BASE}@g' ${WRKSRC}/gtk-2.0/gtkrc
	@${REINPLACE_CMD} -e 's@QNX@qnxtheme@g' ${WRKSRC}/gtk-2.0/gtkrc
	@${RM} -f ${WRKSRC}/gtk-2.0/gtkrc.bak
	@${MKDIR} ${X11BASE}/share/themes/qnxtheme/gtk-2.0
	@for i in ${WRKSRC}/gtk-2.0/*; do \
		 ${INSTALL_DATA} $$i ${X11BASE}/share/themes/qnxtheme/gtk-2.0; \
	done
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud