aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbeech <beech@FreeBSD.org>2007-08-19 03:45:01 +0800
committerbeech <beech@FreeBSD.org>2007-08-19 03:45:01 +0800
commitd5114a5875164c0f9f15689db7914cae5efa065b (patch)
treef40769d74ee2cafeee16534cd2977edcf22abb85
parent60867a9798aa4ba0226386f73feab96d6d5d221a (diff)
downloadfreebsd-ports-graphics-d5114a5875164c0f9f15689db7914cae5efa065b.tar.gz
freebsd-ports-graphics-d5114a5875164c0f9f15689db7914cae5efa065b.tar.zst
freebsd-ports-graphics-d5114a5875164c0f9f15689db7914cae5efa065b.zip
- Fix build with gcc42
PR: ports/115565 Submitted by: David Yeske <dyeske@gmail.com> (maintainer) Approved by: sat (mentor)
-rw-r--r--cad/leocad/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/cad/leocad/Makefile b/cad/leocad/Makefile
index 1fc16076a4b..bf612471656 100644
--- a/cad/leocad/Makefile
+++ b/cad/leocad/Makefile
@@ -22,7 +22,7 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png \
glut.4:${PORTSDIR}/graphics/libglut
-USE_X_PREFIX= yes
+USE_XORG= x11
USE_GMAKE= yes
USE_GNOME= gtk12
@@ -30,12 +30,12 @@ MAKE_ENV+= CXX=${CXX}
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 600000 && ${OSVERSION} >= 504105
+.if ${OSVERSION} < 600000
BROKEN= Does not compile on FreeBSD 5.x
.endif
post-extract:
- @unzip -q -o ${DISTDIR}/leocad-pieces-20030330.zip -d ${WRKDIR}/pieces
+ @${UNZIP_CMD} -q -o ${DISTDIR}/leocad-pieces-20030330.zip -d ${WRKDIR}/pieces
post-patch:
@${REINPLACE_CMD} -e \
@@ -44,6 +44,10 @@ post-patch:
s|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|; \
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
${WRKSRC}/config.mk
+ @cd ${WRKSRC}/linux/&&${REINPLACE_CMD} -e 's|[(]int[)]data|(intptr_t)data|'\
+ dialogs.cpp dlgpiece.cpp main.cpp toolbar.cpp
+ @${REINPLACE_CMD} -Ee 's|[(]int[)](.*Group)|(intptr_t)\1|'\
+ ${WRKSRC}/common/project.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/leocad ${PREFIX}/bin