aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-08-21 06:29:47 +0800
committerpav <pav@FreeBSD.org>2004-08-21 06:29:47 +0800
commit5b64e4bae111fa10af1af5efb10110a339bfd121 (patch)
tree3f0b0e2af2c43e54bb3ea9299afdd9f932e2a3f4
parent550b7f00e3c87ab19ea1b43c822828ac2fe6fd62 (diff)
downloadfreebsd-ports-gnome-5b64e4bae111fa10af1af5efb10110a339bfd121.tar.gz
freebsd-ports-gnome-5b64e4bae111fa10af1af5efb10110a339bfd121.tar.zst
freebsd-ports-gnome-5b64e4bae111fa10af1af5efb10110a339bfd121.zip
- Convert to OPTIONS
PR: ports/70723 Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
-rw-r--r--ftp/hsftp/Makefile20
1 files changed, 6 insertions, 14 deletions
diff --git a/ftp/hsftp/Makefile b/ftp/hsftp/Makefile
index ff64c74ad2cb..58d13b597650 100644
--- a/ftp/hsftp/Makefile
+++ b/ftp/hsftp/Makefile
@@ -19,25 +19,17 @@ MAKEFILE= makefile
MAN1= hsftp.1
PLIST_FILES= bin/hsftp
+OPTIONS= OPENSSH "Build with OpenSSH support" off
+
+.include <bsd.port.pre.mk>
+
.if defined(WITH_OPENSSH)
-RUN_DEPENDS= ssh:${PORTSDIR}/security/openssh
+RUN_DEPENDS+= ssh:${PORTSDIR}/security/openssh
CONFIGURE_ARGS+= --with-openssh
.endif
-pre-everything::
-.if !defined(WITH_OPENSSH)
- @${ECHO_MSG}
- @${ECHO_MSG} "If you would like build hsftp with OpenSSH support"
- @${ECHO_MSG} "you must set the variable WITH_OPENSSH"
- @${ECHO_MSG}
-.else
- @${ECHO_MSG}
- @${ECHO_MSG} "Building hsftp with OpenSSH support"
- @${ECHO_MSG}
-.endif
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/hsftp ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/hsftp.1 ${MANPREFIX}/man/man1
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>