2013-02-13 12:22:24 +01:00
|
|
|
# Created by: gahr
|
2008-05-16 00:43:06 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= codelite
|
2013-02-13 12:22:24 +01:00
|
|
|
DISTVERSION= 5.0.${SVN_REVISION}
|
2012-03-01 09:46:32 +01:00
|
|
|
CATEGORIES= editors devel
|
|
|
|
MASTER_SITES= SF/${PORTNAME}/Releases/${PORTNAME}-${PORTVERSION:R}/
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-gtk.src
|
2008-05-16 00:43:06 +02:00
|
|
|
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
|
|
COMMENT= An Open Source IDE for C/C++
|
|
|
|
|
2012-08-30 15:26:10 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2012-06-19 10:35:21 +02:00
|
|
|
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
|
2010-03-26 08:57:19 +01:00
|
|
|
RUN_DEPENDS= xterm:${PORTSDIR}/x11/xterm
|
2008-07-03 20:40:53 +02:00
|
|
|
|
2012-08-30 15:26:10 +02:00
|
|
|
OPTIONS_DEFINE= CSCOPE CLANG MYSQL PGSQL
|
|
|
|
|
|
|
|
CSCOPE_DESC= CScope integration
|
|
|
|
CLANG_DESC= Clang code-completion
|
2008-05-16 00:43:06 +02:00
|
|
|
|
2013-02-13 12:22:24 +01:00
|
|
|
USE_WX= 2.9
|
2008-05-16 00:43:06 +02:00
|
|
|
WX_UNICODE= yes
|
2013-02-13 12:22:24 +01:00
|
|
|
USE_DOS2UNIX= *.cpp
|
2008-05-16 00:43:06 +02:00
|
|
|
USE_GMAKE= yes
|
2008-09-24 23:42:22 +02:00
|
|
|
HAS_CONFIGURE= yes
|
2013-02-13 12:22:24 +01:00
|
|
|
CPPFLAGS+= -g -O0
|
|
|
|
CONFIGURE_ARGS+=--enable-debug \
|
|
|
|
--prefix=${PREFIX}
|
|
|
|
CONFIGURE_ENV+= WXCONFIG=${WX_CONFIG}
|
2012-03-01 09:46:32 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2008-05-16 00:43:06 +02:00
|
|
|
|
2013-02-13 12:22:24 +01:00
|
|
|
SVN_REVISION= 6213
|
2008-05-16 00:43:06 +02:00
|
|
|
|
2012-08-30 15:26:10 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2008-09-24 23:42:22 +02:00
|
|
|
|
2012-08-30 15:26:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MCSCOPE}
|
2008-05-16 00:43:06 +02:00
|
|
|
RUN_DEPENDS+= cscope:${PORTSDIR}/devel/cscope
|
|
|
|
.endif
|
|
|
|
|
2012-08-30 15:26:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MCLANG}
|
2013-02-13 12:22:24 +01:00
|
|
|
.if ${OSVERSION} < 1000026
|
2012-03-01 09:46:32 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libclang.so:${PORTSDIR}/lang/clang
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libclang.so:${PORTSDIR}/lang/clang
|
2013-02-13 12:22:24 +01:00
|
|
|
.endif
|
2012-03-01 09:46:32 +01:00
|
|
|
PLIST_SUB+= CLANG=""
|
|
|
|
.else
|
2013-02-13 12:22:24 +01:00
|
|
|
CONFIGURE_ARGS+=--without-clang
|
2012-03-01 09:46:32 +01:00
|
|
|
ENABLE_CLANG= \#
|
|
|
|
PLIST_SUB+= CLANG="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-08-30 15:26:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2012-03-01 09:46:32 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-mysql
|
|
|
|
USE_MYSQL= client
|
|
|
|
PLIST_SUB+= MYSQL=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2012-08-30 15:26:10 +02:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
2012-03-01 09:46:32 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-postgres
|
|
|
|
USE_PGSQL= yes
|
|
|
|
PLIST_SUB+= POSTGRES=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= POSTGRES="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-05-16 00:43:06 +02:00
|
|
|
post-patch:
|
2013-02-13 12:22:24 +01:00
|
|
|
# Use the correct wx-config
|
|
|
|
${REINPLACE_CMD} -e 's|%%ENABLE_CLANG%%|${ENABLE_CLANG}|g; \
|
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g; s|666|644|' ${WRKSRC}/configure
|
2008-05-30 01:39:56 +02:00
|
|
|
${REINPLACE_CMD} -e 's|$${cur_rev}|${SVN_REVISION}|' \
|
2008-09-24 23:42:22 +02:00
|
|
|
${WRKSRC}/le_makerevision.sh
|
|
|
|
# CTags already installed
|
2010-03-26 08:57:19 +01:00
|
|
|
.if exists(${LOCALBASE}/include/readtags.h)
|
2010-03-26 15:38:04 +01:00
|
|
|
${RM} ${WRKSRC}/CodeLite/readtags.h
|
2010-03-26 08:57:19 +01:00
|
|
|
.endif
|
2008-05-16 00:43:06 +02:00
|
|
|
|
2012-08-30 15:26:10 +02:00
|
|
|
.include <bsd.port.mk>
|