4a4ec28d37
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a replacement for :U and :L (which has been marked as deprecated) bmake which is the default on FreeBSD 10+ only support by default :tu/:tl a hack has been added at the time to support :U and :L to ease migration. This hack is now not necessary anymore Note that this makes the ports tree incompatible with make(1) from FreeBSD 8.3 or earlier With hat: portmgr
129 lines
3.2 KiB
Makefile
129 lines
3.2 KiB
Makefile
# Created by: John Marino <marino@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gps
|
|
PORTVERSION= 5.2.1
|
|
PORTREVISION= 3
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://downloads.dragonlace.net/src/
|
|
DISTNAME= gps-5.2.1-1-src
|
|
PKGNAMESUFFIX= -ide
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= marino@FreeBSD.org
|
|
COMMENT= GNAT Programming Studio - IDE for Ada and many other languages
|
|
|
|
LICENSE= GPLv3
|
|
|
|
BUILD_DEPENDS= gtkada>=2.24:${PORTSDIR}/x11-toolkits/gtkada \
|
|
xmlada>=3.2:${PORTSDIR}/textproc/xmlada \
|
|
gprbuild>=20120510:${PORTSDIR}/devel/gprbuild \
|
|
sphinx-build:${PORTSDIR}/textproc/py-sphinx
|
|
LIB_DEPENDS= gmp:${PORTSDIR}/math/gmp
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_BZIP2= yes
|
|
USE_PERL5= build
|
|
ALL_TARGET= default
|
|
NO_MTREE= yes
|
|
USES= ada gmake perl5 pkgconfig
|
|
WRKSRC= ${WRKDIR}/gps-release-ide-${PORTVERSION}-src
|
|
|
|
CONFIGURE_ENV+= AWK=/usr/bin/awk
|
|
MAKE_ENV+= PROCESSORS=${MAKE_JOBS_NUMBER}
|
|
MAKE_ARGS+= Build=Production
|
|
|
|
OPTIONS_DEFINE= SYSLOG SQLITE PGSQL PYTHON READLINE
|
|
OPTIONS_DEFAULT= SYSLOG SQLITE PYTHON READLINE
|
|
|
|
PYTHON_DESC= Enable Python console
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD
|
|
CONFIGURE_TARGET= ${ARCH:S/amd64/x86_64/}-portbld-${OPSYS:tl}${OSREL}
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --disable-shared --with-gmp=${PREFIX}
|
|
|
|
################
|
|
## READLINE ##
|
|
################
|
|
|
|
.if ${PORT_OPTIONS:MREADLINE}
|
|
USES+= readline
|
|
CONFIGURE_ARGS+= --enable-gpl
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-readline
|
|
.endif
|
|
|
|
##############
|
|
## SYSLOG ##
|
|
##############
|
|
|
|
.if !${PORT_OPTIONS:MSYSLOG}
|
|
CONFIGURE_ARGS+= --disable-syslog
|
|
.endif
|
|
|
|
##############
|
|
## SQLITE ##
|
|
##############
|
|
|
|
.if ${PORT_OPTIONS:MSQLITE}
|
|
CONFIGURE_ARGS+= --with-sqlite=embedded
|
|
.else
|
|
CONFIGURE_ARGS+= --without-sqlite
|
|
.endif
|
|
|
|
##################
|
|
## POSTGRESQL ##
|
|
##################
|
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
|
CONFIGURE_ARGS+= --with-postgresql=${PREFIX}
|
|
USE_PGSQL= true
|
|
.endif
|
|
|
|
#####################
|
|
## PYTHON / PYGTK ##
|
|
#####################
|
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
|
CONFIGURE_ARGS+= --with-python=${PREFIX}
|
|
USE_PYTHON= 2
|
|
USE_GNOME= pygtk2
|
|
PYCOMPILE= ${PREFIX}/lib/${PYTHON_VERSION}/compileall.py
|
|
.else
|
|
CONFIGURE_ARGS+= --without-python \
|
|
--disable-pygtk \
|
|
--disable-pygobject
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|@PREFIX@|${PREFIX}|g" \
|
|
${WRKSRC}/gnatlib/src/gnatcoll_readline.gpr.in
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} default
|
|
|
|
pre-install:
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
|
${PYTHON_CMD} ${PYCOMPILE} ${WRKSRC}/share/plug-ins
|
|
${PYTHON_CMD} ${PYCOMPILE} ${WRKSRC}/share/library
|
|
.endif
|
|
|
|
post-install:
|
|
${RM} -rf ${STAGEDIR}${PREFIX}/share/doc/gps/html/users_guide/_sources
|
|
${RM} -rf ${STAGEDIR}${PREFIX}/share/doc/gps/html/tutorial/_sources
|
|
@cd ${STAGEDIR}${PREFIX}; ${FIND} * -type d -empty -print | ${XARGS} ${RMDIR}
|
|
@cd ${STAGEDIR}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \
|
|
${SORT} >> ${TMPPLIST}
|
|
@cd ${STAGEDIR}${PREFIX}; ${FIND} * -type d | ${AWK} '/\//' | ${SORT} -r | \
|
|
${SED} -e '/share\/doc$$/d' -e '/share\/gps$$/d' \
|
|
-e '/share\/gps\/plug-ins$$/d' -e '/share\/examples$$/d' \
|
|
-e 's/^/@dirrm /g' >> ${TMPPLIST}
|
|
@echo "@unexec rmdir %D/share/gps/plug-ins 2>/dev/null || true" >> ${TMPPLIST}
|
|
@echo "@unexec rmdir %D/share/gps 2>/dev/null || true" >> ${TMPPLIST}
|
|
|
|
.include <bsd.port.mk>
|