Unbreak packaging of python2.6 on powerpc; ctypes module will need more

work.

ok djm@
This commit is contained in:
ajacoutot 2009-09-22 21:31:00 +00:00
parent aef2e72389
commit 27263b83d9

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile.inc,v 1.60 2009/08/10 17:31:07 kili Exp $
# $OpenBSD: Makefile.inc,v 1.61 2009/09/22 21:31:00 ajacoutot Exp $
# IMPORTANT! If you make any changes to the Python ports, be sure
# to also update files/CHANGES.OpenBSD for your change. This is a
@ -77,12 +77,13 @@ PKG_ARGS+= -Dmm=0
PKG_ARGS+= -Dmm=1
.endif
# XXX fix ctypes on powerpc for python2.6
# The ctypes module is not supported on all platforms (in particular, ARM)
.if ${VERSION} == "2.5" || ${VERSION} == "2.6"
. if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64" || \
${MACHINE_ARCH} == "sparc" || ${MACHINE_ARCH} == "sparc64" || \
${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "m68k" || \
${MACHINE_ARCH} == "powerpc"
( ${MACHINE_ARCH} == "powerpc" && ${VERSION} != "2.6" )
PKG_ARGS+= -Dctypes=1
. else
PKG_ARGS+= -Dctypes=0