From cd9e9c467bef9ef724a7a057a21daadccbef9b69 Mon Sep 17 00:00:00 2001 From: Beech Rintoul Date: Sat, 18 Aug 2007 19:45:01 +0000 Subject: - Fix build with gcc42 PR: ports/115565 Submitted by: David Yeske (maintainer) Approved by: sat (mentor) --- cad/leocad/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'cad/leocad') diff --git a/cad/leocad/Makefile b/cad/leocad/Makefile index 1fc16076a4bb..bf612471656e 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 -.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 -- cgit v1.2.3