2003-01-30 19:27:51 +00:00
|
|
|
# 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
|
2004-02-04 05:10:27 +00:00
|
|
|
PORTREVISION= 2
|
2004-06-02 02:26:24 +00:00
|
|
|
CATEGORIES= x11-themes
|
2005-02-18 21:16:04 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_THEMES}
|
|
|
|
MASTER_SITE_SUBDIR= qnxtheme
|
2003-01-30 19:27:51 +00:00
|
|
|
DISTNAME= qnxtheme-default-${PORTVERSION}
|
|
|
|
|
2004-03-18 03:46:12 +00:00
|
|
|
MAINTAINER= flynn@energyhq.es.eu.org
|
2003-02-21 14:19:11 +00:00
|
|
|
COMMENT= QNX-inspired theme for GTK1 and GTK2
|
2003-01-30 19:27:51 +00:00
|
|
|
|
2005-02-18 21:16:04 +00:00
|
|
|
WANT_GNOME= 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>
|
|
|
|
|
2003-01-30 19:27:51 +00:00
|
|
|
.if defined(WITH_GTK2)
|
2004-04-13 15:04:46 +00:00
|
|
|
USE_GNOME= gtk20
|
2003-01-30 19:27:51 +00:00
|
|
|
PLIST_SUB+= GTK2=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GTK2="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-02-18 21:16:04 +00:00
|
|
|
# XXX - port build fails unless I create dummy file if OPTIONS aren't yet set
|
|
|
|
post-extract:
|
|
|
|
@${ECHO_CMD} "all:" > ${WRKSRC}/Makefile
|
2003-01-30 19:27:51 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2005-02-18 21:16:04 +00:00
|
|
|
.include <bsd.port.post.mk>
|