blob: de799d9898702401dea53b0600f10a8a5755a5b0 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# New ports collection makefile for: workrave
# Date created: 15 Jul 2003
# Whom: Koop Mast <einekoai@chello.nl>
#
# $FreeBSD$
#
PORTNAME= workrave
PORTVERSION= 1.8.5
PORTREVISION= 1
CATEGORIES= x11 gnome
MASTER_SITES= SF
MAINTAINER= garga@FreeBSD.org
COMMENT= A Gnome RSI prevention tool
OPTIONS= GNOME "Build with Gnome support" on \
NETWORK "Build with network support" on
USE_GMAKE= yes
USE_GNOME= gnomeprefix gnomehack intlhack gconf2 intltool
USE_GCC= 3.4+
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --enable-gconf
.include <bsd.port.pre.mk>
.if defined(WITH_GNOME)
LIB_DEPENDS+= gnomeuimm-2.6.1:${PORTSDIR}/x11-toolkits/libgnomeuimm26
USE_GNOME+= gnomepanel
PLIST_SUB+= GNOME=""
.else
LIB_DEPENDS+= gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24
CONFIGURE_ARGS+=--disable-gnome
PLIST_SUB+= GNOME="@comment "
.endif
.if defined(WITH_NETWORK)
LIB_DEPENDS+= gnet-2.0.0:${PORTSDIR}/net/gnet2
.else
CONFIGURE_ARGS+=--disable-distribution
.endif
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|#include <sigc++\/compatibility\.h>||g ; \
s|SigC::Signal|sigc::signal|g ; \
s|SigC::slot_class|sigc::mem_fun|g ; \
s|SigC::Connection|sigc::connection|g ; \
s|SigC::Slot|sigc::slot|g ; \
s|SigC::Object|sigc::trackable|g ; \
s|SigC::slot|sigc::mem_fun|g' \
${WRKSRC}/frontend/gtkmm/src/*.* \
${WRKSRC}/frontend/plugin/*/gtkmm/src/*.*
.include <bsd.port.post.mk>
|