aboutsummaryrefslogtreecommitdiffstats
path: root/x11/workrave/Makefile
blob: 4ab5c6d6b50eb94a2ff6c8fdae86101a61b1fa68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Created by: Koop Mast <einekoai@chello.nl>
# $FreeBSD$

PORTNAME=   workrave
DISTVERSIONPREFIX=  v
DISTVERSION=    1_10_16
PORTREVISION=   5
CATEGORIES= x11

MAINTAINER= tobik@FreeBSD.org
COMMENT=    RSI prevention tool

LICENSE=    GPLv3+

LIB_DEPENDS=    libgdome.so:textproc/gdome2

USES=       compiler:c++11-lang autoreconf:build gettext gmake libtool \
        localbase pathfix pkgconfig
USE_CXXSTD= c++11
USE_XORG=   ice xorgproto sm x11 xext xmu xscrnsaver xtst
USE_GNOME=  intltool intlhack introspection gtkmm30
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-gsettings \
        --disable-pulse \
        --disable-gconf \
        --disable-mate \
        --disable-gnome2 \
        --disable-gnome3 \
        --disable-xfce \
        --disable-indicator
INSTALLS_ICONS= yes
USE_LDCONFIG=   yes

USE_GITHUB= yes
GH_ACCOUNT= rcaelers

INSTALL_TARGET= install-strip

OPTIONS_DEFINE=     DBUS DISTRIBUTION GSTREAMER
OPTIONS_DEFAULT=    DBUS GSTREAMER
OPTIONS_SUB=        yes

DISTRIBUTION_DESC=  Build with networking support

DBUS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah>0:devel/py-cheetah@${PY_FLAVOR}
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
GSTREAMER_USE=      gstreamer1=good

# Remove gnome-shell cinnamon subdirs from build, so it doesn't install
# unused files
post-patch:
    @${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>