Tweak x11/metisse version 0.4.1_8
[dports.git] / x11 / workrave / Makefile
1 # Created by: Koop Mast <einekoai@chello.nl>
2 # $FreeBSD$
3
4 PORTNAME=       workrave
5 PORTVERSION=    1.10.15
6 CATEGORIES=     x11
7
8 MAINTAINER=     t@tobik.me
9 COMMENT=        RSI prevention tool
10
11 LICENSE=        GPLv3+
12
13 LIB_DEPENDS=    libgdome.so:textproc/gdome2
14
15 USES=   autoreconf:build gettext gmake libtool pathfix pkgconfig
16 USE_XORG=       ice recordproto sm x11 xext xmu xscrnsaver xtst
17 USE_GNOME=      intltool intlhack introspection gtkmm30
18 GNU_CONFIGURE=  yes
19 CONFIGURE_ARGS= --disable-silent-rules \
20                 --disable-gsettings \
21                 --disable-pulse \
22                 --disable-gconf \
23                 --disable-mate \
24                 --disable-gnome2 \
25                 --disable-gnome3 \
26                 --disable-xfce \
27                 --disable-indicator
28 INSTALLS_ICONS= yes
29 USE_LDCONFIG=   yes
30
31 USE_GITHUB=     yes
32 GH_ACCOUNT=     rcaelers
33 GH_TAGNAME=     v${PORTVERSION:S/./_/g}
34
35 CFLAGS+=        -I${LOCALBASE}/include
36 LDFLAGS+=       -L${LOCALBASE}/lib
37
38 INSTALL_TARGET= install-strip
39
40 OPTIONS_DEFINE=         DBUS DISTRIBUTION GSTREAMER
41 OPTIONS_DEFAULT=        DBUS GSTREAMER
42 OPTIONS_SUB=            yes
43
44 DISTRIBUTION_DESC=      Build with networking support
45
46 DBUS_BUILD_DEPENDS=     ${PYTHON_PKGNAMEPREFIX}cheetah>0:devel/py-cheetah
47 DBUS_CONFIGURE_ENABLE=  dbus
48 DBUS_USES=      python:2.7
49
50 DISTRIBUTION_CONFIGURE_ENABLE=  distribution
51
52 GSTREAMER_LIB_DEPENDS=  libgstreamer-1.0.so:multimedia/gstreamer1
53 GSTREAMER_CONFIGURE_ENABLE=     gstreamer
54 GSTREAMER_USE=          gstreamer1=good
55
56 # Remove gnome-shell cinnamon subdirs from build, so it doesn't install
57 # unused files
58 post-patch:
59         @${REINPLACE_CMD} -e 's| gnome-shell cinnamon | |' \
60                 ${WRKSRC}/frontend/applets/Makefile.am
61
62 # Run bundled autogen.sh instead of relying on USES=autoreconf which
63 # leads to errors like
64 # config.status: error: po/Makefile.in.in was not created by intltoolize.
65 pre-configure:
66         @cd ${WRKSRC} && ./autogen.sh
67
68 .include <bsd.port.mk>