mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
83 lines
1.9 KiB
Makefile
83 lines
1.9 KiB
Makefile
# New ports collection Makefile for: codelite
|
|
# Date created: 7 May 2008
|
|
# Whom: gahr
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= codelite
|
|
DISTVERSION= 4.1.${SVN_REVISION}
|
|
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++
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl
|
|
RUN_DEPENDS= xterm:${PORTSDIR}/x11/xterm
|
|
|
|
OPTIONS_DEFINE= CSCOPE CLANG MYSQL PGSQL
|
|
|
|
CSCOPE_DESC= CScope integration
|
|
CLANG_DESC= Clang code-completion
|
|
|
|
USE_WX= 2.8
|
|
WX_UNICODE= yes
|
|
USE_GMAKE= yes
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=--enable-debug
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
SVN_REVISION= 5770
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MCSCOPE}
|
|
RUN_DEPENDS+= cscope:${PORTSDIR}/devel/cscope
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MCLANG}
|
|
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 ${PORT_OPTIONS:MMYSQL}
|
|
CONFIGURE_ARGS+=--enable-mysql
|
|
USE_MYSQL= client
|
|
PLIST_SUB+= MYSQL=""
|
|
.else
|
|
PLIST_SUB+= MYSQL="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
|
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.mk>
|