summaryrefslogtreecommitdiff
path: root/deskutils
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
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')
-rw-r--r--deskutils/tomboy/Makefile10
-rw-r--r--deskutils/tomboy/pkg-plist4
2 files changed, 14 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; \
diff --git a/deskutils/tomboy/pkg-plist b/deskutils/tomboy/pkg-plist
index 643dec9dadb0..cbaeaa382b9b 100644
--- a/deskutils/tomboy/pkg-plist
+++ b/deskutils/tomboy/pkg-plist
@@ -1,5 +1,6 @@
@comment $FreeBSD$
bin/tomboy
+%%APPLET%%bin/tomboy-panel
lib/tomboy/Tomboy.exe
lib/tomboy/Tomboy.exe.config
lib/tomboy/Tomboy.exe.mdb
@@ -36,6 +37,7 @@ lib/tomboy/addins/WebSyncServiceAddin.dll
lib/tomboy/addins/WebSyncServiceAddin.dll.mdb
lib/tomboy/libtomboy.la
lib/tomboy/libtomboy.so
+%%APPLET%%libdata/bonobo/servers/GNOME_TomboyApplet.server
libdata/pkgconfig/tomboy-addins.pc
share/applications/tomboy.desktop
share/dbus-1/services/org.gnome.Tomboy.service
@@ -1004,5 +1006,7 @@ share/mime/packages/tomboy.xml
@dirrm share/gnome/help/tomboy/C/figures
@dirrm share/gnome/help/tomboy/C
@dirrm share/gnome/help/tomboy
+%%APPLET%%@dirrmtry libdata/bonobo/servers
+%%APPLET%%@dirrmtry libdata/bonobo
@dirrmtry lib/tomboy/addins
@dirrmtry lib/tomboy