diff options
| -rw-r--r-- | comms/gsmlib/Makefile | 9 | ||||
| -rw-r--r-- | comms/gsmlib/pkg-plist | 2 |
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 |
