aboutsummaryrefslogtreecommitdiff
path: root/x11-themes/gtk-qnxtheme/Makefile
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-05-31 14:49:26 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-05-31 14:49:26 +0000
commitebb04f49c21a7da2953675b331eb7c9b1cb7d35b (patch)
tree334e2b5d414b5b4e2d6139fd6873cb1dfd72552a /x11-themes/gtk-qnxtheme/Makefile
parent1884ff8c5075f3e906d1bd2d422dba3269b523d8 (diff)
downloadports-ebb04f49c21a7da2953675b331eb7c9b1cb7d35b.tar.gz
ports-ebb04f49c21a7da2953675b331eb7c9b1cb7d35b.zip
Notes
Diffstat (limited to 'x11-themes/gtk-qnxtheme/Makefile')
-rw-r--r--x11-themes/gtk-qnxtheme/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/x11-themes/gtk-qnxtheme/Makefile b/x11-themes/gtk-qnxtheme/Makefile
index eff65757311e..09864779e367 100644
--- a/x11-themes/gtk-qnxtheme/Makefile
+++ b/x11-themes/gtk-qnxtheme/Makefile
@@ -15,20 +15,22 @@ DISTNAME= 3414-qnxtheme-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= QNX-inspired theme for GTK1 and GTK2
-OPTIONS= GTK2 "Build the GTK2 theme as well" on
+OPTIONS_DEFINE= GTK2
+OPTIONS_DEFALT= GTK2
+GTK2_DESC= Build the GTK2 theme as well
NO_WRKSUBDIR= yes
NO_BUILD= yes
WANT_GNOME= yes
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITHOUT_GTK2)
-PLIST_SUB+= GTK2="@comment "
-.else
+.if ${PORT_OPTIONS:MGTK2}
USE_GNOME= gtk20
PLIST_SUB+= GTK2=""
+.else
+PLIST_SUB+= GTK2="@comment "
.endif
post-patch:
@@ -44,10 +46,10 @@ do-install:
@${MKDIR} ${PREFIX}/share/themes/qnxtheme/gtk
@(cd ${WRKSRC}/QNX/gtk \
&& ${COPYTREE_SHARE} . ${PREFIX}/share/themes/qnxtheme/gtk)
-.if !defined(WITHOUT_GTK2)
+.if ${PORT_OPTIONS:MGTK2}
@${MKDIR} ${PREFIX}/share/themes/qnxtheme/gtk-2.0
@(cd ${WRKSRC}/QNX/gtk-2.0 \
&& ${COPYTREE_SHARE} . ${PREFIX}/share/themes/qnxtheme/gtk-2.0)
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>