aboutsummaryrefslogtreecommitdiff
path: root/ftp/wput
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-03-06 18:31:06 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-03-06 18:31:06 +0000
commit9d881b4ae4c3edeffe7a2514cfd5c0dd3885be1f (patch)
tree4f6f6849b8ef63a146876c5df137f90a7908c9f7 /ftp/wput
parent0ce6b4ee88ee0930ef41ec34b7b69ca337cf88bd (diff)
downloadports-9d881b4ae4c3edeffe7a2514cfd5c0dd3885be1f.tar.gz
ports-9d881b4ae4c3edeffe7a2514cfd5c0dd3885be1f.zip
Notes
Diffstat (limited to 'ftp/wput')
-rw-r--r--ftp/wput/Makefile42
-rw-r--r--ftp/wput/files/patch-Makefile.in22
-rw-r--r--ftp/wput/pkg-plist2
3 files changed, 27 insertions, 39 deletions
diff --git a/ftp/wput/Makefile b/ftp/wput/Makefile
index 0465deb0ad82..a21d319de5d5 100644
--- a/ftp/wput/Makefile
+++ b/ftp/wput/Makefile
@@ -22,29 +22,15 @@ MAKE_JOBS_UNSAFE=yes
OPTIONS_DEFINE= TLS NLS DOCS EXAMPLES
OPTIONS_DEFAULT= TLS
+OPTIONS_SUB= yes
-MAN1= wdel.1 wput.1
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MTLS}
-LIB_DEPENDS+= gnutls.26:${PORTSDIR}/security/gnutls
-CONFIGURE_ARGS+= --with-ssl
-.else
-CONFIGURE_ARGS+= --without-ssl
-.endif
-
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext iconv
-CONFIGURE_ARGS+= --enable-nls \
+TLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls
+TLS_CONFIGURE_WITH= ssl
+NLS_USES+= gettext iconv
+NLS_CONFIGURE_ON= --enable-nls \
--with-libintl-prefix=${LOCALBASE} \
${ICONV_CONFIGURE_ARG}
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls --without-libiconv-prefix
-PLIST_SUB= NLS="@comment "
-.endif
+NLS_CONFIGURE_OFF= --disable-nls --without-libiconv-prefix
pre-configure:
@${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
@@ -52,16 +38,10 @@ pre-configure:
${WRKSRC}/src/socketlib.c
post-install:
- @${INSTALL_MAN} ${MAN1:S,^,${WRKSRC}/doc/,} ${MANPREFIX}/man/man1/
-
-.if ${PORT_OPTIONS:MDOCS}
- @${INSTALL} -d ${DOCSDIR}
- @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
-.endif
-
-.if ${PORT_OPTIONS:MEXAMPLES}
- @${INSTALL} -d ${EXAMPLESDIR}
- @${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/doc/,} ${EXAMPLESDIR}
-.endif
+ ${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${MANPREFIX}/man/man1/
+ @${INSTALL} -d ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+ @${INSTALL} -d ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
diff --git a/ftp/wput/files/patch-Makefile.in b/ftp/wput/files/patch-Makefile.in
index 4055c8318bc5..8a6a3ac45678 100644
--- a/ftp/wput/files/patch-Makefile.in
+++ b/ftp/wput/files/patch-Makefile.in
@@ -1,6 +1,6 @@
---- Makefile.in.orig 2008-09-27 12:31:23.000000000 +0200
-+++ Makefile.in 2008-12-17 17:12:36.000000000 +0100
-@@ -2,14 +2,13 @@
+--- ./Makefile.in.orig 2008-09-27 12:31:23.000000000 +0200
++++ ./Makefile.in 2014-03-06 19:28:57.697592894 +0100
+@@ -2,26 +2,23 @@
PACKAGE = @PACKAGE@
prefix = @prefix@
datadir = $(prefix)/share
@@ -16,13 +16,19 @@
win-clean:
cd src && $(MAKE) $(MAKEDEFS) $@
-@@ -19,9 +18,7 @@
- mkdir -p $(bindir)
- mkdir -p $(mandir)
- install -m0755 wput $(bindir)
+
+ install: all
+ cd po && $(MAKE) $(MAKEDEFS) $@
+- mkdir -p $(bindir)
+- mkdir -p $(mandir)
+- install -m0755 wput $(bindir)
- install -m0644 doc/wput.1.gz $(mandir)
- ln -s $(bindir)/wput $(bindir)/wdel
+- ln -s $(bindir)/wput $(bindir)/wdel
- install -m0644 doc/wdel.1.gz $(mandir)
++ mkdir -p $(DESTDIR)$(bindir)
++ mkdir -p $(DESTDIR)$(mandir)
++ install -m0755 wput $(DESTDIR)$(bindir)
++ ln -sf wput $(DESTDIR)$(bindir)/wdel
@echo "----------------"
@echo "Wput and Wdel installed. See 'wput/wdel -h' or 'man wput/wdel' for"
@echo "usage information."
diff --git a/ftp/wput/pkg-plist b/ftp/wput/pkg-plist
index fbfb497976e9..c1d81b5ac038 100644
--- a/ftp/wput/pkg-plist
+++ b/ftp/wput/pkg-plist
@@ -1,5 +1,7 @@
bin/wdel
bin/wput
+man/man1/wdel.1.gz
+man/man1/wput.1.gz
%%NLS%%share/locale/da/LC_MESSAGES/wput.mo
%%NLS%%share/locale/de/LC_MESSAGES/wput.mo
%%NLS%%share/locale/el/LC_MESSAGES/wput.mo