diff options
author | miwi <miwi@FreeBSD.org> | 2012-05-30 00:42:24 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2012-05-30 00:42:24 +0800 |
commit | ccb8bcfd6b5b9c1504ef0bfb34a8ca70dabc2c4c (patch) | |
tree | 0bd095af770c7ffd0b82a3ce181051a29faacc88 /lang/python32 | |
parent | aca432ab268947720aa234477950c07b0bb41f95 (diff) | |
download | freebsd-ports-gnome-ccb8bcfd6b5b9c1504ef0bfb34a8ca70dabc2c4c.tar.gz freebsd-ports-gnome-ccb8bcfd6b5b9c1504ef0bfb34a8ca70dabc2c4c.tar.zst freebsd-ports-gnome-ccb8bcfd6b5b9c1504ef0bfb34a8ca70dabc2c4c.zip |
- Convert to new options framework
Reviewed by: bapt
Diffstat (limited to 'lang/python32')
-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 |