2006-05-08 09:42:13 +02:00
|
|
|
# New ports collection makefile for: workrave
|
|
|
|
# Date created: 15 Jul 2003
|
|
|
|
# Whom: Koop Mast <einekoai@chello.nl>
|
2003-07-18 06:54:29 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= workrave
|
2007-10-01 18:18:00 +02:00
|
|
|
PORTVERSION= 1.8.5
|
2009-07-31 15:57:52 +02:00
|
|
|
PORTREVISION= 5
|
2003-07-18 06:54:29 +02:00
|
|
|
CATEGORIES= x11 gnome
|
2006-07-31 00:46:04 +02:00
|
|
|
MASTER_SITES= SF
|
2003-07-18 06:54:29 +02:00
|
|
|
|
2009-08-27 17:53:07 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-07-18 06:54:29 +02:00
|
|
|
COMMENT= A Gnome RSI prevention tool
|
|
|
|
|
2007-10-01 18:18:00 +02:00
|
|
|
OPTIONS= GNOME "Build with Gnome support" on \
|
|
|
|
NETWORK "Build with network support" on
|
2003-07-18 06:54:29 +02:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11 xmu
|
2003-07-18 06:54:29 +02:00
|
|
|
USE_GMAKE= yes
|
2009-03-28 18:53:24 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2006-06-13 15:25:07 +02:00
|
|
|
USE_GNOME= gnomeprefix gnomehack intlhack gconf2 intltool
|
2003-07-18 06:54:29 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2009-04-10 07:56:28 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include `pkg-config --cflags libgnomeui-2.0`" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
LIBS="`pkg-config --libs libgnomeui-2.0`"
|
2006-06-13 15:25:07 +02:00
|
|
|
CONFIGURE_ARGS= --enable-gconf
|
2007-10-01 18:18:00 +02:00
|
|
|
|
|
|
|
.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=""
|
2006-06-13 15:25:07 +02:00
|
|
|
.else
|
2007-10-01 18:18:00 +02:00
|
|
|
LIB_DEPENDS+= gtkmm-2.4.1:${PORTSDIR}/x11-toolkits/gtkmm24
|
|
|
|
CONFIGURE_ARGS+=--disable-gnome
|
|
|
|
PLIST_SUB+= GNOME="@comment "
|
2006-06-13 15:25:07 +02:00
|
|
|
.endif
|
2007-10-01 18:18:00 +02:00
|
|
|
|
|
|
|
.if defined(WITH_NETWORK)
|
|
|
|
LIB_DEPENDS+= gnet-2.0.0:${PORTSDIR}/net/gnet2
|
|
|
|
.else
|
2006-06-13 15:25:07 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-distribution
|
|
|
|
.endif
|
2003-07-18 06:54:29 +02:00
|
|
|
|
2007-10-01 18:18:00 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-03-28 02:50:20 +01:00
|
|
|
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/*.*
|
|
|
|
|
2007-10-01 18:18:00 +02:00
|
|
|
.include <bsd.port.post.mk>
|