aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormandree <mandree@FreeBSD.org>2013-10-07 06:06:43 +0800
committermandree <mandree@FreeBSD.org>2013-10-07 06:06:43 +0800
commitdd64b460ee4b97c05ea096a83aaa962204e6aefe (patch)
tree811f0903f98323055f7380457cf6637cec1cf2f9
parentbffc57ad747c7f6ba3dd898f52039e6421db82fc (diff)
downloadfreebsd-ports-gnome-dd64b460ee4b97c05ea096a83aaa962204e6aefe.tar.gz
freebsd-ports-gnome-dd64b460ee4b97c05ea096a83aaa962204e6aefe.tar.zst
freebsd-ports-gnome-dd64b460ee4b97c05ea096a83aaa962204e6aefe.zip
Support staging; cleanup !NOPORTDOCS -> PORT_OPTIONS:MDOCS
-rw-r--r--ftp/ftpcopy/Makefile15
-rw-r--r--ftp/ftpcopy/pkg-plist3
2 files changed, 10 insertions, 8 deletions
diff --git a/ftp/ftpcopy/Makefile b/ftp/ftpcopy/Makefile
index f4a34b652b52..64fdc18f6233 100644
--- a/ftp/ftpcopy/Makefile
+++ b/ftp/ftpcopy/Makefile
@@ -14,9 +14,8 @@ USE_PERL5= build
WRKSRC= ${WRKDIR}/web/${DISTNAME}
-MAN1= ftpcopy.1 ftpcp.1 ftpls.1
+.include <bsd.port.options.mk>
-NO_STAGE= yes
pre-build:
${ECHO} "${CC}" >${WRKSRC}/src/conf-cc
${ECHO} "${CPPFLAGS} ${CFLAGS}" >${WRKSRC}/src/conf-cflags
@@ -24,14 +23,14 @@ pre-build:
do-install:
cd ${WRKSRC}/compile && \
- ${INSTALL_PROGRAM} ftpcopy ftpls ${PREFIX}/bin && \
- ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1 && \
- ${INSTALL_SCRIPT} ftpcp ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR} && \
+ ${INSTALL_PROGRAM} ftpcopy ftpls ${STAGEDIR}${PREFIX}/bin && \
+ ${INSTALL_MAN} *.1 ${STAGEDIR}${PREFIX}/man/man1 && \
+ ${INSTALL_SCRIPT} ftpcp ${STAGEDIR}${PREFIX}/bin
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR} && \
cd ${WRKSRC}/compile && \
${INSTALL_DATA} ChangeLog NEWS \
- README THANKS ftpcopy.html ftpls.html ${DOCSDIR}
+ README THANKS ftpcopy.html ftpls.html ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/ftp/ftpcopy/pkg-plist b/ftp/ftpcopy/pkg-plist
index 61be29ec3775..3399dd9500ff 100644
--- a/ftp/ftpcopy/pkg-plist
+++ b/ftp/ftpcopy/pkg-plist
@@ -1,6 +1,9 @@
bin/ftpcp
bin/ftpcopy
bin/ftpls
+man/man1/ftpcopy.1.gz
+man/man1/ftpcp.1.gz
+man/man1/ftpls.1.gz
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README