freebsd-ports/ftp/ncftp3/Makefile

80 lines
2 KiB
Makefile
Raw Normal View History

# ex:ts=8
2000-02-13 04:25:05 +01:00
# Ports collection makefile for: ncftp3
# Date created: 4 Nov 1994
# Whom: ache
1994-11-04 10:35:57 +01:00
#
1999-08-25 07:57:29 +02:00
# $FreeBSD$
1994-11-04 10:35:57 +01:00
#
PORTNAME= ncftp
PORTVERSION= 3.2.3
PORTREVISION?= 0
2001-02-06 09:45:22 +01:00
CATEGORIES= ftp ipv6
MASTER_SITES= ftp://ftp.ncftp.com/ncftp/ \
ftp://ftp.mirrorservice.org/sites/ftp.ncftp.com/ncftp/
2000-04-12 07:31:29 +02:00
DISTNAME= ncftp-${PORTVERSION}-src
.if !defined(WITHOUT_NCFTP_IPV6) && !defined(WITHOUT_IPV6)
2002-06-13 19:15:45 +02:00
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
PATCHFILES= ncftp-323-v6-20091109.diff.gz
2002-06-13 19:15:45 +02:00
PATCH_DIST_STRIP= -p1
.endif
2001-02-06 09:45:22 +01:00
MAINTAINER= obrien@FreeBSD.org
COMMENT= ftp replacement with advanced user interface
USE_BZIP2= yes
.include <bsd.port.pre.mk>
.if defined(INSTALL_AS_NCFTP3)
LATEST_LINK= ncftp3
.else
LATEST_LINK= ncftp
.endif
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 \
2002-07-05 20:34:28 +02:00
ncftpspooler.1
MAN3= Strn.3
1994-11-04 10:35:57 +01:00
2008-08-26 18:21:45 +02:00
LIBNCFTP= libncftp.so.3
2002-07-05 20:34:28 +02:00
LIBSIO= libsio.so.5
2000-04-22 11:56:44 +02:00
LIBSTRN= libStrn.so.1
pre-fetch:
@${ECHO} ""
@${ECHO} "Use INSTALL_AS_NCFTP3=yes to install ncftp v3 as ${PREFIX}/bin/ncftp3"
@${ECHO} ""
pre-build:
cd ${WRKSRC}/Strn ; make so
cd ${WRKSRC}/libncftp ; make so
2002-07-05 20:34:28 +02:00
cd ${WRKSRC}/sio; make so
1995-05-07 22:57:56 +02:00
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/bin/ncftp ${PREFIX}/bin/${LATEST_LINK}
2000-04-22 11:56:44 +02:00
@cd ${WRKSRC}/bin ; ${INSTALL_PROGRAM} \
ncftpbatch ncftpbookmarks ncftpget ncftpls ncftpput \
2000-04-22 11:56:44 +02:00
${PREFIX}/bin
@cd ${PREFIX}/bin && ${LN} -f ncftpbatch ncftpspooler
@cd ${WRKSRC} && ${INSTALL_DATA} \
Strn/${LIBSTRN} libncftp/${LIBNCFTP} sio/${LIBSIO} \
2002-07-05 20:34:28 +02:00
${PREFIX}/lib
@cd ${PREFIX}/lib \
&& ${LN} -sf ${LIBSTRN} libStrn.so \
2002-07-05 20:34:28 +02:00
&& ${LN} -sf ${LIBNCFTP} libncftp.so \
&& ${LN} -sf ${LIBSIO} libsio.so
@${INSTALL_MAN} ${WRKSRC}/doc/man/ncftp.1 \
${PREFIX}/man/man1/${LATEST_LINK}.1
2000-04-22 11:56:44 +02:00
@cd ${WRKSRC}/doc/man ; ${INSTALL_MAN} \
2002-07-05 20:34:28 +02:00
ncftpbatch.1 ncftpget.1 ncftpls.1 ncftpput.1 ncftpspooler.1 \
2000-04-22 11:56:44 +02:00
${PREFIX}/man/man1
@${INSTALL_MAN} ${WRKSRC}/Strn/Strn.3 ${PREFIX}/man/man3
1998-09-27 05:02:15 +02:00
.include <bsd.port.post.mk>