aboutsummaryrefslogtreecommitdiff
path: root/cad/brlcad
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2006-07-14 16:18:00 +0000
committerMichael Johnson <ahze@FreeBSD.org>2006-07-14 16:18:00 +0000
commit9f1f43ca5b5b9977f35617d4e2d5158a99e8fb4f (patch)
tree557bf6009b4adfc5e076a6547229515134aba18b /cad/brlcad
parenta956233024780317892a0ed8213f030da86f2e24 (diff)
downloadports-9f1f43ca5b5b9977f35617d4e2d5158a99e8fb4f.tar.gz
ports-9f1f43ca5b5b9977f35617d4e2d5158a99e8fb4f.zip
- fix build on sparc64
PR: 99971 Submitted by: ahze Approved by: maintainer
Notes
Notes: svn path=/head/; revision=167816
Diffstat (limited to 'cad/brlcad')
-rw-r--r--cad/brlcad/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/cad/brlcad/Makefile b/cad/brlcad/Makefile
index e8074a4f0d94..0020ab6b551e 100644
--- a/cad/brlcad/Makefile
+++ b/cad/brlcad/Makefile
@@ -29,7 +29,7 @@ INSTALLS_SHLIB= yes # Not really useful, but pet portlint
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.4
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-CONFIGURE_ARGS+=--with-libs="-lpng" --program-transform-name="" \
+CONFIGURE_ARGS+=--with-libs="-lpng ${EXTRA_LIBS}" --program-transform-name="" \
--disable-jove-build
PLIST_SUB+= PORTVERSION=${PORTVERSION}
@@ -158,16 +158,20 @@ OPTIONS= OPTIMIZATION "Try building with optimizations" on
.include <bsd.port.pre.mk>
+.if ${ARCH} == sparc64
+EXTRA_LIBS= ${PTHREAD_LIBS}
+.endif
+
# we only run on i386 and amd64 release 5+
.if ${OSVERSION} < 500000
BROKEN= Does not compile on FreeBSD-${OSREL}
-.elif !(${ARCH} == i386 || ${ARCH} == amd64)
+.elif !(${ARCH} == i386 || ${ARCH} == amd64 || ${ARCH} == sparc64)
IGNORE= dumps core on ${ARCH}
.endif
.ifdef WITH_OPTIMIZATION
CONFIGURE_ARGS+= --disable-debug
-.if (${ARCH} == i386 || ${ARCH} == amd64)
+.if (${ARCH} == i386 || ${ARCH} == amd64 || ${ARCH} == sparc64)
CONFIGURE_ARGS+= --enable-optimized
.endif
.endif