summaryrefslogtreecommitdiffstats
path: root/editors/codelite/Makefile
blob: 5cd079844539b4a5528965f015e096b5e15c2ef2 (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
# New ports collection makefile for: 	codelite
# Date created:				7 May 2008
# Whom:					gahr
#
# $FreeBSD$
#

PORTNAME=	codelite
DISTVERSION=	r${SVN_REVISION}
CATEGORIES=	editors
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	gahr

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	An Open Source IDE for C/C++

OPTIONS=	CSCOPE	"Enable CScope integration" OFF

WRKSRC=	${WRKDIR}/${PORTNAME}

USE_BZIP2=	yes
USE_WX=	2.8
WX_UNICODE=	yes
USE_GNOME=	gtk20
USE_GMAKE=	yes

SVN_REVISION=	1599

GNU_CONFIGURE=	yes

.include <bsd.port.pre.mk>

ONLY_FOR_ARCHS=	i386 amd64

.if defined(WITH_CSCOPE)
RUN_DEPENDS+=	cscope:${PORTSDIR}/devel/cscope
.endif

post-patch:
	${REINPLACE_CMD} -e 's|wx-config|${WX_CONFIG}|g' \
	    ${WRKSRC}/configure ${WRKSRC}/makefile.base
	${REINPLACE_CMD} -e 's|$${cur_rev}|${SVN_REVISION}|' \
		${WRKSRC}/le_makerevision.sh
.if ${ARCH} == "amd64"
	${REINPLACE_CMD} -e 's|-Wall|-fPIC -Wall|g' \
		${WRKSRC}/configure ${WRKSRC}/makefile.base
.endif

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/CodeLiteUR ${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/
	${INSTALL_PROGRAM} ${WRKSRC}/sdk/ctags/ctags-le ${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 ReferenceAnalyser 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>
OpenPOWER on IntegriCloud