aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/libboard
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2007-09-05 03:10:05 +0800
committerthierry <thierry@FreeBSD.org>2007-09-05 03:10:05 +0800
commit2da30879275bff2e534aba9a3c536de879fa2e00 (patch)
treec3c7e5855cb03853f4f072f0bafa1d455d93a370 /graphics/libboard
parent92be07d415a7c05ce7db2216be5218e13adec4fb (diff)
downloadfreebsd-ports-gnome-2da30879275bff2e534aba9a3c536de879fa2e00.tar.gz
freebsd-ports-gnome-2da30879275bff2e534aba9a3c536de879fa2e00.tar.zst
freebsd-ports-gnome-2da30879275bff2e534aba9a3c536de879fa2e00.zip
Fix build on 64 bits platforms.
Reported by: pointyhat via Pav.
Diffstat (limited to 'graphics/libboard')
-rw-r--r--graphics/libboard/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/graphics/libboard/Makefile b/graphics/libboard/Makefile
index 83807026a377..52ecace7353d 100644
--- a/graphics/libboard/Makefile
+++ b/graphics/libboard/Makefile
@@ -22,6 +22,12 @@ USE_LDCONFIG= yes
PORTDOCS= *
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} != i386
+CFLAGS+= -fPIC
+.endif
+
pre-configure:
${REINPLACE_CMD} -e 's|-O3|${CXXFLAGS}|' ${WRKSRC}/${CONFIGURE_SCRIPT}
@@ -40,4 +46,4 @@ regression-test:
.endfor
${LS} -l ${WRKDIR}/arithm* ${WRKDIR}/draw*
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>