63e36698d9
Submitted by: David Cantrell <david@burdell.org>
72 lines
1.8 KiB
Makefile
72 lines
1.8 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: ncftp3
|
|
# Date created: 4 Nov 1994
|
|
# Whom: ache
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= ncftp
|
|
PORTVERSION= 3.1.4
|
|
PORTREVISION= 1
|
|
CATEGORIES= ftp ipv6
|
|
MASTER_SITES= ftp://ftp.ncftp.com/ncftp/
|
|
DISTNAME= ncftp-${PORTVERSION}-src
|
|
|
|
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
|
|
PATCHFILES= ncftp-314-v6-20020709.diff.gz
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
|
|
|
.if defined(INSTALL_AS_NCFTP)
|
|
LATEST_LINK= ncftp
|
|
.else
|
|
LATEST_LINK= ncftp3
|
|
.endif
|
|
USE_BZIP2= yes
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
|
|
INSTALLS_SHLIB= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-ncurses
|
|
PLIST_SUB= NCFTP=${LATEST_LINK}
|
|
MAN1= ${LATEST_LINK}.1 ncftpbatch.1 ncftpget.1 ncftpls.1 ncftpput.1 \
|
|
ncftpspooler.1
|
|
MAN3= Strn.3
|
|
|
|
LIBNCFTP= libncftp.so.2
|
|
LIBSIO= libsio.so.5
|
|
LIBSTRN= libStrn.so.1
|
|
|
|
pre-fetch:
|
|
@${ECHO} ""
|
|
@${ECHO} "Use INSTALL_AS_NCFTP=yes to install ncftp3 as ${PREFIX}/bin/ncftp"
|
|
@${ECHO} ""
|
|
|
|
pre-build:
|
|
cd ${WRKSRC}/Strn ; make so
|
|
cd ${WRKSRC}/libncftp ; make so
|
|
cd ${WRKSRC}/sio; make so
|
|
|
|
do-install:
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/ncftp ${PREFIX}/bin/${LATEST_LINK}
|
|
@cd ${WRKSRC}/bin ; ${INSTALL_PROGRAM} \
|
|
ncftpbatch ncftpget ncftpls ncftpput ncftpbookmarks \
|
|
${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
|
|
|
|
.include <bsd.port.mk>
|