diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2016-01-10 12:07:01 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2016-01-10 12:07:01 +0000 |
commit | 60751abe794c3394745c322f25b17b46103afc74 (patch) | |
tree | 7c55ed3f76544cdcfa8e9c682f751c867a76e183 /editors/codelite/Makefile | |
parent | 1aa7e857792311ce3d899229f219adc34923da13 (diff) | |
download | ports-60751abe794c3394745c322f25b17b46103afc74.tar.gz ports-60751abe794c3394745c322f25b17b46103afc74.zip |
- Update to 9.0
PR: 205203
Submitted by: ports fury
Notes
Notes:
svn path=/head/; revision=405694
Diffstat (limited to 'editors/codelite/Makefile')
-rw-r--r-- | editors/codelite/Makefile | 105 |
1 files changed, 68 insertions, 37 deletions
diff --git a/editors/codelite/Makefile b/editors/codelite/Makefile index 4ad59ee8793d..8d9ef70777c6 100644 --- a/editors/codelite/Makefile +++ b/editors/codelite/Makefile @@ -2,65 +2,96 @@ # $FreeBSD$ PORTNAME= codelite -DISTVERSION= 8.1 +PORTVERSION= 9.0 CATEGORIES= editors devel +MASTER_SITES= GH MAINTAINER= ports@FreeBSD.org COMMENT= Open Source IDE for C/C++ -LICENSE= GPLv2 +LICENSE= GPLv2 # (or later) -LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl RUN_DEPENDS= xterm:${PORTSDIR}/x11/xterm -BROKEN_FreeBSD_8= does not build on FreeBSD < 10.x -BROKEN_FreeBSD_9= does not build on FreeBSD < 10.x - -OPTIONS_DEFINE= CSCOPE CLANG NLS -CSCOPE_DESC= CScope integration -CLANG_DESC= Clang code-completion -OPTIONS_SUB= yes - USE_GITHUB= yes GH_ACCOUNT= eranif -USE_WX= 3.0 -WX_UNICODE= yes -USES= gettext cmake:outsource dos2unix execinfo shebangfix +USES= cmake:outsource compiler:c++11-lib dos2unix execinfo gettext \ + shebangfix DOS2UNIX_GLOB= *.cpp *.txt -USE_LDCONFIG= ${PREFIX}/lib/codelite -SHEBANG_FILES= Runtime/clg++ Runtime/clgcc Runtime/codelite_xterm +SHEBANG_FILES= Runtime/codelite_xterm bash_CMD= /bin/sh +USE_SQLITE= 3 +USE_WX= 3.0 +CMAKE_ARGS= -DENABLE_LLDB:STRING=0 \ + -DPREFIX:STRING="${PREFIX}" +USE_LDCONFIG= ${PREFIX}/lib/codelite INSTALLS_ICONS= yes -CMAKE_ARGS+= -DIS_FREEBSD=1 \ - -DENABLE_LLDB=0 \ - -DPREFIX=${PREFIX} +CXXFLAGS+= ${EXECINFO_CPPFLAGS} +LDFLAGS+= ${EXECINFO_LDFLAGS} -.include <bsd.port.options.mk> +OPTIONS_DEFINE= CSCOPE SFTP +OPTIONS_RADIO= CLANG +OPTIONS_RADIO_CLANG= CLANG34 CLANG35 CLANG36 +OPTIONS_SUB= yes -.if ${PORT_OPTIONS:MCSCOPE} -RUN_DEPENDS+= cscope:${PORTSDIR}/devel/cscope -.endif +CLANG_DESC= Clang code-completion +CLANG34_DESC= Clang 3.4.x +CLANG34_BUILD_DEPENDS= clang34>0:${PORTSDIR}/lang/clang34 +CLANG34_RUN_DEPENDS= clang34>0:${PORTSDIR}/lang/clang34 +CLANG35_DESC= Clang 3.5.x +CLANG35_BUILD_DEPENDS= clang35>0:${PORTSDIR}/lang/clang35 +CLANG35_RUN_DEPENDS= clang35>0:${PORTSDIR}/lang/clang35 +CLANG36_DESC= Clang 3.6.x +CLANG36_BUILD_DEPENDS= clang36>0:${PORTSDIR}/lang/clang36 +CLANG36_RUN_DEPENDS= clang36>0:${PORTSDIR}/lang/clang36 +CSCOPE_DESC= CScope integration +CSCOPE_RUN_DEPENDS= cscope:${PORTSDIR}/devel/cscope +SFTP_DESC= Secure FTP support via libssh +SFTP_LIB_DEPENDS= libssh.so:${PORTSDIR}/security/libssh +SFTP_CMAKE_OFF= -DENABLE_SFTP:STRING=0 + +.include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MCLANG} -BUILD_DEPENDS+= ${LOCALBASE}/llvm34/lib/libclang.so:${PORTSDIR}/lang/clang34 -RUN_DEPENDS+= ${LOCALBASE}/llvm34/lib/libclang.so:${PORTSDIR}/lang/clang34 -CMAKE_ARGS+= -DENABLE_CLANG=1 +.if ${PORT_OPTIONS:MCLANG34} || ${PORT_OPTIONS:MCLANG35} || ${PORT_OPTIONS:MCLANG36} +CMAKE_ARGS+= -DENABLE_CLANG:STRING=1 .else -CMAKE_ARGS+= -DENABLE_CLANG=0 +CMAKE_ARGS+= -DENABLE_CLANG:STRING=0 .endif post-patch: # Use the correct wx-config - ${REINPLACE_CMD} -e \ - 's|wx-config|${WX_CONFIG}|; \ - s|%%LOCALBASE%%|${LOCALBASE}|g; \ - s|%%PREFIX%%|${PREFIX}|g; \ - /IS_FREEBSD/s|0|1|' \ - ${WRKSRC}/CMakeLists.txt - ${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/LiteEditor/CMakeLists.txt - ${REINPLACE_CMD} -e 's|codelitegcc|codelite-cc|' \ - ${WRKSRC}/Runtime/clgcc ${WRKSRC}/Runtime/clg++ + @${REINPLACE_CMD} -e \ + '/IS_FREEBSD/s|0|1| ; \ + /CL_WX_CONFIG/s|wx-config|${WX_CONFIG:T}| ; \ + /-O2/s|^|#| ; \ + s|"-s"|""|' \ + ${WRKSRC}/CMakeLists.txt + @${REINPLACE_CMD} -e \ + 's|"-lkvm"|"-lkvm -lutil"| ; \ + s|share/man|man|' \ + ${WRKSRC}/LiteEditor/CMakeLists.txt + @${REINPLACE_CMD} -e \ + 's|"-lutil"|"-lkvm -lutil"|' \ + ${WRKSRC}/codelite_terminal/CMakeLists.txt + @${REINPLACE_CMD} -e \ + '/ADDITIONAL_LIBRARIES/s|""|"-lexecinfo"|' \ + ${WRKSRC}/sdk/codelite_cppcheck/CMakeLists.txt + +post-patch-CLANG34-on: + @${REINPLACE_CMD} -e \ + 's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm34/|' \ + ${WRKSRC}/cmake/Modules/FindLibClang.cmake + +post-patch-CLANG35-on: + @${REINPLACE_CMD} -e \ + 's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm35/|' \ + ${WRKSRC}/cmake/Modules/FindLibClang.cmake + +post-patch-CLANG36-on: + @${REINPLACE_CMD} -e \ + 's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm36/|' \ + ${WRKSRC}/cmake/Modules/FindLibClang.cmake .include <bsd.port.mk> |