summaryrefslogtreecommitdiff
path: root/deskutils/tomboy/Makefile
diff options
context:
space:
mode:
authorRomain Tartière <romain@FreeBSD.org>2010-10-06 19:24:53 +0000
committerRomain Tartière <romain@FreeBSD.org>2010-10-06 19:24:53 +0000
commit76fdb9acff0bc76f9e1e54131bcbd68170d0d4d1 (patch)
tree5451f5529c123525561c5efc2d44ce341b448ee9 /deskutils/tomboy/Makefile
parentThe stock dependencies are now fixed. (diff)
- Add an OPTION to provide the old GNOME applet;
- Do not bump PORTREVISION since the package with default options is left unchanged.
Notes
Notes: svn path=/head/; revision=262533
Diffstat (limited to 'deskutils/tomboy/Makefile')
-rw-r--r--deskutils/tomboy/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/deskutils/tomboy/Makefile b/deskutils/tomboy/Makefile
index 8f8c8bd4a167..aa5b53347258 100644
--- a/deskutils/tomboy/Makefile
+++ b/deskutils/tomboy/Makefile
@@ -40,11 +40,21 @@ CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
MAN1= tomboy.1
GCONF_SCHEMAS= tomboy.schemas
+OPTIONS= APPLET "Enable GNOME panel applet" off
+
# Restrict to stable (even) versions, indicated by the second component.
PORTSCOUT= limitw:1,even
.include <bsd.port.pre.mk>
+.if defined(WITH_APPLET)
+CONFIGURE_ARGS+=--enable-panel-applet
+PLIST_SUB+= APPLET=""
+.else
+CONFIGURE_ARGS+=--disable-panel-applet
+PLIST_SUB+= APPLET="@comment "
+.endif
+
post-patch:
@${REINPLACE_CMD} 's|`$$PKG_CONFIG --variable=libdir libpanelapplet-2.0`|"$$libdir"|g; \
s|PANELAPPLET_SERVER_DIR="$$libdir|PANELAPPLET_SERVER_DIR="$$prefix/libdata|g; \