summaryrefslogtreecommitdiffstats
path: root/x11/workrave/Makefile
blob: b03f83be924f26e45bcd7f4ed37d33f7309882f3 (plain)
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
# Created by: Koop Mast <einekoai@chello.nl>
# $FreeBSD$

PORTNAME=	workrave
PORTVERSION=	1.10.1
PORTREVISION=	1
CATEGORIES=	x11 gnome
MASTER_SITES=	SF

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

LICENSE=	GPLv3 # (or later)

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cheetah>0:${PORTSDIR}/devel/py-cheetah
LIB_DEPENDS=	libgdome.so:${PORTSDIR}/textproc/gdome2

USES=		gettext gmake pathfix pkgconfig
USE_XORG=	recordproto x11 xext xmu xscrnsaver xtst
USE_GNOME=	intlhack gconf2 gnomehier gtkmm24
USE_PYTHON=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-silent-rules --enable-gconf --disable-gnome3 \
		--disable-indicator
INSTALLS_ICONS=	yes

CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib

OPTIONS_DEFINE=		GNOME GSTREAMER PULSEAUDIO
OPTIONS_DEFAULT=	GSTREAMER
OPTIONS_SUB=		yes

GNOME_USE=		gnome=gnomepanel
GNOME_LIB_DEPENDS=	libgnomeuimm-2.6.so:${PORTSDIR}/x11-toolkits/libgnomeuimm26
GNOME_CONFIGURE_ENABLE=	gnome2
GSTREAMER_USE=		gstreamer=good
GSTREAMER_CONFIGURE_ENABLE=	gstreamer
PULSEAUDIO_LIB_DEPENDS=	libpulse.so:${PORTSDIR}/audio/pulseaudio
PULSEAUDIO_CONFIGURE_ENABLE=	pulse

post-patch:
	@${REINPLACE_CMD} -e \
		'/if test/s|==|=|' ${WRKSRC}/configure
	@${REINPLACE_CMD} -e \
		's| gnome-shell$$||' ${WRKSRC}/frontend/applets/Makefile.in

.include <bsd.port.mk>
OpenPOWER on IntegriCloud