Lines 2-47
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= workrave |
4 |
PORTNAME= workrave |
5 |
PORTVERSION= 1.10.1 |
5 |
PORTVERSION= 1.10.15 |
6 |
PORTREVISION= 2 |
6 |
CATEGORIES= x11 |
7 |
CATEGORIES= x11 gnome |
|
|
8 |
MASTER_SITES= SF |
9 |
|
7 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
8 |
MAINTAINER= t@tobik.me |
11 |
COMMENT= RSI prevention tool |
9 |
COMMENT= RSI prevention tool |
12 |
|
10 |
|
13 |
LICENSE= GPLv3+ |
11 |
LICENSE= GPLv3+ |
14 |
|
12 |
|
15 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah>0:devel/py-cheetah |
|
|
16 |
LIB_DEPENDS= libgdome.so:textproc/gdome2 |
13 |
LIB_DEPENDS= libgdome.so:textproc/gdome2 |
17 |
|
14 |
|
18 |
USES= gettext gmake pathfix pkgconfig python:2.7 |
15 |
USES= autoreconf:build gettext gmake libtool pathfix pkgconfig |
19 |
USE_XORG= recordproto x11 xext xmu xscrnsaver xtst |
16 |
USE_XORG= ice recordproto sm x11 xext xmu xscrnsaver xtst |
20 |
USE_GNOME= intlhack gconf2 gtkmm24 |
17 |
USE_GNOME= intltool intlhack introspection gtkmm30 |
21 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
22 |
CONFIGURE_ARGS= --disable-silent-rules --enable-gconf --disable-gnome3 \ |
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 \ |
23 |
--disable-indicator |
27 |
--disable-indicator |
24 |
INSTALLS_ICONS= yes |
28 |
INSTALLS_ICONS= yes |
|
|
29 |
USE_LDCONFIG= yes |
25 |
|
30 |
|
26 |
CPPFLAGS+= -I${LOCALBASE}/include |
31 |
USE_GITHUB= yes |
27 |
LIBS+= -L${LOCALBASE}/lib |
32 |
GH_ACCOUNT= rcaelers |
|
|
33 |
GH_TAGNAME= v${PORTVERSION:S/./_/g} |
28 |
|
34 |
|
29 |
OPTIONS_DEFINE= GNOME GSTREAMER PULSEAUDIO |
35 |
CFLAGS+= -I${LOCALBASE}/include |
30 |
OPTIONS_DEFAULT= GSTREAMER |
36 |
LDFLAGS+= -L${LOCALBASE}/lib |
|
|
37 |
|
38 |
INSTALL_TARGET= install-strip |
39 |
|
40 |
OPTIONS_DEFINE= DBUS DISTRIBUTION GSTREAMER |
41 |
OPTIONS_DEFAULT= DBUS GSTREAMER |
31 |
OPTIONS_SUB= yes |
42 |
OPTIONS_SUB= yes |
32 |
|
43 |
|
33 |
GNOME_USE= gnome=gnomepanel |
44 |
DISTRIBUTION_DESC= Build with networking support |
34 |
GNOME_LIB_DEPENDS= libgnomeuimm-2.6.so:x11-toolkits/libgnomeuimm26 |
45 |
|
35 |
GNOME_CONFIGURE_ENABLE= gnome2 |
46 |
DBUS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheetah>0:devel/py-cheetah |
36 |
GSTREAMER_USE= gstreamer=good |
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 |
37 |
GSTREAMER_CONFIGURE_ENABLE= gstreamer |
53 |
GSTREAMER_CONFIGURE_ENABLE= gstreamer |
38 |
PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio |
54 |
GSTREAMER_USE= gstreamer1=good |
39 |
PULSEAUDIO_CONFIGURE_ENABLE= pulse |
|
|
40 |
|
55 |
|
|
|
56 |
# Remove gnome-shell cinnamon subdirs from build, so it doesn't install |
57 |
# unused files |
41 |
post-patch: |
58 |
post-patch: |
42 |
@${REINPLACE_CMD} -e \ |
59 |
@${REINPLACE_CMD} -e 's| gnome-shell cinnamon | |' \ |
43 |
'/if test/s|==|=|' ${WRKSRC}/configure |
60 |
${WRKSRC}/frontend/applets/Makefile.am |
44 |
@${REINPLACE_CMD} -e \ |
|
|
45 |
's| gnome-shell$$||' ${WRKSRC}/frontend/applets/Makefile.in |
46 |
|
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 |
|
47 |
.include <bsd.port.mk> |
68 |
.include <bsd.port.mk> |