pkgsrc/devel/gps/Makefile
marino 2558aa7396 devel/gps: Fix build on upcoming FSF GNAT 4.9
This package has a couple of issues that the new gcc (GNAT) uncovered
on FreeBSD, and the fixes have been brought over:

1) GPS 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 stricter than gcc47 checks.  Those issues
   aren't actually fixed, but rather hidden by switching to production
   which was desired anyway.
2) GCC had a couple of "ambiguous" complaints as well as an overlapping
   variable used for both in and out parameters.  Fixed with patches.
2014-04-28 22:14:51 +00:00

68 lines
2 KiB
Makefile

# $NetBSD: Makefile,v 1.32 2014/04/28 22:14:51 marino Exp $
#
DISTNAME= gps-${GPS_VERSION}
PKGREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://downloads.dragonlace.net/src/
DISTFILES= gps-5.2.1-1-src.tgz
MAINTAINER= draco@marino.st
HOMEPAGE= http://www.adacore.com/home/products/gnatpro/toolsuite/gps/
COMMENT= GNAT Programming Studio - IDE for Ada and many other languages
LICENSE= gnu-gpl-v2
GNU_CONFIGURE= yes
USE_TOOLS+= gmake sed perl awk pkg-config
GPS_VERSION= 5.2.1
USE_LANGUAGES= c ada c++
MY_CONFIGURE_ENV+= ADA_PROJECT_PATH=${APP}
MY_MAKE_ENV+= PROCESSORS=${MAKE_JOBS} \
ADA_PROJECT_PATH=${APP}
MAKE_ARGS= Build=Production
APP= ${PREFIX}/lib/gnat
WRKSRC= ${WRKDIR}/gps-release-ide-${GPS_VERSION}-src
MAKE_JOBS_SAFE= yes
.include "options.mk"
CONFIGURE_ARGS+= --disable-shared --with-gmp=${PREFIX}
SUBST_CLASSES+= coll python
SUBST_STAGE.coll= post-patch
SUBST_FILES.coll= gnatlib/src/gnatcoll_readline.gpr.in
SUBST_SED.coll= -e "s|@PREFIX@|${PREFIX}|g"
SUBST_STAGE.python= post-patch
SUBST_FILES.python= share/plug-ins/gps_utils/console_process.py
SUBST_SED.python= -e "s|/usr/bin/python|${PYTHONBIN}|"
GENERATE_PLIST= cd ${DESTDIR}${PREFIX}; \
${FIND} * \( -type f -or -type l \) | ${SORT};
do-configure:
cd ${WRKSRC} && ${SETENV} ${MY_CONFIGURE_ENV} \
./configure ${CONFIGURE_ARGS}
do-build:
cd ${WRKSRC} && ${SETENV} ${MY_MAKE_ENV} gmake ${MAKE_ARGS} default
pre-install:
.if !empty(PKG_OPTIONS:Mpython)
${PY_COMPILE_ALL} ${WRKSRC}/share/plug-ins
${PY_COMPILE_ALL} ${WRKSRC}/share/library
.endif
post-install:
${RM} -rf ${DESTDIR}${PREFIX}/share/doc/gps/html/users_guide/_sources
${RM} -rf ${DESTDIR}${PREFIX}/share/doc/gps/html/tutorial/_sources
cd ${DESTDIR}${PREFIX}; ${FIND} * -type d -empty -print | xargs rmdir
DEPENDS+= ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx
.include "../../lang/python/application.mk"
.include "../../x11/gtkada/buildlink3.mk"
.include "../../textproc/xmlada/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../devel/gprbuild-aux/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"