View | Details | Raw Unified | Return to bug 208302 | Differences between
and this patch

Collapse All | Expand All

(-)editors/codelite/Makefile (-13 / +36 lines)
Lines 1-9 Link Here
1
# Created by: gahr
1
# Created by: gahr
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	codelite
4
PORTNAME=		codelite
5
PORTVERSION=	9.1
5
PORTVERSION=	9.1
6
CATEGORIES=	editors devel
6
PORTREVISION=	1
7
CATEGORIES=		editors devel
7
8
8
MAINTAINER=	mokhi64@gmail.com
9
MAINTAINER=	mokhi64@gmail.com
9
COMMENT=	Open Source IDE for C/C++
10
COMMENT=	Open Source IDE for C/C++
Lines 16-30 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
			-DIS_FREEBSD:STRING=1 \
26
		-DIS_FREEBSD:STRING=1 \
27
			-DCL_WX_CONFIG:STRING="${WX_CONFIG:T}"
27
		-DCL_WX_CONFIG:STRING="${WX_CONFIG:T}"
28
USE_LDCONFIG=	${PREFIX}/lib/codelite
28
USE_LDCONFIG=	${PREFIX}/lib/codelite
29
INSTALLS_ICONS=	yes
29
INSTALLS_ICONS=	yes
30
30
Lines 33-39 Link Here
33
33
34
OPTIONS_DEFINE=		CSCOPE SFTP
34
OPTIONS_DEFINE=		CSCOPE SFTP
35
OPTIONS_RADIO=		CLANG
35
OPTIONS_RADIO=		CLANG
36
OPTIONS_RADIO_CLANG=	CLANG34 CLANG35 CLANG36 CLANG37
36
OPTIONS_RADIO_CLANG=	CLANG34 CLANG35 CLANG36 CLANG37 CLANG38
37
OPTIONS_SUB=		yes
37
OPTIONS_SUB=		yes
38
38
39
CLANG_DESC=		Clang code-completion
39
CLANG_DESC=		Clang code-completion
Lines 49-54 Link Here
49
CLANG37_DESC=		Clang 3.7.x
49
CLANG37_DESC=		Clang 3.7.x
50
CLANG37_BUILD_DEPENDS=	clang37>0:lang/clang37
50
CLANG37_BUILD_DEPENDS=	clang37>0:lang/clang37
51
CLANG37_RUN_DEPENDS=	clang37>0:lang/clang37
51
CLANG37_RUN_DEPENDS=	clang37>0:lang/clang37
52
CLANG38_DESC=		Clang 3.8.x
53
CLANG38_BUILD_DEPENDS=	clang38>0:lang/clang38
54
CLANG38_RUN_DEPENDS=	clang38>0:lang/clang38
52
CSCOPE_DESC=		CScope integration
55
CSCOPE_DESC=		CScope integration
53
CSCOPE_RUN_DEPENDS=	cscope:devel/cscope
56
CSCOPE_RUN_DEPENDS=	cscope:devel/cscope
54
SFTP_DESC=		Secure FTP support via libssh
57
SFTP_DESC=		Secure FTP support via libssh
Lines 58-67 Link Here
58
61
59
.include <bsd.port.options.mk>
62
.include <bsd.port.options.mk>
60
63
61
.if ${PORT_OPTIONS:MCLANG34} || ${PORT_OPTIONS:MCLANG35} || ${PORT_OPTIONS:MCLANG36}
64
.if ${PORT_OPTIONS:MCLANG34} || ${PORT_OPTIONS:MCLANG35} || ${PORT_OPTIONS:MCLANG36} || ${PORT_OPTIONS:MCLANG37} || ${PORT_OPTIONS:MCLANG38}
62
CMAKE_ARGS+=	-DENABLE_CLANG:STRING=1
65
CMAKE_ARGS+=	-DENABLE_LLDB:STRING=1 -DENABLE_CLANG:STRING=1
63
.else
66
.else
64
CMAKE_ARGS+=	-DENABLE_CLANG:STRING=0
67
CMAKE_ARGS+=	-DENABLE_LLDB:STRING=0 -DENABLE_CLANG:STRING=0
65
.endif
68
.endif
66
69
67
post-patch:
70
post-patch:
Lines 83-102 Link Here
83
	@${REINPLACE_CMD} -e \
86
	@${REINPLACE_CMD} -e \
84
		'/ADDITIONAL_LIBRARIES/s|""|"-lexecinfo"|' \
87
		'/ADDITIONAL_LIBRARIES/s|""|"-lexecinfo"|' \
85
		${WRKSRC}/sdk/codelite_cppcheck/CMakeLists.txt
88
		${WRKSRC}/sdk/codelite_cppcheck/CMakeLists.txt
89
	@${REINPLACE_CMD} -e \
90
		's|/bin/grep|/usr/bin/grep|' \
91
		${WRKSRC}/cmake/Modules/FindLibClang.cmake
86
92
87
post-patch-CLANG34-on:
93
post-patch-CLANG34-on:
88
	@${REINPLACE_CMD} -e \
94
	@${REINPLACE_CMD} -e \
89
		's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm34/|' \
95
		's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm34/|' \
90
		${WRKSRC}/cmake/Modules/FindLibClang.cmake
96
		${WRKSRC}/cmake/Modules/FindLibClang.cmake \
97
		${WRKSRC}/cmake/Modules/FindLibLLDB.cmake
91
98
92
post-patch-CLANG35-on:
99
post-patch-CLANG35-on:
93
	@${REINPLACE_CMD} -e \
100
	@${REINPLACE_CMD} -e \
94
		's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm35/|' \
101
		's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm35/|' \
95
		${WRKSRC}/cmake/Modules/FindLibClang.cmake
102
		${WRKSRC}/cmake/Modules/FindLibClang.cmake \
103
		${WRKSRC}/cmake/Modules/FindLibLLDB.cmake
96
104
97
post-patch-CLANG36-on:
105
post-patch-CLANG36-on:
98
	@${REINPLACE_CMD} -e \
106
	@${REINPLACE_CMD} -e \
99
		's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm36/|' \
107
		's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm36/|' \
108
		${WRKSRC}/cmake/Modules/FindLibClang.cmake \
109
		${WRKSRC}/cmake/Modules/FindLibLLDB.cmake
110
111
post-patch-CLANG37-on:
112
	@${REINPLACE_CMD} -e \
113
		's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm37/|' \
100
		${WRKSRC}/cmake/Modules/FindLibClang.cmake
114
		${WRKSRC}/cmake/Modules/FindLibClang.cmake
115
	@${REINPLACE_CMD} -e \
116
		's|#/usr/lib/llvm-.*/|${LOCALBASE}/llvm37/|' \
117
		${WRKSRC}/cmake/Modules/FindLibLLDB.cmake
101
118
119
post-patch-CLANG38-on:
120
	@${REINPLACE_CMD} -e \
121
		's|/usr/lib/llvm-.*/|${LOCALBASE}/llvm38/|' \
122
		${WRKSRC}/cmake/Modules/FindLibClang.cmake \
123
		${WRKSRC}/cmake/Modules/FindLibLLDB.cmake
124
102
.include <bsd.port.mk>
125
.include <bsd.port.mk>

Return to bug 208302