|
Lines 2-66
Link Here
|
| 2 |
# $FreeBSD: head/editors/codelite/Makefile 394320 2015-08-15 14:53:55Z bsam $ |
2 |
# $FreeBSD: head/editors/codelite/Makefile 394320 2015-08-15 14:53:55Z bsam $ |
| 3 |
|
3 |
|
| 4 |
PORTNAME= codelite |
4 |
PORTNAME= codelite |
| 5 |
DISTVERSION= 8.1 |
5 |
PORTVERSION= 9.0 |
| 6 |
CATEGORIES= editors devel |
6 |
CATEGORIES= editors devel |
|
|
7 |
MASTER_SITES= GH |
| 7 |
|
8 |
|
| 8 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= ports@FreeBSD.org |
| 9 |
COMMENT= Open Source IDE for C/C++ |
10 |
COMMENT= Open Source IDE for C/C++ |
| 10 |
|
11 |
|
| 11 |
LICENSE= GPLv2 |
12 |
LICENSE= GPLv2 # (or later) |
| 12 |
|
13 |
|
| 13 |
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl |
|
|
| 14 |
RUN_DEPENDS= xterm:${PORTSDIR}/x11/xterm |
14 |
RUN_DEPENDS= xterm:${PORTSDIR}/x11/xterm |
| 15 |
|
15 |
|
| 16 |
BROKEN_FreeBSD_8= does not build on FreeBSD < 10.x |
|
|
| 17 |
BROKEN_FreeBSD_9= does not build on FreeBSD < 10.x |
| 18 |
|
| 19 |
OPTIONS_DEFINE= CSCOPE CLANG NLS |
| 20 |
CSCOPE_DESC= CScope integration |
| 21 |
CLANG_DESC= Clang code-completion |
| 22 |
OPTIONS_SUB= yes |
| 23 |
|
| 24 |
USE_GITHUB= yes |
16 |
USE_GITHUB= yes |
| 25 |
GH_ACCOUNT= eranif |
17 |
GH_ACCOUNT= eranif |
| 26 |
|
18 |
|
| 27 |
USE_WX= 3.0 |
19 |
USES= cmake:outsource compiler:c++11-lib dos2unix execinfo gettext \ |
| 28 |
WX_UNICODE= yes |
20 |
shebangfix |
| 29 |
USES= gettext cmake:outsource dos2unix execinfo shebangfix |
|
|
| 30 |
DOS2UNIX_GLOB= *.cpp *.txt |
21 |
DOS2UNIX_GLOB= *.cpp *.txt |
| 31 |
USE_LDCONFIG= ${PREFIX}/lib/codelite |
22 |
SHEBANG_FILES= Runtime/codelite_xterm |
| 32 |
SHEBANG_FILES= Runtime/clg++ Runtime/clgcc Runtime/codelite_xterm |
|
|
| 33 |
bash_CMD= /bin/sh |
23 |
bash_CMD= /bin/sh |
|
|
24 |
USE_SQLITE= 3 |
| 25 |
USE_WX= 3.0 |
| 26 |
CMAKE_ARGS= -DENABLE_LLDB:STRING=0 \ |
| 27 |
-DPREFIX:STRING="${PREFIX}" |
| 28 |
USE_LDCONFIG= ${PREFIX}/lib/codelite |
| 34 |
INSTALLS_ICONS= yes |
29 |
INSTALLS_ICONS= yes |
| 35 |
|
30 |
|
| 36 |
CMAKE_ARGS+= -DIS_FREEBSD=1 \ |
31 |
CXXFLAGS+= ${EXECINFO_CPPFLAGS} |
| 37 |
-DENABLE_LLDB=0 \ |
32 |
LDFLAGS+= ${EXECINFO_LDFLAGS} |
| 38 |
-DPREFIX=${PREFIX} |
|
|
| 39 |
|
33 |
|
| 40 |
.include <bsd.port.options.mk> |
34 |
OPTIONS_DEFINE= CSCOPE SFTP |
|
|
35 |
OPTIONS_RADIO= CLANG |
| 36 |
OPTIONS_RADIO_CLANG= CLANG34 CLANG35 CLANG36 |
| 37 |
OPTIONS_SUB= yes |
| 38 |
|
| 39 |
CLANG_DESC= Clang code-completion |
| 40 |
CLANG34_DESC= Clang 3.4.x |
| 41 |
CLANG34_BUILD_DEPENDS= clang34>0:${PORTSDIR}/lang/clang34 |
| 42 |
CLANG34_RUN_DEPENDS= clang34>0:${PORTSDIR}/lang/clang34 |
| 43 |
CLANG35_DESC= Clang 3.5.x |
| 44 |
CLANG35_BUILD_DEPENDS= clang35>0:${PORTSDIR}/lang/clang35 |
| 45 |
CLANG35_RUN_DEPENDS= clang35>0:${PORTSDIR}/lang/clang35 |
| 46 |
CLANG36_DESC= Clang 3.6.x |
| 47 |
CLANG36_BUILD_DEPENDS= clang36>0:${PORTSDIR}/lang/clang36 |
| 48 |
CLANG36_RUN_DEPENDS= clang36>0:${PORTSDIR}/lang/clang36 |
| 49 |
CSCOPE_DESC= CScope integration |
| 50 |
CSCOPE_RUN_DEPENDS= cscope:${PORTSDIR}/devel/cscope |
| 51 |
SFTP_DESC= Secure FTP support via libssh |
| 52 |
SFTP_LIB_DEPENDS= libssh.so:${PORTSDIR}/security/libssh |
| 53 |
SFTP_CMAKE_OFF= -DENABLE_SFTP:STRING=0 |
| 41 |
|
54 |
|
| 42 |
.if ${PORT_OPTIONS:MCSCOPE} |
55 |
.include <bsd.port.options.mk> |
| 43 |
RUN_DEPENDS+= cscope:${PORTSDIR}/devel/cscope |
|
|
| 44 |
.endif |
| 45 |
|
56 |
|
| 46 |
.if ${PORT_OPTIONS:MCLANG} |
57 |
.if ${PORT_OPTIONS:MCLANG34} || ${PORT_OPTIONS:MCLANG35} || ${PORT_OPTIONS:MCLANG36} |
| 47 |
BUILD_DEPENDS+= ${LOCALBASE}/llvm34/lib/libclang.so:${PORTSDIR}/lang/clang34 |
58 |
CMAKE_ARGS+= -DENABLE_CLANG:STRING=1 |
| 48 |
RUN_DEPENDS+= ${LOCALBASE}/llvm34/lib/libclang.so:${PORTSDIR}/lang/clang34 |
|
|
| 49 |
CMAKE_ARGS+= -DENABLE_CLANG=1 |
| 50 |
.else |
59 |
.else |
| 51 |
CMAKE_ARGS+= -DENABLE_CLANG=0 |
60 |
CMAKE_ARGS+= -DENABLE_CLANG:STRING=0 |
| 52 |
.endif |
61 |
.endif |
| 53 |
|
62 |
|
| 54 |
post-patch: |
63 |
post-patch: |
| 55 |
# Use the correct wx-config |
64 |
# Use the correct wx-config |
| 56 |
${REINPLACE_CMD} -e \ |
65 |
@${REINPLACE_CMD} -e \ |
| 57 |
's|wx-config|${WX_CONFIG}|; \ |
66 |
'/IS_FREEBSD/s|0|1| ; \ |
| 58 |
s|%%LOCALBASE%%|${LOCALBASE}|g; \ |
67 |
/CL_WX_CONFIG/s|wx-config|${WX_CONFIG:T}| ; \ |
| 59 |
s|%%PREFIX%%|${PREFIX}|g; \ |
68 |
/-O2/s|^|#| ; \ |
| 60 |
/IS_FREEBSD/s|0|1|' \ |
69 |
s|"-s"|""|' \ |
| 61 |
${WRKSRC}/CMakeLists.txt |
70 |
${WRKSRC}/CMakeLists.txt |
| 62 |
${REINPLACE_CMD} -e 's|share/man|man|' ${WRKSRC}/LiteEditor/CMakeLists.txt |
71 |
@${REINPLACE_CMD} -e \ |
| 63 |
${REINPLACE_CMD} -e 's|codelitegcc|codelite-cc|' \ |
72 |
's|"-lkvm"|"-lkvm -lutil"| ; \ |
| 64 |
${WRKSRC}/Runtime/clgcc ${WRKSRC}/Runtime/clg++ |
73 |
s|share/man|man|' \ |
|
|
74 |
${WRKSRC}/LiteEditor/CMakeLists.txt |
| 75 |
@${REINPLACE_CMD} -e \ |
| 76 |
's|"-lutil"|"-lkvm -lutil"|' \ |
| 77 |
${WRKSRC}/codelite_terminal/CMakeLists.txt |
| 78 |
@${REINPLACE_CMD} -e \ |
| 79 |
'/ADDITIONAL_LIBRARIES/s|""|"-lexecinfo"|' \ |
| 80 |
${WRKSRC}/sdk/codelite_cppcheck/CMakeLists.txt |
| 81 |
|
| 82 |
post-patch-CLANG34-on: |
| 83 |
@${REINPLACE_CMD} -e \ |
| 84 |
's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm34/|' \ |
| 85 |
${WRKSRC}/cmake/Modules/FindLibClang.cmake |
| 86 |
|
| 87 |
post-patch-CLANG35-on: |
| 88 |
@${REINPLACE_CMD} -e \ |
| 89 |
's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm35/|' \ |
| 90 |
${WRKSRC}/cmake/Modules/FindLibClang.cmake |
| 91 |
|
| 92 |
post-patch-CLANG36-on: |
| 93 |
@${REINPLACE_CMD} -e \ |
| 94 |
's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm36/|' \ |
| 95 |
${WRKSRC}/cmake/Modules/FindLibClang.cmake |
| 65 |
|
96 |
|
| 66 |
.include <bsd.port.mk> |
97 |
.include <bsd.port.mk> |