aboutsummaryrefslogtreecommitdiffstats
path: root/x11-themes
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-02-19 05:16:04 +0800
committerpav <pav@FreeBSD.org>2005-02-19 05:16:04 +0800
commit532d2549ebc41259bf1703858622967871336f0e (patch)
tree7ef14d2ed9d6185d227c10211b5cb20c53658158 /x11-themes
parentda7b25d8caad8eb9b5756632cea1c0fa88eea3fc (diff)
downloadfreebsd-ports-gnome-532d2549ebc41259bf1703858622967871336f0e.tar.gz
freebsd-ports-gnome-532d2549ebc41259bf1703858622967871336f0e.tar.zst
freebsd-ports-gnome-532d2549ebc41259bf1703858622967871336f0e.zip
- Use ${MASTER_SITE_THEMES}
- OPTIONS'ify - Fix plist as reported by pointyhat PR: ports/77461 Submitted by: Miguel Mendez <flynn@energyhq.es.eu.org> (maintainer)
Diffstat (limited to 'x11-themes')
-rw-r--r--x11-themes/gtk-qnxtheme/Makefile30
-rw-r--r--x11-themes/gtk-qnxtheme/pkg-plist1
2 files changed, 17 insertions, 14 deletions
diff --git a/x11-themes/gtk-qnxtheme/Makefile b/x11-themes/gtk-qnxtheme/Makefile
index 32ec7eddb96f..c78c14a717b4 100644
--- a/x11-themes/gtk-qnxtheme/Makefile
+++ b/x11-themes/gtk-qnxtheme/Makefile
@@ -9,12 +9,23 @@ PORTNAME= gtk-qnxtheme
PORTVERSION= 0.1
PORTREVISION= 2
CATEGORIES= x11-themes
-MASTER_SITES= http://download.freshmeat.net/themes/qnxtheme/
+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=""
@@ -22,18 +33,9 @@ PLIST_SUB+= GTK2=""
PLIST_SUB+= GTK2="@comment "
.endif
-USE_REINPLACE= yes
-USE_X_PREFIX= yes
-NO_BUILD= yes
-WRKSRC= ${WRKDIR}/QNX
-
-pre-everything::
- @${ECHO} ""
- @${ECHO} "By default only gtk-1.2 theme engine will be built."
- @${ECHO} "You may use the following build options:"
- @${ECHO} ""
- @${ECHO} " WITH_GTK2=yes Build gtk-2 theme"
- @${ECHO} ""
+# 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
@@ -53,4 +55,4 @@ do-install:
done
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/x11-themes/gtk-qnxtheme/pkg-plist b/x11-themes/gtk-qnxtheme/pkg-plist
index 14f3c6649596..bb02d9b74b75 100644
--- a/x11-themes/gtk-qnxtheme/pkg-plist
+++ b/x11-themes/gtk-qnxtheme/pkg-plist
@@ -75,3 +75,4 @@ share/themes/qnxtheme/gtk/vbuttonbar.png
%%GTK2%%@dirrm share/themes/qnxtheme/gtk-2.0
@dirrm share/themes/qnxtheme/gtk
@dirrm share/themes/qnxtheme
+@unexec rmdir %D/share/themes 2>/dev/null || true