aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/vdk
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2007-06-04 19:55:27 +0000
committerMartin Wilke <miwi@FreeBSD.org>2007-06-04 19:55:27 +0000
commit1ecdbe433274d79afc386ac4edd430c01f2a9d8f (patch)
treec4947270f6600e97334279c981734248362e1507 /x11-toolkits/vdk
parent3cd4cbcef3b910a62da489f527538a1eab3b7aee (diff)
downloadports-1ecdbe433274d79afc386ac4edd430c01f2a9d8f.tar.gz
ports-1ecdbe433274d79afc386ac4edd430c01f2a9d8f.zip
Notes
Diffstat (limited to 'x11-toolkits/vdk')
-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 ce61ff0e732e..4a704933a226 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>