blob: cb1d9a5a1a7fff4b67b7a95ebf494b105de52eb8 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# New ports collection makefile for: codelite
# Date created: 7 May 2008
# Whom: gahr
#
# $FreeBSD$
#
PORTNAME= codelite
DISTVERSION= 1.0.${SVN_REVISION}
PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= SF
MAINTAINER= gahr@FreeBSD.org
COMMENT= An Open Source IDE for C/C++
LIB_DEPENDS= curl.5:${PORTSDIR}/ftp/curl
OPTIONS= CSCOPE "Enable CScope integration" OFF
USE_WX= 2.8
WX_UNICODE= yes
USE_GNOME= gtk20
USE_GMAKE= yes
HAS_CONFIGURE= yes
.include <bsd.port.pre.mk>
ONLY_FOR_ARCHS= i386 amd64
SVN_REVISION= 2759
.if defined(WITH_CSCOPE)
RUN_DEPENDS+= cscope:${PORTSDIR}/devel/cscope
.endif
post-patch:
.if ${ARCH} == "amd64"
${REINPLACE_CMD} -e '58s|=|= -fPIC|' ${WRKSRC}/configure
.endif
${REINPLACE_CMD} -e 's|wx-config|${WX_CONFIG}|g' \
${WRKSRC}/configure
${REINPLACE_CMD} -e 's|$${cur_rev}|${SVN_REVISION}|' \
${WRKSRC}/le_makerevision.sh
# CTags already installed
(if [ -f ${LOCALBASE}/include/readtags.h ]; then \
${RM} ${WRKSRC}/CodeLite/readtags.h; \
fi; \
)
do-install:
${MKDIR} ${DATADIR}
${MKDIR} ${DATADIR}/config
${MKDIR} ${DATADIR}/rc
${MKDIR} ${DATADIR}/templates
${MKDIR} ${DATADIR}/lexers
${MKDIR} ${DATADIR}/debuggers
${MKDIR} ${DATADIR}/plugins
${MKDIR} ${DATADIR}/images
${INSTALL_PROGRAM} ${WRKSRC}/Runtime/codelite ${PREFIX}/bin/CodeLite
${INSTALL_SCRIPT} ${WRKSRC}/Runtime/le_dos2unix.sh ${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKSRC}/Runtime/le_exec.sh ${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKSRC}/Runtime/le_killproc.sh ${PREFIX}/bin/
(cd ${WRKSRC}/Runtime/config/ && ${COPYTREE_SHARE} \* ${DATADIR}/config)
(cd ${WRKSRC}/Runtime/rc/ && ${COPYTREE_SHARE} \*.xrc ${DATADIR}/rc)
(cd ${WRKSRC}/Runtime/templates && ${COPYTREE_SHARE} \* ${DATADIR}/templates)
(cd ${WRKSRC}/Runtime/lexers && ${COPYTREE_SHARE} \* ${DATADIR}/lexers)
${INSTALL_DATA} ${WRKSRC}/lib/Debugger.so ${DATADIR}/debuggers
.for lib in CodeFormatter Subversion cscope Gizmos
${INSTALL_DATA} ${WRKSRC}/lib/${lib}.so ${DATADIR}/plugins
.endfor
${INSTALL_DATA} ${WRKSRC}/Runtime/index.html ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/Runtime/astyle.sample ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/Runtime/svnreport.html ${DATADIR}
(cd ${WRKSRC}/Runtime/images && ${COPYTREE_SHARE} \*.png ${DATADIR}/images)
${INSTALL} -d ${PREFIX}/share/applications
${INSTALL} ${WRKSRC}/Runtime/codelite.desktop ${PREFIX}/share/applications/
.include <bsd.port.post.mk>
|