pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/geography/proj-swig Make this compile.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/76aec67ac1af
branches:  trunk
changeset: 368006:76aec67ac1af
user:      dholland <dholland%pkgsrc.org@localhost>
date:      Sat Sep 09 23:52:28 2017 +0000

description:
Make this compile.
   - since it got changed to depend on swig2, have it run swig2.
   - since it got changed to use guile20, add guile20's include path.

diffstat:

 geography/proj-swig/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 5b1911ede28a -r 76aec67ac1af geography/proj-swig/Makefile
--- a/geography/proj-swig/Makefile      Sat Sep 09 23:21:29 2017 +0000
+++ b/geography/proj-swig/Makefile      Sat Sep 09 23:52:28 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2017/01/01 14:43:41 wiz Exp $
+# $NetBSD: Makefile,v 1.28 2017/09/09 23:52:28 dholland Exp $
 
 DISTNAME=              proj-swig-0.02
 PKGREVISION=           8
@@ -19,6 +19,16 @@
 PY_PATCHPLIST=         yes
 PYTHON_VERSIONS_INCOMPATIBLE=  34 35 36 # not yet ported as of 0.02
 
+# Find guile20's includes
+CFLAGS+=               -I${BUILDLINK_PREFIX.guile20}/include/guile/2.0
+
+# Use swig2
+SUBST_CLASSES+=                swig2
+SUBST_STAGE.swig2=     pre-configure
+SUBST_MESSSAGE.swig2=  Using swig2.
+SUBST_FILES.swig2=     Makefile.in
+SUBST_SED.swig2=       -e s/swig/swig2.0/
+
 # The perl build is commented out upstream, so this doesn't have any
 # effect.
 SUBST_CLASSES+=                pkg



Home | Main Index | Thread Index | Old Index