summaryrefslogtreecommitdiff
path: root/devel/gps/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/gps/Makefile')
-rw-r--r--devel/gps/Makefile33
1 files changed, 11 insertions, 22 deletions
diff --git a/devel/gps/Makefile b/devel/gps/Makefile
index 710386a39ee..4e4319463ce 100644
--- a/devel/gps/Makefile
+++ b/devel/gps/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2011/07/24 13:11:43 obache Exp $
+# $NetBSD: Makefile,v 1.5 2011/10/14 17:22:06 marino Exp $
#
DISTNAME= gps-${GPS_VERSION}
-PKGREVISION= 2
CATEGORIES= devel
MASTER_SITES= http://downloads.dragonlace.net/src/ \
http://dragonlace.mirrors.ada.cx/src/
@@ -18,7 +17,7 @@ PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_TOOLS+= gmake sed perl awk
-GPS_VERSION= 5.0.0
+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
@@ -27,36 +26,26 @@ TPLS= ${PREFIX}/share/gps/templates
.include "options.mk"
-# Due to hardcoding on GPS' part, can't get python to work yet
CONFIGURE_ARGS+= --with-gmp=${PREFIX}
-CONFIGURE_ARGS+= --with-python=no
-CONFIGURE_ARGS+= --enable-shared-python=yes
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
-# "scripts" directory does not exist, tests disable
-#do-test:
-# cd ${WRKSRC}/scripts && ./testsuites
-#test-clean:
-# cd ${WRKSRC}/scripts && ./testsuites clean
-
-post-install:
- ${TOUCH} ${DESTDIR}${PREFIX}/share/doc/gps/pdf/IGNORE.ME
- ${TOUCH} ${DESTDIR}${PREFIX}/share/doc/gps/txt/IGNORE.ME
- ${TOUCH} ${DESTDIR}${PREFIX}/share/examples/gps/tutorial/matrix_handling/IGNORE.ME
- ${TOUCH} ${DESTDIR}${TPLS}/ajis_hello/obj/IGNORE.ME
- ${TOUCH} ${DESTDIR}${TPLS}/ajis_hello/bin/IGNORE.ME
- ${TOUCH} ${DESTDIR}${TPLS}/ajis_hello/binding/IGNORE.ME
- ${TOUCH} ${DESTDIR}${TPLS}/gtkada_minimal/obj/IGNORE.ME
- ${TOUCH} ${DESTDIR}${TPLS}/simple_project/obj/IGNORE.ME
- ${STRIP} ${DESTDIR}${PREFIX}/bin/gps
+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"