- use STAGEDIR
- honor NLS option PR: 184166
This commit is contained in:
parent
f552181979
commit
6cb484a8c6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334608
@ -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>
|
||||
|
19
comms/lrzsz/files/patch-Makefile.in
Normal file
19
comms/lrzsz/files/patch-Makefile.in
Normal file
@ -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)'`
|
39
comms/lrzsz/files/patch-Makefile.in.in
Normal file
39
comms/lrzsz/files/patch-Makefile.in.in
Normal file
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user