diff options
-rw-r--r-- | games/lincity/Makefile | 9 | ||||
-rw-r--r-- | games/lincity/pkg-plist | 4 | ||||
-rw-r--r-- | misc/lifelines/Makefile | 9 | ||||
-rw-r--r-- | misc/lifelines/pkg-plist | 14 | ||||
-rw-r--r-- | net/nc6/Makefile | 9 | ||||
-rw-r--r-- | net/nc6/pkg-plist | 2 |
6 files changed, 34 insertions, 13 deletions
diff --git a/games/lincity/Makefile b/games/lincity/Makefile index e1c26e6c7b3f..a25a6c304d0c 100644 --- a/games/lincity/Makefile +++ b/games/lincity/Makefile @@ -15,7 +15,6 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Rich city simulation game for X -USE_GETTEXT= yes USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} @@ -34,4 +33,12 @@ CONFIGURE_ARGS+= --without-svga PLIST_SUB= PROG="bin/xlincity" .endif +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " +.endif + .include <bsd.port.mk> diff --git a/games/lincity/pkg-plist b/games/lincity/pkg-plist index ef85c2f23ab4..e2fdf8b8368c 100644 --- a/games/lincity/pkg-plist +++ b/games/lincity/pkg-plist @@ -528,8 +528,8 @@ share/lincity/opening/text2 share/lincity/opening/text3 share/lincity/opening/winfont_16x16.fnt share/lincity/opening/winfont_8x8.fnt -share/locale/ca/LC_MESSAGES/lincity.mo -share/locale/it/LC_MESSAGES/lincity.mo +%%NLS%%share/locale/ca/LC_MESSAGES/lincity.mo +%%NLS%%share/locale/it/LC_MESSAGES/lincity.mo @dirrm share/lincity/opening @dirrm share/lincity/messages @dirrm share/lincity/icons diff --git a/misc/lifelines/Makefile b/misc/lifelines/Makefile index 54ce5cfd1f44..c3d5e241665c 100644 --- a/misc/lifelines/Makefile +++ b/misc/lifelines/Makefile @@ -16,13 +16,20 @@ COMMENT= An advanced genealogical system GNU_CONFIGURE= yes CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -USE_GETTEXT= yes USE_ICONV= yes USE_BZIP2= yes USE_GETOPT_LONG=yes MAN1= btedit.1 dbverify.1 llines.1 +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " +.endif + post-install: .if !defined(NOPORTDOCS) .for file in btedit.1 dbverify.1 llines.1 diff --git a/misc/lifelines/pkg-plist b/misc/lifelines/pkg-plist index 526fdcbe31a3..95c1b32b1a42 100644 --- a/misc/lifelines/pkg-plist +++ b/misc/lifelines/pkg-plist @@ -23,11 +23,11 @@ bin/llines %%DATADIR%%/ll-userguide.pdf %%DATADIR%%/ll-userguide.sv.html %%DATADIR%%/ll-userguide.txt -share/locale/da/LC_MESSAGES/lifelines.mo -share/locale/de/LC_MESSAGES/lifelines.mo -share/locale/el/LC_MESSAGES/lifelines.mo -share/locale/fr/LC_MESSAGES/lifelines.mo -share/locale/it/LC_MESSAGES/lifelines.mo -share/locale/sv/LC_MESSAGES/lifelines.mo -@dirrm %%PORTDOCS%%%%DOCSDIR%% +%%NLS%%share/locale/da/LC_MESSAGES/lifelines.mo +%%NLS%%share/locale/de/LC_MESSAGES/lifelines.mo +%%NLS%%share/locale/el/LC_MESSAGES/lifelines.mo +%%NLS%%share/locale/fr/LC_MESSAGES/lifelines.mo +%%NLS%%share/locale/it/LC_MESSAGES/lifelines.mo +%%NLS%%share/locale/sv/LC_MESSAGES/lifelines.mo +%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm %%DATADIR%% diff --git a/net/nc6/Makefile b/net/nc6/Makefile index 0bf1a9b2185b..5f467bec2c6a 100644 --- a/net/nc6/Makefile +++ b/net/nc6/Makefile @@ -16,11 +16,18 @@ MAINTAINER= filippo@widestore.net COMMENT= Netcat clone with IPv6 support MAN1= nc6.1 -USE_GETTEXT= yes USE_ICONV= yes GNU_CONFIGURE= yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL} +.if !defined(WITHOUT_NLS) +USE_GETTEXT= yes +PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS+=--disable-nls +PLIST_SUB+= NLS="@comment " +.endif + .include <bsd.port.mk> diff --git a/net/nc6/pkg-plist b/net/nc6/pkg-plist index 50493af43171..7892725bad17 100644 --- a/net/nc6/pkg-plist +++ b/net/nc6/pkg-plist @@ -1,2 +1,2 @@ bin/nc6 -share/locale/it/LC_MESSAGES/nc6.mo +%%NLS%%share/locale/it/LC_MESSAGES/nc6.mo |