aboutsummaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2013-11-22 19:33:41 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2013-11-22 19:33:41 +0000
commit6cb484a8c6dbe9bdad2a9a60a86ecfdd037525bc (patch)
tree99a7145681194316ee68535c55f11ff743f9ae1c /comms
parentf552181979e94bfb43220f9ac8adebcbc32989a0 (diff)
downloadports-6cb484a8c6dbe9bdad2a9a60a86ecfdd037525bc.tar.gz
ports-6cb484a8c6dbe9bdad2a9a60a86ecfdd037525bc.zip
Notes
Diffstat (limited to 'comms')
-rw-r--r--comms/lrzsz/Makefile12
-rw-r--r--comms/lrzsz/files/patch-Makefile.in19
-rw-r--r--comms/lrzsz/files/patch-Makefile.in.in39
-rw-r--r--comms/lrzsz/pkg-plist3
4 files changed, 70 insertions, 3 deletions
diff --git a/comms/lrzsz/Makefile b/comms/lrzsz/Makefile
index fb23c7a4dde9..9171b48ffbd8 100644
--- a/comms/lrzsz/Makefile
+++ b/comms/lrzsz/Makefile
@@ -10,10 +10,18 @@ MASTER_SITES= http://ohse.de/uwe/releases/
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Receive/Send files via X/Y/ZMODEM protocol. (unrestrictive)
-NO_STAGE= yes
+LICENSE= GPLv2
GNU_CONFIGURE= yes
ALL_TARGET= all # vcheck
-MAN1= lrz.1 lsz.1
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USES+= gettext
+PLIST_FILES+= share/locale/de/LC_MESSAGES/lrzsz.mo
+.else
+CONFIGURE_ARGS+= --disable-nls
+.endif
.include <bsd.port.mk>
diff --git a/comms/lrzsz/files/patch-Makefile.in b/comms/lrzsz/files/patch-Makefile.in
new file mode 100644
index 000000000000..5995104bb9bd
--- /dev/null
+++ b/comms/lrzsz/files/patch-Makefile.in
@@ -0,0 +1,19 @@
+--- src/Makefile.in.orig 1998-12-30 17:31:46.000000000 +0100
++++ src/Makefile.in 2013-11-22 19:52:13.000000000 +0100
+@@ -372,13 +372,13 @@
+ rm -f $(DESTDIR)/$(bindir)/`echo lsb | sed -e '$(transform)'`
+ ln $(DESTDIR)/$(bindir)/`echo lsz |sed -e '$(transform)'` \
+ $(DESTDIR)/$(bindir)/`echo lsb |sed -e '$(transform)'`
+- rm -f $(bindir)/`echo lsx | sed -e '$(transform)'`
++ rm -f $(DESTDIR)/$(bindir)/`echo lsx | sed -e '$(transform)'`
+ ln $(DESTDIR)/$(bindir)/`echo lsz |sed -e '$(transform)'` \
+ $(DESTDIR)/$(bindir)/`echo lsx |sed -e '$(transform)'`
+- rm -f $(bindir)/`echo lrb | sed -e '$(transform)'`
++ rm -f $(DESTDIR)/$(bindir)/`echo lrb | sed -e '$(transform)'`
+ ln $(DESTDIR)/$(bindir)/`echo lrz |sed -e '$(transform)'` \
+ $(DESTDIR)/$(bindir)/`echo lrb |sed -e '$(transform)'`
+- rm -f $(bindir)/`echo lrx | sed -e '$(transform)'`
++ rm -f $(DESTDIR)/$(bindir)/`echo lrx | sed -e '$(transform)'`
+ ln $(DESTDIR)/$(bindir)/`echo lrz |sed -e '$(transform)'` \
+ $(DESTDIR)/$(bindir)/`echo lrx |sed -e '$(transform)'`
+ # rm -f $(bindir)/`echo lrzszbug | sed -e '$(transform)'`
diff --git a/comms/lrzsz/files/patch-Makefile.in.in b/comms/lrzsz/files/patch-Makefile.in.in
new file mode 100644
index 000000000000..b9114229bebd
--- /dev/null
+++ b/comms/lrzsz/files/patch-Makefile.in.in
@@ -0,0 +1,39 @@
+--- po/Makefile.in.in.orig 1998-04-26 15:22:40.000000000 +0200
++++ po/Makefile.in.in 2013-11-22 20:12:26.000000000 +0100
+@@ -110,9 +110,9 @@
+ install-data-no: all
+ install-data-yes: all
+ if test -r $(MKINSTALLDIRS); then \
+- $(MKINSTALLDIRS) $(datadir); \
++ $(MKINSTALLDIRS) ${DESTDIR}$(datadir); \
+ else \
+- $(top_srcdir)/mkinstalldirs $(datadir); \
++ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(datadir); \
+ fi
+ @catalogs='$(CATALOGS)'; \
+ for cat in $$catalogs; do \
+@@ -122,7 +122,7 @@
+ *) destdir=$(localedir);; \
+ esac; \
+ lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
+- dir=$$destdir/$$lang/LC_MESSAGES; \
++ dir=${DESTDIR}$$destdir/$$lang/LC_MESSAGES; \
+ if test -r $(MKINSTALLDIRS); then \
+ $(MKINSTALLDIRS) $$dir; \
+ else \
+@@ -152,12 +152,12 @@
+ done
+ if test "$(PACKAGE)" = "gettext"; then \
+ if test -r $(MKINSTALLDIRS); then \
+- $(MKINSTALLDIRS) $(gettextsrcdir); \
++ $(MKINSTALLDIRS) ${DESTDIR}$(gettextsrcdir); \
+ else \
+- $(top_srcdir)/mkinstalldirs $(gettextsrcdir); \
++ $(top_srcdir)/mkinstalldirs ${DESTDIR}$(gettextsrcdir); \
+ fi; \
+ $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
+- $(gettextsrcdir)/Makefile.in.in; \
++ ${DESTDIR}$(gettextsrcdir)/Makefile.in.in; \
+ else \
+ : ; \
+ fi
diff --git a/comms/lrzsz/pkg-plist b/comms/lrzsz/pkg-plist
index 28c812b7a981..a134c7e742a1 100644
--- a/comms/lrzsz/pkg-plist
+++ b/comms/lrzsz/pkg-plist
@@ -4,4 +4,5 @@ bin/lrz
bin/lsb
bin/lsx
bin/lsz
-share/locale/de/LC_MESSAGES/lrzsz.mo
+man/man1/lrz.1.gz
+man/man1/lsz.1.gz