aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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