diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-04-08 06:58:22 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-04-08 06:58:22 +0800 |
commit | 8ca283dff3b4711d968618bd3c4d32dc45c41cfc (patch) | |
tree | 107df2f54397c450d468ab157aa0b1c18039156e /x11/workrave/Makefile | |
parent | 084f232f9e54b3a1b764ebc69d5eaae6c22ce124 (diff) | |
download | marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.tar marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.tar.gz marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.tar.bz2 marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.tar.lz marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.tar.xz marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.tar.zst marcuscom-ports-8ca283dff3b4711d968618bd3c4d32dc45c41cfc.zip |
Add a hack to fix the build with GNOME 2.26.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12235 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11/workrave/Makefile')
-rw-r--r-- | x11/workrave/Makefile | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/x11/workrave/Makefile b/x11/workrave/Makefile new file mode 100644 index 000000000..b8639d2e3 --- /dev/null +++ b/x11/workrave/Makefile @@ -0,0 +1,67 @@ +# New ports collection makefile for: workrave +# Date created: 15 Jul 2003 +# Whom: Koop Mast <einekoai@chello.nl> +# +# $FreeBSD: ports/x11/workrave/Makefile,v 1.28 2009/03/28 17:53:24 garga Exp $ +# + +PORTNAME= workrave +PORTVERSION= 1.8.5 +PORTREVISION= 4 +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_XORG= x11 xmu +USE_GMAKE= yes +MAKE_JOBS_SAFE= yes +USE_GNOME= gnomeprefix gnomehack intlhack gconf2 intltool +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include `pkg-config --cflags libgnomeui-2.0`" \ + LDFLAGS="-L${LOCALBASE}/lib" \ + LIBS="`pkg-config --libs libgnomeui-2.0`" +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> |