Fix build with newer libsigc++2 (from FreeBSD)

(reported by jasper@)
ok jasper@ landry@ wilfried@
This commit is contained in:
ajacoutot
2009-09-18 10:25:22 +00:00
parent 2e0d73474c
commit 2d4e1fcff8
+13 -2
View File
@@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.9 2009/08/10 06:34:09 kili Exp $
# $OpenBSD: Makefile,v 1.10 2009/09/18 10:25:22 ajacoutot Exp $
COMMENT= reminder program for prevention of RSI
DISTNAME= workrave-1.8.5
PKGNAME= ${DISTNAME}p5
PKGNAME= ${DISTNAME}p6
CATEGORIES= productivity x11
HOMEPAGE= http://www.workrave.org/welcome/
@@ -48,6 +48,17 @@ CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
pre-configure:
perl -pi -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/*.*
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/workrave/sound/events
${INSTALL_DATA} ${WRKSRC}/frontend/common/share/sounds/workrave.soundlist \