Lines 3-8
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= codelite |
4 |
PORTNAME= codelite |
5 |
PORTVERSION= 9.1 |
5 |
PORTVERSION= 9.1 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= editors devel |
7 |
CATEGORIES= editors devel |
7 |
|
8 |
|
8 |
MAINTAINER= mokhi64@gmail.com |
9 |
MAINTAINER= mokhi64@gmail.com |
Lines 16-27
Link Here
|
16 |
GH_ACCOUNT= eranif |
17 |
GH_ACCOUNT= eranif |
17 |
|
18 |
|
18 |
USES= cmake:outsource compiler:c++11-lib dos2unix execinfo gettext \ |
19 |
USES= cmake:outsource compiler:c++11-lib dos2unix execinfo gettext \ |
19 |
shebangfix sqlite |
20 |
pathfix shebangfix sqlite |
20 |
DOS2UNIX_GLOB= *.cpp *.txt |
21 |
DOS2UNIX_GLOB= *.cpp *.txt |
21 |
SHEBANG_FILES= Runtime/codelite_xterm |
22 |
SHEBANG_FILES= Runtime/codelite_xterm |
22 |
bash_CMD= /bin/sh |
23 |
bash_CMD= /bin/sh |
23 |
USE_WX= 3.0 |
24 |
USE_WX= 3.0 |
24 |
CMAKE_ARGS= -DENABLE_LLDB:STRING=0 \ |
25 |
CMAKE_ARGS= -DPREFIX:STRING="${PREFIX}" \ |
25 |
-DPREFIX:STRING="${PREFIX}" \ |
26 |
-DPREFIX:STRING="${PREFIX}" \ |
26 |
-DIS_FREEBSD:STRING=1 \ |
27 |
-DIS_FREEBSD:STRING=1 \ |
27 |
-DCL_WX_CONFIG:STRING="${WX_CONFIG:T}" |
28 |
-DCL_WX_CONFIG:STRING="${WX_CONFIG:T}" |
Lines 33-39
Link Here
|
33 |
|
34 |
|
34 |
OPTIONS_DEFINE= CSCOPE SFTP |
35 |
OPTIONS_DEFINE= CSCOPE SFTP |
35 |
OPTIONS_RADIO= CLANG |
36 |
OPTIONS_RADIO= CLANG |
36 |
OPTIONS_RADIO_CLANG= CLANG34 CLANG35 CLANG36 CLANG37 |
37 |
OPTIONS_RADIO_CLANG= CLANG34 CLANG35 CLANG36 CLANG37 CLANG38 |
37 |
OPTIONS_SUB= yes |
38 |
OPTIONS_SUB= yes |
38 |
|
39 |
|
39 |
CLANG_DESC= Clang code-completion |
40 |
CLANG_DESC= Clang code-completion |
Lines 49-54
Link Here
|
49 |
CLANG37_DESC= Clang 3.7.x |
50 |
CLANG37_DESC= Clang 3.7.x |
50 |
CLANG37_BUILD_DEPENDS= clang37>0:lang/clang37 |
51 |
CLANG37_BUILD_DEPENDS= clang37>0:lang/clang37 |
51 |
CLANG37_RUN_DEPENDS= clang37>0:lang/clang37 |
52 |
CLANG37_RUN_DEPENDS= clang37>0:lang/clang37 |
|
|
53 |
CLANG38_DESC= Clang 3.8.x |
54 |
CLANG38_BUILD_DEPENDS= clang38>0:lang/clang38 |
55 |
CLANG38_RUN_DEPENDS= clang38>0:lang/clang38 |
52 |
CSCOPE_DESC= CScope integration |
56 |
CSCOPE_DESC= CScope integration |
53 |
CSCOPE_RUN_DEPENDS= cscope:devel/cscope |
57 |
CSCOPE_RUN_DEPENDS= cscope:devel/cscope |
54 |
SFTP_DESC= Secure FTP support via libssh |
58 |
SFTP_DESC= Secure FTP support via libssh |
Lines 58-67
Link Here
|
58 |
|
62 |
|
59 |
.include <bsd.port.options.mk> |
63 |
.include <bsd.port.options.mk> |
60 |
|
64 |
|
61 |
.if ${PORT_OPTIONS:MCLANG34} || ${PORT_OPTIONS:MCLANG35} || ${PORT_OPTIONS:MCLANG36} |
65 |
.if ${PORT_OPTIONS:MCLANG34} || ${PORT_OPTIONS:MCLANG35} || ${PORT_OPTIONS:MCLANG36} || ${PORT_OPTIONS:MCLANG37} || ${PORT_OPTIONS:MCLANG38} |
62 |
CMAKE_ARGS+= -DENABLE_CLANG:STRING=1 |
66 |
CMAKE_ARGS+= -DENABLE_LLDB:STRING=1 -DENABLE_CLANG:STRING=1 |
63 |
.else |
67 |
.else |
64 |
CMAKE_ARGS+= -DENABLE_CLANG:STRING=0 |
68 |
CMAKE_ARGS+= -DENABLE_LLDB:STRING=0 -DENABLE_CLANG:STRING=0 |
65 |
.endif |
69 |
.endif |
66 |
|
70 |
|
67 |
post-patch: |
71 |
post-patch: |
Lines 83-102
Link Here
|
83 |
@${REINPLACE_CMD} -e \ |
87 |
@${REINPLACE_CMD} -e \ |
84 |
'/ADDITIONAL_LIBRARIES/s|""|"-lexecinfo"|' \ |
88 |
'/ADDITIONAL_LIBRARIES/s|""|"-lexecinfo"|' \ |
85 |
${WRKSRC}/sdk/codelite_cppcheck/CMakeLists.txt |
89 |
${WRKSRC}/sdk/codelite_cppcheck/CMakeLists.txt |
|
|
90 |
@${REINPLACE_CMD} -e \ |
91 |
's|/bin/grep|/usr/bin/grep|' \ |
92 |
${WRKSRC}/cmake/Modules/FindLibClang.cmake |
86 |
|
93 |
|
87 |
post-patch-CLANG34-on: |
94 |
post-patch-CLANG34-on: |
88 |
@${REINPLACE_CMD} -e \ |
95 |
@${REINPLACE_CMD} -e \ |
89 |
's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm34/|' \ |
96 |
's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm34/|' \ |
90 |
${WRKSRC}/cmake/Modules/FindLibClang.cmake |
97 |
${WRKSRC}/cmake/Modules/FindLibClang.cmake \ |
|
|
98 |
${WRKSRC}/cmake/Modules/FindLibLLDB.cmake |
91 |
|
99 |
|
92 |
post-patch-CLANG35-on: |
100 |
post-patch-CLANG35-on: |
93 |
@${REINPLACE_CMD} -e \ |
101 |
@${REINPLACE_CMD} -e \ |
94 |
's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm35/|' \ |
102 |
's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm35/|' \ |
95 |
${WRKSRC}/cmake/Modules/FindLibClang.cmake |
103 |
${WRKSRC}/cmake/Modules/FindLibClang.cmake \ |
|
|
104 |
${WRKSRC}/cmake/Modules/FindLibLLDB.cmake |
96 |
|
105 |
|
97 |
post-patch-CLANG36-on: |
106 |
post-patch-CLANG36-on: |
98 |
@${REINPLACE_CMD} -e \ |
107 |
@${REINPLACE_CMD} -e \ |
99 |
's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm36/|' \ |
108 |
's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm36/|' \ |
|
|
109 |
${WRKSRC}/cmake/Modules/FindLibClang.cmake \ |
110 |
${WRKSRC}/cmake/Modules/FindLibLLDB.cmake |
111 |
|
112 |
post-patch-CLANG37-on: |
113 |
@${REINPLACE_CMD} -e \ |
114 |
's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm37/|' \ |
100 |
${WRKSRC}/cmake/Modules/FindLibClang.cmake |
115 |
${WRKSRC}/cmake/Modules/FindLibClang.cmake |
|
|
116 |
@${REINPLACE_CMD} -e \ |
117 |
's|#/usr/lib/llvm-.*/|${LOCALBASE}/llvm37/|' \ |
118 |
${WRKSRC}/cmake/Modules/FindLibLLDB.cmake |
101 |
|
119 |
|
|
|
120 |
post-patch-CLANG38-on: |
121 |
@${REINPLACE_CMD} -e \ |
122 |
's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm38/|' \ |
123 |
${WRKSRC}/cmake/Modules/FindLibClang.cmake \ |
124 |
${WRKSRC}/cmake/Modules/FindLibLLDB.cmake |
125 |
|
102 |
.include <bsd.port.mk> |
126 |
.include <bsd.port.mk> |