1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/devel/gps/Makefile
John Marino 51cfe8f005 devel/gps: Fix build on upcoming gcc49
This port has to be bumped for two reasons:
  1) It should have been built in production mode across the board.
     There are some style check failures that appear in "debug" mode
     due to gcc49 checks being more strict that gcc47 checks.  Those
     issues aren't fixed, but simply hidden by switching to production
     which was desired anyway.
  2) The project logic was looking for "gnatgcc", a leftover from the
     gnat-aux days.  The gcc-aux compilers call their drivers "gcc" as
     expected by gps.  This removes the patch for gnatgcc since the
     original code is correct.
2014-03-12 10:20:29 +00:00

131 lines
3.3 KiB
Makefile

# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= gps
PORTVERSION= 5.2.1
PORTREVISION= 2
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:L}${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}
@echo "@unexec rmdir %D/share/examples 2>/dev/null || true" >> ${TMPPLIST}
@echo "@unexec rmdir %D/share/doc 2>/dev/null || true" >> ${TMPPLIST}
.include <bsd.port.mk>