summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-07-20 03:07:05 +0000
committerobache <obache@pkgsrc.org>2014-07-20 03:07:05 +0000
commit82ddcc080578f7de6cef81d687d2e075c78c5832 (patch)
tree26c4fe1df6e854e015def182b3c7c3cb16a47ae5 /www
parentc304bebb73c196b99d227e3de140facbf9ebf949 (diff)
downloadpkgsrc-82ddcc080578f7de6cef81d687d2e075c78c5832.tar.gz
Add rpath flag to LDFLAGS if supported.
Fixes PR pkg/49021 Bump PKGREVISION.
Diffstat (limited to 'www')
-rw-r--r--www/ap2-python/Makefile3
-rw-r--r--www/ap2-python/distinfo4
-rw-r--r--www/ap2-python/patches/patch-configure16
-rw-r--r--www/ap2-python/patches/patch-configure.in16
4 files changed, 37 insertions, 2 deletions
diff --git a/www/ap2-python/Makefile b/www/ap2-python/Makefile
index a5540dab43d..3cfd4cdf5a1 100644
--- a/www/ap2-python/Makefile
+++ b/www/ap2-python/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.33 2014/06/10 15:22:17 joerg Exp $
+# $NetBSD: Makefile,v 1.34 2014/07/20 03:07:05 obache Exp $
DISTNAME= mod_python-3.5.0
PKGNAME= ${APACHE_PKG_PREFIX}-${PYPKGPREFIX}-${DISTNAME:S/mod_//}
+PKGREVISION= 1
CATEGORIES= www python
MASTER_SITES= http://dist.modpython.org/dist/
EXTRACT_SUFX= .tgz
diff --git a/www/ap2-python/distinfo b/www/ap2-python/distinfo
index 382561eea8d..e8e968000fd 100644
--- a/www/ap2-python/distinfo
+++ b/www/ap2-python/distinfo
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.6 2014/02/17 17:20:28 adam Exp $
+$NetBSD: distinfo,v 1.7 2014/07/20 03:07:05 obache Exp $
SHA1 (mod_python-3.5.0.tgz) = 9208bb813172ab51d601d78e439ea552f676d2d1
RMD160 (mod_python-3.5.0.tgz) = 03315af0843892059a11758209f350c82164acc3
Size (mod_python-3.5.0.tgz) = 571403 bytes
+SHA1 (patch-configure) = 98dae04eaf0762c89190d3afd0f49c580e1f5039
+SHA1 (patch-configure.in) = 5ce62332d1381ef671e5ff1e3858b81d4d8eca01
SHA1 (patch-dist_version.sh) = 9f3dbf596238aa106e06ec1c8b27a90619ef4978
diff --git a/www/ap2-python/patches/patch-configure b/www/ap2-python/patches/patch-configure
new file mode 100644
index 00000000000..6eff72bc85f
--- /dev/null
+++ b/www/ap2-python/patches/patch-configure
@@ -0,0 +1,16 @@
+$NetBSD: patch-configure,v 1.1 2014/07/20 03:07:05 obache Exp $
+
+* Set RPATH if supported.
+
+--- configure.orig 2013-11-12 03:21:34.000000000 +0000
++++ configure
+@@ -3389,6 +3389,9 @@ if test "${PYTHONFRAMEWORKDIR}" = "no-fr
+ # this directory may contain the .so library, our preference, list 1st
+ LDFLAGS1=`${PYTHON_BIN} -c 'import distutils.sysconfig; \
+ print("-L" + distutils.sysconfig.get_config_var("LIBDIR"))'`
++ if test -n "${COMPILER_RPATH_FLAG}"; then
++ LDFLAGS1="${LDFLAGS1} ${COMPILER_RPATH_FLAG}${LDFLAGS1}"
++ fi
+ LDFLAGS2=`${PYTHON_BIN} -c 'import distutils.sysconfig; \
+ print("-L" + distutils.sysconfig.get_python_lib(plat_specific=1, \
+ standard_lib=1) +"/config")'`
diff --git a/www/ap2-python/patches/patch-configure.in b/www/ap2-python/patches/patch-configure.in
new file mode 100644
index 00000000000..6059680dd0b
--- /dev/null
+++ b/www/ap2-python/patches/patch-configure.in
@@ -0,0 +1,16 @@
+$NetBSD: patch-configure.in,v 1.1 2014/07/20 03:07:05 obache Exp $
+
+* Set RPATH if supported.
+
+--- configure.in.orig 2013-11-12 03:21:34.000000000 +0000
++++ configure.in
+@@ -212,6 +212,9 @@ if test "${PYTHONFRAMEWORKDIR}" = "no-fr
+ # this directory may contain the .so library, our preference, list 1st
+ LDFLAGS1=`${PYTHON_BIN} -c 'import distutils.sysconfig; \
+ print("-L" + distutils.sysconfig.get_config_var("LIBDIR"))'`
++ if test -n "${COMPILER_RPATH_FLAG}"; then
++ LDFLAGS1="${LDFLAGS1} ${COMPILER_RPATH_FLAG}${LDFLAGS1}"
++ fi
+ LDFLAGS2=`${PYTHON_BIN} -c 'import distutils.sysconfig; \
+ print("-L" + distutils.sysconfig.get_python_lib(plat_specific=1, \
+ standard_lib=1) +"/config")'`