aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-06-09 06:30:55 +0800
committermiwi <miwi@FreeBSD.org>2009-06-09 06:30:55 +0800
commitad6dcb178b410931b8a584938b44fc4da53756f8 (patch)
tree8ce0d77d48a49a1635170171ab0c9ebe5244ee5c /net-mgmt
parente4a324dde12b05e8afc0511401cb97ac0ae57582 (diff)
downloadfreebsd-ports-graphics-ad6dcb178b410931b8a584938b44fc4da53756f8.tar.gz
freebsd-ports-graphics-ad6dcb178b410931b8a584938b44fc4da53756f8.tar.zst
freebsd-ports-graphics-ad6dcb178b410931b8a584938b44fc4da53756f8.zip
- Update lang/python26 and make Python 2.6.2 to the default Python version
Tested by: 3 pointyhat runs Thanks to: pav, gahr, lwhsu, mva, amdmi3
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/py-yapsnmp/Makefile5
-rw-r--r--net-mgmt/py-yapsnmp/files/patch-configure2
2 files changed, 4 insertions, 3 deletions
diff --git a/net-mgmt/py-yapsnmp/Makefile b/net-mgmt/py-yapsnmp/Makefile
index b7ae4ec4cfd..06a650b0066 100644
--- a/net-mgmt/py-yapsnmp/Makefile
+++ b/net-mgmt/py-yapsnmp/Makefile
@@ -6,7 +6,7 @@
PORTNAME= yapsnmp
PORTVERSION= 0.7.8
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= net-mgmt python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= yapsnmp
@@ -21,8 +21,9 @@ USE_AUTOTOOLS= libtool:15
USE_GMAKE= yes
USE_PYTHON= yes
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include -I${PYTHON_INCLUDEDIR}" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
+CONFIGURE_ARGS+=--enable-site-packages-prefix=${PREFIX}
post-patch:
${REINPLACE_CMD} -e "s,-lsnmp,-lnetsnmp," \
diff --git a/net-mgmt/py-yapsnmp/files/patch-configure b/net-mgmt/py-yapsnmp/files/patch-configure
index 1837464b7cc..01a14e5ecb6 100644
--- a/net-mgmt/py-yapsnmp/files/patch-configure
+++ b/net-mgmt/py-yapsnmp/files/patch-configure
@@ -5,7 +5,7 @@
-for PYTHONINCPATH in python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
-+for PYTHONINCPATH in python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
++for PYTHONINCPATH in python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5
do
as_ac_Header=`echo "ac_cv_header_$PYTHONINCPATH/Python.h" | $as_tr_sh`
if eval "test \"\${$as_ac_Header+set}\" = set"; then