aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2012-03-16 10:59:17 +0800
committermezz <mezz@FreeBSD.org>2012-03-16 10:59:17 +0800
commit482ea91872d3b94f883d1d9f48c5d2f6d5317f22 (patch)
tree523ebe88f6ee98cd6657e72bc32c6d22e9ed071c /x11-toolkits
parent86705b6c99ad2dc802e544892105f0f40f556f86 (diff)
downloadfreebsd-ports-gnome-482ea91872d3b94f883d1d9f48c5d2f6d5317f22.tar.gz
freebsd-ports-gnome-482ea91872d3b94f883d1d9f48c5d2f6d5317f22.tar.zst
freebsd-ports-gnome-482ea91872d3b94f883d1d9f48c5d2f6d5317f22.zip
Make startup notification to optional.
PR: ports/164500 Submitted by: Zhihao Yuan <lichray@gmail.com> Feature safe: yes
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/libwnck/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/x11-toolkits/libwnck/Makefile b/x11-toolkits/libwnck/Makefile
index 7f56c986d44e..1c2db6e8862d 100644
--- a/x11-toolkits/libwnck/Makefile
+++ b/x11-toolkits/libwnck/Makefile
@@ -21,7 +21,6 @@ USE_BZIP2= yes
.if !defined(REFERENCE_PORT)
BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
-LIB_DEPENDS= startup-notification-1.0:${PORTSDIR}/x11/startup-notification
RUN_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
USE_GETTEXT= yes
@@ -35,6 +34,17 @@ CONFIGURE_ARGS= --with-html-dir=${PREFIX}/share/doc
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.include <bsd.port.mk>
+OPTIONS= STARTUP "Enable startup notification support" on
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_STARTUP)
+LIB_DEPENDS+= startup-notification-1.0:${PORTSDIR}/x11/startup-notification
+CONFIGURE_ARGS+=--enable-startup-notification
+.else
+CONFIGURE_ARGS+=--disable-startup-notification
+.endif
+
+.include <bsd.port.post.mk>
.endif