blob: e6048aa7e0bd237212fce9e3df3247bfd90ba65f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Created by: gahr
# $FreeBSD$
PORTNAME= codelite
DISTVERSION= 6.1.1
PORTREVISION= 1
CATEGORIES= editors devel
MAINTAINER= ports@FreeBSD.org
COMMENT= Open Source IDE for C/C++
LICENSE= GPLv2
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 shebangfix
DOS2UNIX_GLOB= *.cpp *.txt
USE_LDCONFIG= ${PREFIX}/lib/codelite
SHEBANG_FILES= Runtime/clg++ Runtime/clgcc
CXXFLAGS+= -I${LOCALBASE}/include
CMAKE_ARGS+= -DIS_FREEBSD=1 \
-DENABLE_LLDB=0 \
-DPREFIX=${PREFIX}
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCSCOPE}
RUN_DEPENDS+= cscope:${PORTSDIR}/devel/cscope
.endif
.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
.else
CMAKE_ARGS+= -DENABLE_CLANG=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++
.include <bsd.port.mk>
|