pkgsrc/devel/gps/Makefile
marino 35a64b80e6 devel/gps: Upgrade to version 5.0.1
Originally this was an attempt to upgrade version 5.0.0 to version
5.1-RELEASE or even 5.2-DEVELOPMENT, but it turns out that those
versions require a GNAT Ada compiler based on gcc 4.7, which hasn't
had its first release yet.  This is mainly due to an change in the
project management API, but using the 4.7 source files fail to
compile due to the new SPARK restrictions.  Therefore GPS must
remain at 5.0.x until such time as GNAT-AUX is based on gcc 4.7.

This is a bug fix release.
The list of bug fixes is unknown, but it's confirmed the bug on the
project dialog, library tab has been fixed and thus those patches
are removed.

The Makefile was updated to allow GPS users to take advantage of
the numerous Python scripts, the Python console, and the python-GTK
bindings.  The option is present, but it has been removed from the
option list because the pkgsrc version of Python cause GPS to core
dump due to missing symbols in their dynamically-loaded libraries.
Version 2.6 and version 2.7 were both tested, and fail in different
ways.  For comparison, the FreeBSD version of GPS builds and operates
fine with Python 2.7, although at times similar "undefined symbol"
messages appear it that error log.  Once the issues with Python are
fixed, this new "python" option in options.mk will be re-enabled.
2011-10-14 17:22:06 +00:00

53 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.5 2011/10/14 17:22:06 marino Exp $
#
DISTNAME= gps-${GPS_VERSION}
CATEGORIES= devel
MASTER_SITES= http://downloads.dragonlace.net/src/ \
http://dragonlace.mirrors.ada.cx/src/
EXTRACT_SUFX= .tar.bz2
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
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_TOOLS+= gmake sed perl awk
GPS_VERSION= 5.0.1
FULL_PATH= /sbin:/bin:/usr/sbin:/usr/bin:${PREFIX}/sbin:${PREFIX}/bin:${PREFIX}/lib/pkgconfig
MY_CONFIGURE_ENV= PATH=${FULL_PATH}
MY_CONFIGURE_ENV+= CC=gnatgcc
APP= ${PREFIX}/lib/gnat
TPLS= ${PREFIX}/share/gps/templates
.include "options.mk"
CONFIGURE_ARGS+= --with-gmp=${PREFIX}
do-wrapper:
# Disable problematic wrappers
@${ECHO} "### Pkgsrc wrappers disabled ###"
post-patch:
perl -i -pe "s/set dummy python;/set dummy python${PYVERSSUFFIX};/" \
${WRKSRC}/gnatlib/configure
do-configure:
cd ${WRKSRC} && ${SETENV} ${MY_CONFIGURE_ENV} ./configure ${CONFIGURE_ARGS}
do-build:
cd ${WRKSRC} && ${SETENV} ADA_PROJECT_PATH=${APP} gmake default
pre-install:
.if !empty(PKG_OPTIONS:Mpython)
${PY_COMPILE_ALL} ${WRKSRC}/share/plug-ins
${PY_COMPILE_ALL} ${WRKSRC}/share/library
.endif
.include "../../x11/gtkada/buildlink3.mk"
.include "../../textproc/xmlada/buildlink3.mk"
.include "../../devel/gprbuild-aux/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"