From 0ad33b7e0f1e94e8fd60f9d60aa9b63e0c1a4f81 Mon Sep 17 00:00:00 2001 From: jgh Date: Mon, 6 May 2013 06:32:22 +0000 Subject: - adoption of USES for gettext Approved by: portmgr (bapt@) --- lang/python32/Makefile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'lang/python32') diff --git a/lang/python32/Makefile b/lang/python32/Makefile index 5208a60c49a7..7a571d38f971 100644 --- a/lang/python32/Makefile +++ b/lang/python32/Makefile @@ -53,6 +53,17 @@ OPTIONS_DEFAULT= THREADS UCS4 PYMALLOC IPV6 NLS_DESC= Enable Gettext support for the locale module +.include + +.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 .if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION} @@ -68,15 +79,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 -- cgit