blob: 3bf8e925bcae2c987e8ac9bee6d404da8b0711cf (
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
68
69
70
71
72
73
74
75
76
77
78
79
80
|
PORTNAME= workrave
PORTVERSION= 1.10.50
DISTVERSIONPREFIX= v
PORTREVISION= 3
CATEGORIES= x11
MASTER_SITES= https://github.com/rcaelers/workrave/releases/download/v${PORTVERSION:S/./_/g}/
MAINTAINER= cyberbotx@cyberbotx.com
COMMENT= RSI prevention tool (${FLAVOR} flavor)
WWW= https://www.workrave.org/
LICENSE= GPLv3+
LIB_DEPENDS= libgdome.so:textproc/gdome2 \
libharfbuzz.so:print/harfbuzz
FLAVORS= default xfce
FLAVOR?= ${FLAVORS:[1]}
xfce_PKGNAMESUFFIX= -xfce
xfce_DESCR= ${.CURDIR}/pkg-descr.xfce
xfce_CONFLICTS_INSTALL= workrave
default_CONFLICTS_INSTALL= workrave-xfce
USES= compiler:c++11-lang desktop-file-utils gmake gnome libtool \
localbase pkgconfig xorg
.if ${FLAVOR} == xfce
CATEGORIES+= xfce
USES+= xfce
USE_XFCE= libutil panel
# Easier than using *_SUB since there's no flavor helper for that.
PLIST_FILES= lib/xfce4/panel/plugins/libworkrave-plugin.a \
lib/xfce4/panel/plugins/libworkrave-plugin.so \
share/xfce4/panel/plugins/workrave-xfce-applet.desktop
.endif
USE_CXXSTD= c++11
USE_GNOME= gdkpixbuf2 gtkmm30 intlhack intltool introspection:build
USE_LDCONFIG= yes
USE_XORG= ice sm x11 xext xmu xorgproto xscrnsaver xtst
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-gconf \
--disable-gnome3 \
--disable-gsettings \
--disable-indicator \
--disable-mate \
--disable-pulse
.if ${FLAVOR} != xfce
CONFIGURE_ARGS+= --disable-xfce
.endif
INSTALL_TARGET= install-strip
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
OPTIONS_DEFINE= DBUS DISTRIBUTION GSTREAMER NLS
OPTIONS_DEFAULT= DBUS GSTREAMER
OPTIONS_SUB= yes
DISTRIBUTION_DESC= Build with networking support
DBUS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \
boost-libs>0:devel/boost-libs
DBUS_USES= python:build
DBUS_CONFIGURE_ENABLE= dbus
DISTRIBUTION_CONFIGURE_ENABLE= distribution
GSTREAMER_USES= gstreamer
GSTREAMER_USE= GSTREAMER=good
GSTREAMER_CONFIGURE_ENABLE= gstreamer
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
# Upstream recommends editing that file to add or remove exercises,
# hence treat it like a config file.
post-stage:
${MV} ${STAGEDIR}${DATADIR}/exercises/exercises.xml \
${STAGEDIR}${DATADIR}/exercises/exercises.xml.sample
.include <bsd.port.mk>
|