summaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2007-06-04 19:55:27 +0000
committermiwi <miwi@FreeBSD.org>2007-06-04 19:55:27 +0000
commit3aaae6ecbaef27eb6b823f95b8e13b3671fb08dd (patch)
tree1e25ab247bb3256d2ba9934c7d217accadee6d91 /x11-toolkits
parente9bdded8a4945fd14cbc01ec2ad092e791418a30 (diff)
downloadFreeBSD-ports-3aaae6ecbaef27eb6b823f95b8e13b3671fb08dd.zip
FreeBSD-ports-3aaae6ecbaef27eb6b823f95b8e13b3671fb08dd.tar.gz
- Fix Build with gcc 4.2
PR: 113305 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/vdk/Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/x11-toolkits/vdk/Makefile b/x11-toolkits/vdk/Makefile
index ce61ff0..4a70493 100644
--- a/x11-toolkits/vdk/Makefile
+++ b/x11-toolkits/vdk/Makefile
@@ -28,6 +28,14 @@ MAN1= vdk-config-2.1
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS= -L${LOCALBASE}/lib -lgnuregex ${PTHREAD_LIBS}
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} > 502010
+GNU_REGEX_H= gnu/regex.h
+.else
+GNU_REGEX_H= gnuregex.h
+.endif
+
post-patch:
@${REINPLACE_CMD} -e \
's|CXXFLAGS="-s"|CXXFLAGS="$$CXXFLAGS"|g' ${WRKSRC}/configure
@@ -35,7 +43,11 @@ post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${LDFLAGS}|g' ${WRKSRC}/${file}
.endfor
.for file in vdk/FileDialog.h vdk/gtksourcebuffer.h vdk/gtksourcetag.h
- @${REINPLACE_CMD} -e 's|<regex\.h>|<gnuregex.h>|g' ${WRKSRC}/${file}
+ @${REINPLACE_CMD} -e 's|<regex\.h>|<${GNU_REGEX_H}>|g' ${WRKSRC}/${file}
.endfor
+ @${REINPLACE_CMD} -e \
+ 's|VDKComboEntry::||g' ${WRKSRC}/vdk/vdkcomboentry.h
+ @${REINPLACE_CMD} -e \
+ 's|VDKFileChooser::||g' ${WRKSRC}/vdk/vdkfilechooser.h
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud