diff options
author | marino <marino@FreeBSD.org> | 2015-02-25 20:01:52 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2015-02-25 20:01:52 +0800 |
commit | d3c06cb3e2790f8614ce428095f56941e914bc60 (patch) | |
tree | a7da22a712518f2b98f223021100988afdcf8537 | |
parent | 553dfdca2a4c06fc4019b8c71813b65540ebbc4a (diff) | |
download | freebsd-ports-gnome-d3c06cb3e2790f8614ce428095f56941e914bc60.tar.gz freebsd-ports-gnome-d3c06cb3e2790f8614ce428095f56941e914bc60.tar.zst freebsd-ports-gnome-d3c06cb3e2790f8614ce428095f56941e914bc60.zip |
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/Makefile | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/science/bddsolve/Makefile b/science/bddsolve/Makefile index 2e61918aa27d..f89e303ed688 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> |