diff options
Diffstat (limited to 'lang/python31/Makefile')
| -rw-r--r-- | lang/python31/Makefile | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/lang/python31/Makefile b/lang/python31/Makefile index 7709a6ffc311..998ff3a1f201 100644 --- a/lang/python31/Makefile +++ b/lang/python31/Makefile @@ -52,6 +52,17 @@ OPTIONS_DEFAULT= THREADS UCS4 PYMALLOC IPV6 NLS_DESC= Enable Gettext support for the locale module +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} +USES+= gettext +# 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} @@ -67,15 +78,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 |
