aboutsummaryrefslogtreecommitdiffstats
path: root/devel/creduce
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2016-04-22 09:43:49 +0800
committerswills <swills@FreeBSD.org>2016-04-22 09:43:49 +0800
commit01e92e76f42019031ac83812f55b5803a9394af4 (patch)
tree507f5b446227f447e977b03174a024e93d1083e4 /devel/creduce
parent301452a0d3a1aae2e34da0ec4cdd2530ea28753a (diff)
downloadfreebsd-ports-gnome-01e92e76f42019031ac83812f55b5803a9394af4.tar.gz
freebsd-ports-gnome-01e92e76f42019031ac83812f55b5803a9394af4.tar.zst
freebsd-ports-gnome-01e92e76f42019031ac83812f55b5803a9394af4.zip
devel/creduce: fix build on 9.3
Diffstat (limited to 'devel/creduce')
-rw-r--r--devel/creduce/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/devel/creduce/Makefile b/devel/creduce/Makefile
index a9d36efdb8f0..8269af5b1841 100644
--- a/devel/creduce/Makefile
+++ b/devel/creduce/Makefile
@@ -21,10 +21,18 @@ RUN_DEPENDS= llvm-config37:devel/llvm37 \
GNU_CONFIGURE= yes
CONFIGURE_FLAGS= --with-llvm=${LOCALBASE}
+CONFIGURE_ENV= LLVM_CONFIG=${LOCALBASE}/bin/llvm-config37 \
+ CC=${LOCALBASE}/bin/clang37 \
+ CXX=${LOCALBASE}/bin/clang++37 \
+ CPP=${LOCALBASE}/bin/clang-cpp37
-USES= gmake perl5
+USES= autoreconf gmake libtool perl5
-post-patch:
- ${REINPLACE_CMD} 's,llvm-config,llvm-config37,g' ${WRKSRC}/configure
+.include <bsd.port.pre.mk>
-.include <bsd.port.mk>
+.if ${OSVERSION} < 1000000
+CONFIGURE_ENV+= CPPFLAGS="-stdlib=libstdc++ -I${LOCALBASE}/lib/gcc48/include/c++/ -I${LOCALBASE}/lib/gcc48/include/ -I${LOCALBASE}/lib/gcc48/include/c++/${ARCH:C/amd64/x86_64/}-portbld-${OPSYS:tl}${OSREL}/ -L${LOCALBASE}/lib -L${LOCALBASE}/lib/gcc48" \
+ LDFLAGS="-L/usr/local/lib/gcc48 -lstdc++"
+.endif
+
+.include <bsd.port.post.mk>