summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2015-02-25 12:01:52 +0000
committermarino <marino@FreeBSD.org>2015-02-25 12:01:52 +0000
commitd3c06cb3e2790f8614ce428095f56941e914bc60 (patch)
treea7da22a712518f2b98f223021100988afdcf8537
parent553dfdca2a4c06fc4019b8c71813b65540ebbc4a (diff)
downloadFreeBSD-ports-d3c06cb3e2790f8614ce428095f56941e914bc60.zip
FreeBSD-ports-d3c06cb3e2790f8614ce428095f56941e914bc60.tar.gz
science/bddsolve: Set environment, use CXXFLAGS, cleanup
This port had two main problems: 1) failure to set the enviroment in the build target 2) failure to use CXXFLAGS with CXX While fixing those, clean up a bit: 3) remove <pre>,<post> by using BROKEN_powerpc instead 4) use CFLAGS+= to augment CFLAGS 5) use LDFLAGS+= to augment LDFLAGS 6) simplify do-build target accordingly Approved by: just fix it
-rw-r--r--science/bddsolve/Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/science/bddsolve/Makefile b/science/bddsolve/Makefile
index 2e61918..f89e303 100644
--- a/science/bddsolve/Makefile
+++ b/science/bddsolve/Makefile
@@ -16,18 +16,14 @@ LIB_DEPENDS+= libbdd.so:${PORTSDIR}/science/buddy \
USES= zip
NO_WRKSUBDIR= yes
+CFLAGS+= -I${LOCALBASE}/include -I${WRKSRC}/include
+LDFLAGS+= -L${LOCALBASE}/lib -lbdd -lboost_program_options
+BROKEN_powerpc= Does not compile due to running out of virtual memory
OPTIONS_DEFINE= EXAMPLES
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "powerpc"
-BROKEN= Does not compile on powerpc: runs out of virtual memory
-.endif
-
do-build:
- ${CXX} ${CFLAGS} -I${LOCALBASE}/include -I${WRKSRC}/include \
- ${LDFLAGS} -L${LOCALBASE}/lib -lbdd -lboost_program_options \
+ ${SETENV} ${MAKE_ENV} ${CXX} ${CXXFLAGS} ${LDFLAGS} \
-o ${WRKSRC}/bddsolve ${WRKSRC}/src/bddsolve.cpp
do-install:
@@ -36,4 +32,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/example/reach.b ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/example/sat.b ${STAGEDIR}${EXAMPLESDIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
OpenPOWER on IntegriCloud