aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python24
diff options
context:
space:
mode:
authorbeat <beat@FreeBSD.org>2011-10-28 18:42:24 +0800
committerbeat <beat@FreeBSD.org>2011-10-28 18:42:24 +0800
commit14d5bdaa9dd96a4c835b75bbe71dd42dbd1d386c (patch)
treea003596cd1e0d3924110ca350c7093e3d34914c5 /lang/python24
parent8bba2d569eaadd3952340c10e7cf019f39bd0cd0 (diff)
downloadfreebsd-ports-gnome-14d5bdaa9dd96a4c835b75bbe71dd42dbd1d386c.tar.gz
freebsd-ports-gnome-14d5bdaa9dd96a4c835b75bbe71dd42dbd1d386c.tar.zst
freebsd-ports-gnome-14d5bdaa9dd96a4c835b75bbe71dd42dbd1d386c.zip
- Fix build on FreeBSD 10
Approved by: miwi (implicit)
Diffstat (limited to 'lang/python24')
-rw-r--r--lang/python24/Makefile4
-rw-r--r--lang/python24/files/patch-freebsd72
-rw-r--r--lang/python24/pkg-plist3
3 files changed, 7 insertions, 2 deletions
diff --git a/lang/python24/Makefile b/lang/python24/Makefile
index dec843e3ddac..7a22c2436dd0 100644
--- a/lang/python24/Makefile
+++ b/lang/python24/Makefile
@@ -31,7 +31,7 @@ PYTHON_VERSION= python2.4
PYTHON_NO_DEPENDS= yes
PLATFORMS= plat-freebsd4 plat-freebsd5 plat-freebsd6 plat-freebsd7 \
- plat-freebsd8 plat-freebsd9
+ plat-freebsd8 plat-freebsd9 plat-freebsd10
SHARED_WRKSRC= ${WRKSRC}/build.shared
PLIST= ${WRKDIR}/pkg-plist
PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//}
@@ -163,6 +163,8 @@ post-build:
pre-su-install:
${CP} -r ${PATCH_WRKSRC}/Lib/plat-freebsd8 \
${PATCH_WRKSRC}/Lib/plat-freebsd9
+ ${CP} -r ${PATCH_WRKSRC}/Lib/plat-freebsd8 \
+ ${PATCH_WRKSRC}/Lib/plat-freebsd10
.for platform in ${PLATFORMS}
${MKDIR} ${PYTHONPREFIX_LIBDIR}/${platform}
.for file in IN.py regen
diff --git a/lang/python24/files/patch-freebsd7 b/lang/python24/files/patch-freebsd7
index a3e7569529f7..794815576f17 100644
--- a/lang/python24/files/patch-freebsd7
+++ b/lang/python24/files/patch-freebsd7
@@ -11,7 +11,7 @@ diff -u -r1.218 setup.py
- if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6'):
+ if platform in ('linux2', 'freebsd4', 'freebsd5', 'freebsd6',
-+ 'freebsd7', 'freebsd8', 'freebsd9'):
++ 'freebsd7', 'freebsd8', 'freebsd9', 'freebsd10'):
exts.append( Extension('ossaudiodev', ['ossaudiodev.c']) )
if platform == 'sunos5':
diff --git a/lang/python24/pkg-plist b/lang/python24/pkg-plist
index 8b1222328f1e..88fe79a97e0d 100644
--- a/lang/python24/pkg-plist
+++ b/lang/python24/pkg-plist
@@ -673,6 +673,8 @@ lib/lib%%PYTHON_VERSION%%.so.1
%%PYTHON_LIBDIR%%/plat-freebsd8/regen
%%PYTHON_LIBDIR%%/plat-freebsd9/IN.py
%%PYTHON_LIBDIR%%/plat-freebsd9/regen
+%%PYTHON_LIBDIR%%/plat-freebsd10/IN.py
+%%PYTHON_LIBDIR%%/plat-freebsd10/regen
%%PYTHON_LIBDIR%%/platform.py
%%PYTHON_LIBDIR%%/popen2.py
%%PYTHON_LIBDIR%%/poplib.py
@@ -1688,6 +1690,7 @@ lib/lib%%PYTHON_VERSION%%.so.1
@dirrm %%PYTHON_LIBDIR%%/test/decimaltestdata
@dirrm %%PYTHON_LIBDIR%%/test
@dirrm %%PYTHON_LIBDIR%%/site-packages
+@dirrm %%PYTHON_LIBDIR%%/plat-freebsd10
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd9
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd8
@dirrm %%PYTHON_LIBDIR%%/plat-freebsd7