aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-07-11 18:22:46 +0800
committerkrion <krion@FreeBSD.org>2004-07-11 18:22:46 +0800
commit1b3d4f7a6c80d42d506b4abc7d71c9369dade07f (patch)
treed7aa4d4e1f667f54768a00779e1087d5d3514e76 /misc
parentac59888e93c4d90dd05eb499b89a9c16583e9e9b (diff)
downloadfreebsd-ports-gnome-1b3d4f7a6c80d42d506b4abc7d71c9369dade07f.tar.gz
freebsd-ports-gnome-1b3d4f7a6c80d42d506b4abc7d71c9369dade07f.tar.zst
freebsd-ports-gnome-1b3d4f7a6c80d42d506b4abc7d71c9369dade07f.zip
Support WITHOUT_NLS
Diffstat (limited to 'misc')
-rw-r--r--misc/lifelines/Makefile9
-rw-r--r--misc/lifelines/pkg-plist14
2 files changed, 15 insertions, 8 deletions
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%%