diff options
Diffstat (limited to 'lang/python24/Makefile')
| -rw-r--r-- | lang/python24/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lang/python24/Makefile b/lang/python24/Makefile index 95221d0f223c..3aeffdd053ab 100644 --- a/lang/python24/Makefile +++ b/lang/python24/Makefile @@ -47,6 +47,7 @@ BINLINKS_SUB= -e 's,smtpd,smtpd${PYTHON_VER},' \ OPTIONS= THREADS "Enable thread support" on \ UCS4 "Use UCS4 for unicode support" on \ + NLS "Enable Gettext support for the locale module" on \ PYMALLOC "Use python's internal malloc" on \ IPV6 "Enable IPv6 support" on \ FPECTL "Enable floating point exception handling" off @@ -60,6 +61,14 @@ PLIST_SUB+= IF_DEFAULT="" PLIST_SUB+= IF_DEFAULT="@comment " .endif +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +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 !defined(WITHOUT_THREADS) CONFIGURE_ARGS+= --with-threads CFLAGS+= ${PTHREAD_CFLAGS} |
