summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ftp/lftp/Makefile8
-rw-r--r--ftp/lftp/files/patch-src::Makefile.in0
-rw-r--r--ftp/lftp/pkg-plist22
3 files changed, 19 insertions, 11 deletions
diff --git a/ftp/lftp/Makefile b/ftp/lftp/Makefile
index de16d4c..20439f4 100644
--- a/ftp/lftp/Makefile
+++ b/ftp/lftp/Makefile
@@ -61,6 +61,14 @@ CONFIGURE_ARGS+= --with-socks5
CONFIGURE_ARGS+= --with-socksdante
.endif
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
MAN1= lftp.1
post-install:
diff --git a/ftp/lftp/files/patch-src::Makefile.in b/ftp/lftp/files/patch-src::Makefile.in
deleted file mode 100644
index e69de29..0000000
--- a/ftp/lftp/files/patch-src::Makefile.in
+++ /dev/null
diff --git a/ftp/lftp/pkg-plist b/ftp/lftp/pkg-plist
index 59751e1..d327b0d 100644
--- a/ftp/lftp/pkg-plist
+++ b/ftp/lftp/pkg-plist
@@ -14,16 +14,16 @@ etc/lftp.conf.sample
%%PORTDOCS%%%%DOCSDIR%%/FEATURES
share/lftp/import-ncftp
share/lftp/import-netscape
-share/locale/de/LC_MESSAGES/lftp.mo
-share/locale/es/LC_MESSAGES/lftp.mo
-share/locale/fr/LC_MESSAGES/lftp.mo
-share/locale/it/LC_MESSAGES/lftp.mo
-share/locale/ja/LC_MESSAGES/lftp.mo
-share/locale/ko/LC_MESSAGES/lftp.mo
-share/locale/pl/LC_MESSAGES/lftp.mo
-share/locale/pt_BR/LC_MESSAGES/lftp.mo
-share/locale/ru/LC_MESSAGES/lftp.mo
-share/locale/zh_CN/LC_MESSAGES/lftp.mo
-share/locale/zh_TW/LC_MESSAGES/lftp.mo
+%%NLS%%share/locale/de/LC_MESSAGES/lftp.mo
+%%NLS%%share/locale/es/LC_MESSAGES/lftp.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/lftp.mo
+%%NLS%%share/locale/it/LC_MESSAGES/lftp.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/lftp.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/lftp.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/lftp.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/lftp.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/lftp.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/lftp.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/lftp.mo
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm share/lftp
OpenPOWER on IntegriCloud