blob: 29e0a3e32a1a877ff6bb85dc55010963ba4e49db (
plain)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# New ports collection makefile for: codelite
# Date created: 7 May 2008
# Whom: gahr
#
# $FreeBSD$
#
PORTNAME= codelite
DISTVERSION= 3.5.${SVN_REVISION}
PORTREVISION= 1
CATEGORIES= editors devel
MASTER_SITES= SF/${PORTNAME}/Releases/${PORTNAME}-${PORTVERSION:R}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-gtk.src
MAINTAINER= gahr@FreeBSD.org
COMMENT= An Open Source IDE for C/C++
LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl
RUN_DEPENDS= xterm:${PORTSDIR}/x11/xterm
OPTIONS= CSCOPE "Enable CScope integration" OFF \
CLANG "Enable clang code-completion" OFF \
MYSQL "Enable MySQL in DB Explorer plugin" OFF \
POSTGRES "Enable PostgreSQL in DB Explorer plugin" OFF
USE_WX= 2.8
WX_UNICODE= yes
USE_GMAKE= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS+=--enable-debug
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
.include <bsd.port.pre.mk>
SVN_REVISION= 5375
.if defined(WITH_CSCOPE)
RUN_DEPENDS+= cscope:${PORTSDIR}/devel/cscope
.endif
.if defined(WITH_CLANG)
BUILD_DEPENDS+= ${LOCALBASE}/lib/libclang.so:${PORTSDIR}/lang/clang
RUN_DEPENDS+= ${LOCALBASE}/lib/libclang.so:${PORTSDIR}/lang/clang
PLIST_SUB+= CLANG=""
.else
ENABLE_CLANG= \#
PLIST_SUB+= CLANG="@comment "
.endif
.if defined(WITH_MYSQL)
CONFIGURE_ARGS+=--enable-mysql
USE_MYSQL= client
PLIST_SUB+= MYSQL=""
.else
PLIST_SUB+= MYSQL="@comment "
.endif
.if defined(WITH_POSTGRES)
CONFIGURE_ARGS+=--enable-postgres
USE_PGSQL= yes
PLIST_SUB+= POSTGRES=""
.else
PLIST_SUB+= POSTGRES="@comment "
.endif
post-patch:
${REINPLACE_CMD} -e 's|wx-config|${WX_CONFIG}|g; s|%%ENABLE_CLANG%%|${ENABLE_CLANG}|g; \
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/configure
# Configure script does not respect --prefix
${REINPLACE_CMD} -e '/^prefix/s|/usr|${PREFIX}|; \
/^plugins_dir/s|/usr/lib/codelite|${DATADIR}/plugins|' \
${WRKSRC}/configure
${REINPLACE_CMD} -e 's|$${cur_rev}|${SVN_REVISION}|' \
${WRKSRC}/le_makerevision.sh
# CTags already installed
.if exists(${LOCALBASE}/include/readtags.h)
${RM} ${WRKSRC}/CodeLite/readtags.h
.endif
.include <bsd.port.post.mk>
|