From b89f9ab26fccada9c70fe861c8ffcaab2f707dbc Mon Sep 17 00:00:00 2001 From: Marcus von Appen Date: Tue, 19 Jun 2012 17:48:42 +0000 Subject: - Fix gettext detection for the locale module - Explicitly enable/disable gettext support via a new NLS OPTION switch. PR: ports/168684 ports/136917 On behalf of: python@ --- lang/python24/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lang/python24') 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} -- cgit v1.3