diff --git a/devel/ccons/Makefile b/devel/ccons/Makefile index 22ed943e9a6c..c94f4240a12f 100644 --- a/devel/ccons/Makefile +++ b/devel/ccons/Makefile @@ -1,48 +1,45 @@ +# Created by: Danilo Egea Gondolfo # $FreeBSD$ PORTNAME= ccons -PORTVERSION= r243 +PORTVERSION= r251 CATEGORIES= devel MASTER_SITES= GOOGLE_CODE -MAINTAINER= danilogondolfo@gmail.com +MAINTAINER= danilo@FreeBSD.org COMMENT= Interactive Console for the C Programming Language LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${LOCALBASE}/bin/llvm-config:${PORTSDIR}/devel/llvm \ - ${LOCALBASE}/bin/clang:${PORTSDIR}/lang/clang \ - ${LOCALBASE}/bin/ld:${PORTSDIR}/devel/binutils -LIB_DEPENDS= ncurses:${PORTSDIR}/devel/ncurses +BUILD_DEPENDS= llvm-config33:${PORTSDIR}/devel/llvm33 \ + clang++33:${PORTSDIR}/lang/clang33 +LIB_DEPENDS= libncurses.so:${PORTSDIR}/devel/ncurses ONLY_FOR_ARCHS= i386 amd64 USES= cmake -CMAKE_ARGS+= -DLLVM_CONFIG_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/llvm-config - -CXX= ${LOCALBASE}/bin/clang++ +CMAKE_ARGS+= -DLLVM_CONFIG_EXECUTABLE=${LOCALBASE}/bin/llvm-config33 CXXFLAGS+= -fno-rtti -LDFLAGS+= -lclangFrontendTool -lclangFrontend -lclangDriver -lclangSerialization \ - -lclangCodeGen -lclangParse -lclangSema -lclangStaticAnalyzerCheckers \ - -lclangStaticAnalyzerCore -lclangAnalysis -lclang -lclangAST -lclangLex \ - -lclangBasic -ledit -lm +LDFLAGS+= -lclang +CXX= clang++33 +CC= clang33 -PLIST_FILES= bin/ccons +PLIST_FILES= bin/ccons man/man1/ccons.1.gz WRKSRC= ${WRKDIR}/ccons - -MAN1= ccons.1 - -NO_STAGE= yes .include +.if ${OSVERSION} >= 1000054 +CXXFLAGS+= -stdlib=libc++ +.endif + .if ${OSVERSION} < 900044 BROKEN= ccons does not work on FreeBSD < 9.0-RELEASE .endif do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/ccons ${PREFIX}/bin/ccons - @${INSTALL_MAN} ${WRKSRC}/man/ccons.1 ${MAN1PREFIX}/man/man1/ccons.1 + @${INSTALL_PROGRAM} ${WRKSRC}/ccons ${STAGEDIR}${PREFIX}/bin/ccons + @${INSTALL_MAN} ${WRKSRC}/man/ccons.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/ccons.1 .include diff --git a/devel/ccons/distinfo b/devel/ccons/distinfo index 552b7e6ca2a3..606247c1bd5d 100644 --- a/devel/ccons/distinfo +++ b/devel/ccons/distinfo @@ -1,2 +1,2 @@ -SHA256 (ccons-r243.tar.gz) = 22edb1420578f0aba6adc5edb5d2add523b7b0fdb83c9ef10f1bb3d43b66aad8 -SIZE (ccons-r243.tar.gz) = 26270 +SHA256 (ccons-r251.tar.gz) = 766619e217d795276d36c0fe324ce3fdf03ed67929bd8b452b5adcb20fba5812 +SIZE (ccons-r251.tar.gz) = 26469 diff --git a/devel/ccons/files/patch-Console.cpp b/devel/ccons/files/patch-Console.cpp new file mode 100644 index 000000000000..b89e36a7c35e --- /dev/null +++ b/devel/ccons/files/patch-Console.cpp @@ -0,0 +1,10 @@ +--- ./Console.cpp.orig 2013-09-18 15:56:23.000000000 -0300 ++++ ./Console.cpp 2013-09-18 15:56:32.000000000 -0300 +@@ -12,6 +12,7 @@ + + #include + #include ++#include + + #include + #include