aboutsummaryrefslogtreecommitdiff
path: root/lang/python24
diff options
context:
space:
mode:
authorMarcus von Appen <mva@FreeBSD.org>2012-06-19 17:48:42 +0000
committerMarcus von Appen <mva@FreeBSD.org>2012-06-19 17:48:42 +0000
commitb89f9ab26fccada9c70fe861c8ffcaab2f707dbc (patch)
tree028a8def266da5996c596eb375a356ff8ca9d697 /lang/python24
parent83bc131ec156b6d0ae945f9310352a37923d7052 (diff)
Notes
Diffstat (limited to 'lang/python24')
-rw-r--r--lang/python24/Makefile9
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}