aboutsummaryrefslogtreecommitdiffstats
path: root/comms/gsmlib
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-07-11 19:07:01 +0800
committerkrion <krion@FreeBSD.org>2004-07-11 19:07:01 +0800
commit5ff309d506bc094f934bce797691ef787a665ff0 (patch)
tree901bb49c8a0e13f514f348492c099a1e875c1324 /comms/gsmlib
parent179a8d654716b2cd687f5461f001a54287c17c5d (diff)
downloadfreebsd-ports-gnome-5ff309d506bc094f934bce797691ef787a665ff0.tar.gz
freebsd-ports-gnome-5ff309d506bc094f934bce797691ef787a665ff0.tar.zst
freebsd-ports-gnome-5ff309d506bc094f934bce797691ef787a665ff0.zip
Support WITHOUT_NLS
Diffstat (limited to 'comms/gsmlib')
-rw-r--r--comms/gsmlib/Makefile9
-rw-r--r--comms/gsmlib/pkg-plist2
2 files changed, 9 insertions, 2 deletions
diff --git a/comms/gsmlib/Makefile b/comms/gsmlib/Makefile
index 16b821c983ad..f086806a46f7 100644
--- a/comms/gsmlib/Makefile
+++ b/comms/gsmlib/Makefile
@@ -16,7 +16,6 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A library to access GSM mobile phones through GSM modems
USE_GETOPT_LONG= yes
-USE_GETTEXT= yes
USE_REINPLACE= yes
USE_GMAKE= yes
USE_INC_LIBTOOL_VER= 13
@@ -32,6 +31,14 @@ CPPFLAGS= -I${LOCALBASE}/include -DBROKEN_STRFTIME -DHAVE_DECL_GETOPT \
${PTHREAD_CFLAGS}
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
post-patch:
@${GREP} -lR "<malloc.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
's|<malloc\.h>|<stdlib.h>|g'
diff --git a/comms/gsmlib/pkg-plist b/comms/gsmlib/pkg-plist
index a89b736be902..ad2871c1c420 100644
--- a/comms/gsmlib/pkg-plist
+++ b/comms/gsmlib/pkg-plist
@@ -29,5 +29,5 @@ lib/libgsmext.so.1
lib/libgsmme.a
lib/libgsmme.so
lib/libgsmme.so.1
-share/locale/de/LC_MESSAGES/gsmlib.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gsmlib.mo
@dirrm include/gsmlib