From 2faeb2d17770c8b2b91638809e10720e7a9f0a86 Mon Sep 17 00:00:00 2001 From: adamw Date: Fri, 18 Apr 2014 19:21:04 +0000 Subject: STAGE support, and turn "INSTALL_AS_NCFTP" into an OPTION. Note that the port still doesn't build. --- ftp/ncftp1/Makefile | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/ftp/ncftp1/Makefile b/ftp/ncftp1/Makefile index bc6948d9ccbb..ecabaced2f61 100644 --- a/ftp/ncftp1/Makefile +++ b/ftp/ncftp1/Makefile @@ -5,23 +5,25 @@ PORTNAME= ncftp PORTVERSION= 1.9.5 CATEGORIES= ftp MASTER_SITES= ftp://ftp.ncftp.com/ncftp/ -DISTNAME= ncftp-${PORTVERSION} PKGNAMESUFFIX= 1 MAINTAINER= obrien@FreeBSD.org COMMENT= FTP replacement with advanced user interface -PLIST_FILES= bin/${LATEST_LINK} -MAN1= ncftp.1 +OPTIONS_DEFINE= AS_NCFTP +AS_NCFTP_DESC= Install binary as ncftp instead of ncftp1 -NO_STAGE= yes -pre-fetch: - @${ECHO} "" - @${ECHO} "Use INSTALL_AS_NCFTP=yes to install ncftp1 as ${PREFIX}/bin/ncftp" - @${ECHO} "" +.include + +NCFTP= ${PORTNAME} +.if empty(PORT_OPTIONS:MAS_NCFTP) +NCFTP:= ${NCFTP}${PKGNAMESUFFIX} +.endif + +PLIST_FILES= bin/${NCFTP} man/man1/${NCFTP}.1.gz do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/ncftp ${PREFIX}/bin/${LATEST_LINK} - cd ${WRKSRC}; ${INSTALL_MAN} ncftp.1 ${PREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${NCFTP} + ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/${NCFTP}.1.gz .include -- cgit