summaryrefslogtreecommitdiff
path: root/x11/workrave/Makefile
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2016-08-04 19:06:00 +0000
committerKurt Jaeger <pi@FreeBSD.org>2016-08-04 19:06:00 +0000
commit5b9cf509a468ebbd99da26a6426ac87b107083ff (patch)
treef07e04341d2d406663c1d5e7e1bae8d2bbe94a8b /x11/workrave/Makefile
parent- Update net/tcpdump to 4.8.0 (diff)
x11/workrave: 1.10.1 -> 1.10.15
- Switch to Gtkmm 3.0 - Switch to GitHub - Take maintainership - Move sound output to external script and remove PULSEAUDIO and GSTREAMER options keeping dependencies small - See URL for changes since 1.10.1 - submitter becomes maintainer No GNOME/XFCE/Cinnamon applets are build atm. Submitter does not use them so can't test them and has not added support for them. If someone wants them please submit patches. The trayicon works fine. PR: 211297 Submitted by: Tobias Kortkamp <t@tobik.me>
Notes
Notes: svn path=/head/; revision=419649
Diffstat (limited to 'x11/workrave/Makefile')
-rw-r--r--x11/workrave/Makefile69
1 files changed, 45 insertions, 24 deletions
diff --git a/x11/workrave/Makefile b/x11/workrave/Makefile
index 76717b526612..ca177e2fb5d1 100644
--- a/x11/workrave/Makefile
+++ b/x11/workrave/Makefile
@@ -2,46 +2,67 @@
# $FreeBSD$
PORTNAME= workrave
-PORTVERSION= 1.10.1
-PORTREVISION= 2
-CATEGORIES= x11 gnome
-MASTER_SITES= SF
+PORTVERSION= 1.10.15
+CATEGORIES= x11
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= t@tobik.me
COMMENT= RSI prevention tool
LICENSE= GPLv3+
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah>0:devel/py-cheetah
LIB_DEPENDS= libgdome.so:textproc/gdome2
-USES= gettext gmake pathfix pkgconfig python:2.7
-USE_XORG= recordproto x11 xext xmu xscrnsaver xtst
-USE_GNOME= intlhack gconf2 gtkmm24
+USES= autoreconf:build gettext gmake libtool pathfix pkgconfig
+USE_XORG= ice recordproto sm x11 xext xmu xscrnsaver xtst
+USE_GNOME= intltool intlhack introspection gtkmm30
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --disable-silent-rules --enable-gconf --disable-gnome3 \
+CONFIGURE_ARGS= --disable-silent-rules \
+ --disable-gsettings \
+ --disable-pulse \
+ --disable-gconf \
+ --disable-mate \
+ --disable-gnome2 \
+ --disable-gnome3 \
+ --disable-xfce \
--disable-indicator
INSTALLS_ICONS= yes
+USE_LDCONFIG= yes
-CPPFLAGS+= -I${LOCALBASE}/include
-LIBS+= -L${LOCALBASE}/lib
+USE_GITHUB= yes
+GH_ACCOUNT= rcaelers
+GH_TAGNAME= v${PORTVERSION:S/./_/g}
-OPTIONS_DEFINE= GNOME GSTREAMER PULSEAUDIO
-OPTIONS_DEFAULT= GSTREAMER
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+INSTALL_TARGET= install-strip
+
+OPTIONS_DEFINE= DBUS DISTRIBUTION GSTREAMER
+OPTIONS_DEFAULT= DBUS GSTREAMER
OPTIONS_SUB= yes
-GNOME_USE= gnome=gnomepanel
-GNOME_LIB_DEPENDS= libgnomeuimm-2.6.so:x11-toolkits/libgnomeuimm26
-GNOME_CONFIGURE_ENABLE= gnome2
-GSTREAMER_USE= gstreamer=good
+DISTRIBUTION_DESC= Build with networking support
+
+DBUS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah>0:devel/py-cheetah
+DBUS_CONFIGURE_ENABLE= dbus
+DBUS_USES= python:2.7
+
+DISTRIBUTION_CONFIGURE_ENABLE= distribution
+
+GSTREAMER_LIB_DEPENDS= libgstreamer-1.0.so:multimedia/gstreamer1
GSTREAMER_CONFIGURE_ENABLE= gstreamer
-PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio
-PULSEAUDIO_CONFIGURE_ENABLE= pulse
+GSTREAMER_USE= gstreamer1=good
+# Remove gnome-shell cinnamon subdirs from build, so it doesn't install
+# unused files
post-patch:
- @${REINPLACE_CMD} -e \
- '/if test/s|==|=|' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e \
- 's| gnome-shell$$||' ${WRKSRC}/frontend/applets/Makefile.in
+ @${REINPLACE_CMD} -e 's| gnome-shell cinnamon | |' \
+ ${WRKSRC}/frontend/applets/Makefile.am
+
+# Run bundled autogen.sh instead of relying on USES=autoreconf which
+# leads to errors like
+# config.status: error: po/Makefile.in.in was not created by intltoolize.
+pre-configure:
+ @cd ${WRKSRC} && ./autogen.sh
.include <bsd.port.mk>