diff options
| author | Martin Wilke <miwi@FreeBSD.org> | 2012-05-29 16:42:24 +0000 |
|---|---|---|
| committer | Martin Wilke <miwi@FreeBSD.org> | 2012-05-29 16:42:24 +0000 |
| commit | 8c2c328510da7f759cf95bab094bed6389c3533f (patch) | |
| tree | 903a56e3dea0011c25bc5bfee576ef1a5ad5946b /lang/python32/Makefile | |
| parent | 44a8264372ed28073fe7458d8babdc26415a7130 (diff) | |
Notes
Diffstat (limited to 'lang/python32/Makefile')
| -rw-r--r-- | lang/python32/Makefile | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lang/python32/Makefile b/lang/python32/Makefile index 43fd6192a65c..86c2fab26649 100644 --- a/lang/python32/Makefile +++ b/lang/python32/Makefile @@ -56,6 +56,9 @@ OPTIONS= THREADS "Enable thread support" on \ IPV6 "Enable IPv6 support" on \ FPECTL "Enable floating point exception handling" off +OPTIONS_DEFINE= THREADS UCS4 PYMALLOC IPV6 FPECTL EXAMPLES +OPTIONS_DEFAULT= THREADS UCS4 PYMALLOC IPV6 + .include <bsd.port.pre.mk> .if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION} || !exists(${LOCALBASE}/bin/python) @@ -65,22 +68,22 @@ PLIST_SUB+= IF_DEFAULT="" PLIST_SUB+= IF_DEFAULT="@comment " .endif -.if !defined(WITHOUT_THREADS) +.if ${PORT_OPTIONS:MTHREADS} PLIST_SUB+= THREADS="" CONFIGURE_ARGS+= --with-threads CFLAGS+= ${PTHREAD_CFLAGS} LDFLAGS+= ${PTHREAD_LIBS} -.else # defined(WITHOUT_THREADS) +.else PLIST_SUB+= THREADS="@comment " CONFIGURE_ARGS+= --without-threads -.endif # !defined(WITHOUT_THREADS) +.endif -.if !defined(WITHOUT_UCS4) && !defined(WITH_UCS2) +.if ${PORT_OPTIONS:MUCS4} CONFIGURE_ARGS+= --with-wide-unicode PYABIVER:= ${PYABIVER}u .endif -.if defined(WITHOUT_PYMALLOC) +.if ${PORT_OPTIONS:MPYMALLOC} CONFIGURE_ARGS+= --without-pymalloc .else PYABIVER:= m${PYABIVER} @@ -98,13 +101,13 @@ WITHOUT_NIS?= detected PLIST_SUB+= NO_NIS="" .endif -.if !defined(WITHOUT_IPV6) +.if ${PORT_OPTIONS:MIPV6} CONFIGURE_ARGS+= --enable-ipv6 .else CONFIGURE_ARGS+= --disable-ipv6 .endif -.if defined(WITH_FPECTL) +.if ${PORT_OPTIONS:MFPECTL} CONFIGURE_ARGS+= --with-fpectl .endif |
