summaryrefslogtreecommitdiff
path: root/lang/python33
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2013-05-06 06:32:22 +0000
committerJason Helfman <jgh@FreeBSD.org>2013-05-06 06:32:22 +0000
commit7cdc62b981ecfcc26a72eb00e704f0180853de99 (patch)
tree9e0e39ea77f4f75a3e4e404bd0bbbe59e137f66c /lang/python33
parent- conversion to USES for gettext (diff)
- adoption of USES for gettext
Approved by: portmgr (bapt@)
Notes
Notes: svn path=/head/; revision=317469
Diffstat (limited to 'lang/python33')
-rw-r--r--lang/python33/Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/lang/python33/Makefile b/lang/python33/Makefile
index d30fcbb9b3e0..d52fc7e63672 100644
--- a/lang/python33/Makefile
+++ b/lang/python33/Makefile
@@ -54,6 +54,17 @@ OPTIONS_DEFAULT= THREADS PYMALLOC IPV6
NLS_DESC= Enable Gettext support for the locale module
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USE_GETTEXT= yes
+# XXX do not set any LDFLAGS or CFLAGS - this causes pyexpat to fail building
+#LDFLAGS+= "-L${LOCALBASE}/lib"
+#CFLAGS+= "-I${LOCALBASE}/include"
+.else
+CONFIGURE_ENV+= ac_cv_lib_intl_textdomain=no ac_cv_header_libintl_h=no
+.endif
+
.include <bsd.port.pre.mk>
.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION}
@@ -69,15 +80,6 @@ PLIST_SUB+= IF_DEFAULT_MAJOR=""
PLIST_SUB+= IF_DEFAULT_MAJOR="@comment "
.endif
-.if ${PORT_OPTIONS:MNLS}
-USE_GETTEXT= yes
-# XXX do not set any LDFLAGS or CFLAGS - this causes pyexpat to fail building
-#LDFLAGS+= "-L${LOCALBASE}/lib"
-#CFLAGS+= "-I${LOCALBASE}/include"
-.else
-CONFIGURE_ENV+= ac_cv_lib_intl_textdomain=no ac_cv_header_libintl_h=no
-.endif
-
.if ${PORT_OPTIONS:MTHREADS}
PLIST_SUB+= THREADS=""
CONFIGURE_ARGS+= --with-threads