Fix the build with new libsigc++20 2.2.2. I have tested these ports in runtime

and these seem work fine in normal use. I don't test every functions, so let
me know if you have any problem with it.

Reported by:	pointyhat via pav
This commit is contained in:
Jeremy Messenger 2008-03-28 01:50:20 +00:00
parent a60ad9e9bb
commit 01aa5d3c37
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=209987
7 changed files with 32 additions and 4 deletions

View file

@ -24,9 +24,12 @@ USE_GNOME= gtk20
GNU_CONFIGURE= yes
CONFIGURE_ARGS= CPPFLAGS=-I${PREFIX}/include/ LDFLAGS=-L${PREFIX}/lib/
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|connect(SigC::slot|connect(sigc::mem_fun|g ; \
s|#include <sigc++\/compatibility\.h>||g' \
${WRKSRC}/src/*.cc
pre-install:
${CHMOD} 755 ${WRKSRC}/install-sh
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -43,6 +43,8 @@ post-patch:
@${REINPLACE_CMD} -e '/^#include/s|malloc.h|stdlib.h|' ${WRKSRC}/XGP/GTKViewer.c
@${REINPLACE_CMD} -e '/^typedef int socklen_t;/d' ${WRKSRC}/YGP/Socket.cpp
@${REINPLACE_CMD} -e '/^#.*define sleep/d' ${WRKSRC}/YGP/Tests/Thread.cpp
@${REINPLACE_CMD} -e 's|SigC::Connection|sigc::connection|g' \
${WRKSRC}/XGP/MessageDlg.h
.if ${PORTNAME:M*XGP}
@${FIND} ${WRKSRC} -type f -print0 | \
${XARGS} -0 ${REINPLACE_CMD} -e 's/ygp-cfg/xgp-cfg/g'

View file

@ -36,6 +36,9 @@ post-patch:
@${REINPLACE_CMD} -e "s|doc/cheech|share/doc/cheech|g" \
-e "s|: install-cheechdocDATA|:|g" \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|connect(SigC::slot|connect(sigc::mem_fun|g ; \
s|#include <sigc++\/compatibility\.h>||g' \
${WRKSRC}/src/*.cc
pre-configure:
@${LN} -sf ${AUTOMAKE_DIR}/install-sh ${WRKSRC}

View file

@ -30,6 +30,11 @@ PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
post-patch:
@${REINPLACE_CMD} 's|TARGET_MNG="no"|TARGET_MNG="yes"|' \
${WRKSRC}/configure
@${REINPLACE_CMD} 's|#include <sigc++\/compatibility\.h>||g ; \
s|SigC::Connection|sigc::connection|g ; \
s|SigC::slot|sigc::ptr_fun|g ; \
s|namespace SigC|namespace sigc|g' \
${WRKSRC}/src/gtkmm/*.*
post-install:
.if !defined(NOPORTDOCS)

View file

@ -105,6 +105,8 @@ post-patch:
@${REINPLACE_CMD} -E -e \
's|(icon-filename=).+(gcdmaster-doc.png)|\1${LOCALBASE}\/share\/pixmaps\/document-icons\/\2|g' \
${WRKSRC}/xdao/gcdmaster.keys
@${REINPLACE_CMD} -e 's|connect(SigC::slot|connect(sigc::ptr_fun|g' \
${WRKSRC}/xdao/xcdrdao.cc
.else
.for i in cdrdao.man main.cc
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/dao/${i}

View file

@ -28,11 +28,13 @@ DESKTOP_ENTRIES="gcompmgr" \
"Application;Settings;" \
true
.include <bsd.port.pre.mk>
post-patch:
.for file in depcomp install-sh missing
@${LN} -sf ${AUTOMAKE_DIR}/${file} ${WRKSRC}
.endfor
@${REINPLACE_CMD} -e 's|connect(SigC::slot|connect(sigc::mem_fun|g ; \
s|#include <sigc++\/compatibility\.h>||g' \
${WRKSRC}/src/*.cc
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View file

@ -50,4 +50,15 @@ 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>