Sun May 15 10:07:20 2011 UTC ()
Recent SunOS has netpacket/packet.h, but it is not what Python expects.
Fixes build on SunOS.


(hans)
diff -r1.33 -r1.34 pkgsrc/lang/python25/Makefile

cvs diff -r1.33 -r1.34 pkgsrc/lang/python25/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/python25/Attic/Makefile 2011/04/23 17:31:40 1.33
+++ pkgsrc/lang/python25/Attic/Makefile 2011/05/15 10:07:20 1.34
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.33 2011/04/23 17:31:40 tron Exp $ 1# $NetBSD: Makefile,v 1.34 2011/05/15 10:07:20 hans Exp $
2 2
3.include "dist.mk" 3.include "dist.mk"
4 4
5PKGNAME= python25-${PY_DISTVERSION} 5PKGNAME= python25-${PY_DISTVERSION}
6PKGREVISION= 5 6PKGREVISION= 5
7CATEGORIES= lang python 7CATEGORIES= lang python
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://www.python.org/ 10HOMEPAGE= http://www.python.org/
11COMMENT= Interpreted, interactive, object-oriented programming language 11COMMENT= Interpreted, interactive, object-oriented programming language
12LICENSE= python-software-foundation 12LICENSE= python-software-foundation
13 13
14PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
@@ -46,26 +46,27 @@ PLIST_SRC+= ${.CURDIR}/../../lang/python @@ -46,26 +46,27 @@ PLIST_SRC+= ${.CURDIR}/../../lang/python
46.if ${OPSYS} == "NetBSD" 46.if ${OPSYS} == "NetBSD"
47PRIVILEGED_STAGES+= clean 47PRIVILEGED_STAGES+= clean
48# XXX work around a botched autoconf check which ignores libintl 48# XXX work around a botched autoconf check which ignores libintl
49CONFIGURE_ENV+= ac_cv_func_bind_textdomain_codeset=yes 49CONFIGURE_ENV+= ac_cv_func_bind_textdomain_codeset=yes
50.endif 50.endif
51 51
52.if ${OPSYS} == "Darwin" || ${OPSYS} == "Interix" 52.if ${OPSYS} == "Darwin" || ${OPSYS} == "Interix"
53PY_PLATNAME= ${LOWER_OPSYS} 53PY_PLATNAME= ${LOWER_OPSYS}
54USE_TOOLS+= gmake 54USE_TOOLS+= gmake
55.elif ${OPSYS} == "IRIX" 55.elif ${OPSYS} == "IRIX"
56PY_PLATNAME= ${LOWER_OPSYS:C/\..*//} 56PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
57.elif ${OPSYS} == "SunOS" 57.elif ${OPSYS} == "SunOS"
58PY_PLATNAME= sunos${OS_VERSION:C/\..*//} 58PY_PLATNAME= sunos${OS_VERSION:C/\..*//}
 59CONFIGURE_ENV+= ac_cv_header_netpacket_packet_h=no
59.elif ${OPSYS} == "HPUX" 60.elif ${OPSYS} == "HPUX"
60PY_PLATNAME= hp-ux11 61PY_PLATNAME= hp-ux11
61.else 62.else
62PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//} 63PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
63.endif 64.endif
64PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q} 65PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q}
65 66
66.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "amd64") || \ 67.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "amd64") || \
67 (${MACHINE_ARCH} == "sparc64") || (${MACHINE_ARCH} == "x86_64") || \ 68 (${MACHINE_ARCH} == "sparc64") || (${MACHINE_ARCH} == "x86_64") || \
68 (defined(ABI) && ${ABI} == "64") 69 (defined(ABI) && ${ABI} == "64")
69IS_64BIT_PLATFORM?= yes 70IS_64BIT_PLATFORM?= yes
70.else 71.else
71IS_64BIT_PLATFORM?= no 72IS_64BIT_PLATFORM?= no