summaryrefslogtreecommitdiff
path: root/x11-toolkits
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2012-03-16 02:59:17 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2012-03-16 02:59:17 +0000
commit6c70c5f94ba65295accd6a05ac9b3ce84151924c (patch)
treed1eaa14a8f83b6b1a29a6f33e6446e082dc7877e /x11-toolkits
parent- Patches to fix tests (diff)
Make startup notification to optional.
PR: ports/164500 Submitted by: Zhihao Yuan <lichray@gmail.com> Feature safe: yes
Notes
Notes: svn path=/head/; revision=293392
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