From owner-svn-ports-head@FreeBSD.ORG Sun Mar 16 21:31:14 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 827EF430; Sun, 16 Mar 2014 21:31:14 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6F7D0786; Sun, 16 Mar 2014 21:31:14 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2GLVEBL074381; Sun, 16 Mar 2014 21:31:14 GMT (envelope-from adamw@svn.freebsd.org) Received: (from adamw@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2GLVEFO074378; Sun, 16 Mar 2014 21:31:14 GMT (envelope-from adamw@svn.freebsd.org) Message-Id: <201403162131.s2GLVEFO074378@svn.freebsd.org> From: Adam Weinberger Date: Sun, 16 Mar 2014 21:31:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r348433 - head/ftp/ncftp3 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Mar 2014 21:31:14 -0000 Author: adamw Date: Sun Mar 16 21:31:13 2014 New Revision: 348433 URL: http://svnweb.freebsd.org/changeset/ports/348433 QAT: https://qat.redports.org/buildarchive/r348433/ Log: Clean up. Support STAGE. Turn the optional libraries into an OPTION. Install docs. Respect MAKE_ARGS/MAKE_ENV/MAKE_CMD. Modified: head/ftp/ncftp3/Makefile head/ftp/ncftp3/pkg-plist Modified: head/ftp/ncftp3/Makefile ============================================================================== --- head/ftp/ncftp3/Makefile Sun Mar 16 21:30:48 2014 (r348432) +++ head/ftp/ncftp3/Makefile Sun Mar 16 21:31:13 2014 (r348433) @@ -9,62 +9,52 @@ MASTER_SITES= ftp://ftp.ncftp.com/ncftp/ ftp://ftp.mirrorservice.org/sites/ftp.ncftp.com/ncftp/ DISTNAME= ncftp-${PORTVERSION}-src -.if !defined(WITHOUT_NCFTP_IPV6) && !defined(WITHOUT_IPV6) -#PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/ -#PATCHFILES= ncftp-323-v6-20091109.diff.gz -#PATCH_DIST_STRIP= -p1 -.endif - MAINTAINER= obrien@FreeBSD.org -COMMENT= ftp replacement with advanced user interface +COMMENT= FTP client with advanced user interface -USE_BZIP2= yes +LICENSE_FILE= ${WRKSRC}/doc/LICENSE.txt -NO_STAGE= yes -.include +USES= tar:bzip2 WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//} USE_LDCONFIG= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-ncurses -CONFIGURE_ENV= TAR=/usr/bin/tar -PLIST_SUB= NCFTP=${LATEST_LINK} -MAN1= ${LATEST_LINK}.1 ncftpbatch.1 ncftpget.1 ncftpls.1 ncftpput.1 \ - ncftpspooler.1 -MAN3= Strn.3 + +OPTIONS_DEFINE= LIBS DOCS +OPTIONS_DEFAULT=LIBS +LIBS_DESC= Install optional libraries +OPTIONS_SUB= yes + +PORTDOCS= * LIBNCFTP= libncftp.so.3 LIBSIO= libsio.so.5 LIBSTRN= libStrn.so.1 -pre-fetch: - @${ECHO} "" - @${ECHO} "Use INSTALL_AS_NCFTP3=yes to install ncftp v3 as ${PREFIX}/bin/ncftp3" - @${ECHO} "" +.include +.if ${PORT_OPTIONS:MLIBS} pre-build: - cd ${WRKSRC}/Strn ; make so - cd ${WRKSRC}/libncftp ; make so - cd ${WRKSRC}/sio; make so +.for dir in Strn libncftp sio + ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -C ${WRKSRC}/${dir} so +.endfor +.endif do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/bin/ncftp ${PREFIX}/bin/${LATEST_LINK} - @cd ${WRKSRC}/bin ; ${INSTALL_PROGRAM} \ - ncftpbatch ncftpbookmarks ncftpget ncftpls ncftpput \ - ${PREFIX}/bin - @cd ${PREFIX}/bin && ${LN} -f ncftpbatch ncftpspooler - @cd ${WRKSRC} && ${INSTALL_DATA} \ - Strn/${LIBSTRN} libncftp/${LIBNCFTP} sio/${LIBSIO} \ - ${PREFIX}/lib - @cd ${PREFIX}/lib \ - && ${LN} -sf ${LIBSTRN} libStrn.so \ - && ${LN} -sf ${LIBNCFTP} libncftp.so \ - && ${LN} -sf ${LIBSIO} libsio.so - @${INSTALL_MAN} ${WRKSRC}/doc/man/ncftp.1 \ - ${PREFIX}/man/man1/${LATEST_LINK}.1 - @cd ${WRKSRC}/doc/man ; ${INSTALL_MAN} \ - ncftpbatch.1 ncftpget.1 ncftpls.1 ncftpput.1 ncftpspooler.1 \ - ${PREFIX}/man/man1 - @${INSTALL_MAN} ${WRKSRC}/Strn/Strn.3 ${PREFIX}/man/man3 + ${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${STAGEDIR}${PREFIX}/bin + ${LN} -sf ncftpbatch ${STAGEDIR}${PREFIX}/bin/ncftpspooler + ${INSTALL_MAN} ${WRKSRC}/doc/man/* ${STAGEDIR}${MANPREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/Strn/Strn.3 ${STAGEDIR}${MANPREFIX}/man/man3 + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) + -${RM} -r ${STAGEDIR}${DOCSDIR}/man + +.if ${PORT_OPTIONS:MLIBS} + ${INSTALL_LIB} ${WRKSRC}/Strn/${LIBSTRN} ${STAGEDIR}${PREFIX}/lib +.for lib in libncftp/${LIBNCFTP} sio/${LIBSIO} Strn/${LIBSTRN} + ${INSTALL_LIB} ${WRKSRC}/${lib} ${STAGEDIR}${PREFIX}/lib + ${LN} -sf ${lib:T} ${STAGEDIR}${PREFIX}/lib/${lib:T:R} +.endfor +.endif -.include +.include Modified: head/ftp/ncftp3/pkg-plist ============================================================================== --- head/ftp/ncftp3/pkg-plist Sun Mar 16 21:30:48 2014 (r348432) +++ head/ftp/ncftp3/pkg-plist Sun Mar 16 21:31:13 2014 (r348433) @@ -1,13 +1,20 @@ -lib/libStrn.so -lib/libStrn.so.1 -lib/libncftp.so -lib/libncftp.so.3 -lib/libsio.so -lib/libsio.so.5 -bin/%%NCFTP%% +bin/ncftp bin/ncftpbatch bin/ncftpbookmarks bin/ncftpget bin/ncftpls bin/ncftpput bin/ncftpspooler +man/man1/ncftp.1.gz +man/man1/ncftpbatch.1.gz +man/man1/ncftpget.1.gz +man/man1/ncftpls.1.gz +man/man1/ncftpput.1.gz +man/man1/ncftpspooler.1.gz +%%LIBS%%lib/libStrn.so +%%LIBS%%lib/libStrn.so.1 +%%LIBS%%lib/libncftp.so +%%LIBS%%lib/libncftp.so.3 +%%LIBS%%lib/libsio.so +%%LIBS%%lib/libsio.so.5 +%%LIBS%%man/man3/Strn.3.gz