6cdb4aa8e6
* Rename package to "ncftp3", in order to remove "NO_LATEST_LINK" so the package is easily added using the pkg_add "-r" feature.
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: ncftp3
|
|
# Version required: 0.0
|
|
# Date created: 4 Nov 1994
|
|
# Whom: ache
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
DISTNAME= ncftp-3.0.0-src
|
|
PKGNAME= ncftp3-3.0.0
|
|
CATEGORIES= ftp
|
|
MASTER_SITES= ftp://ftp.ncftp.com/ncftp/
|
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-ncurses
|
|
MAN1= ncftp3.1 ncftpbatch.1 ncftpget.1 ncftpls.1 ncftpput.1
|
|
MAN3= Strn.3
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PORTOBJFORMAT} == "elf"
|
|
LIBNCFTP= libncftp.so.2
|
|
LIBSTRN=libStrn.so.1
|
|
.else
|
|
LIBNCFTP= libncftp.so.2.0
|
|
LIBSTRN=libStrn.so.1.0
|
|
.endif
|
|
|
|
post-patch:
|
|
@${MV} ${WRKSRC}/ncftp/pref.h ${WRKSRC}/ncftp/pref.h.in
|
|
@${SED} -e 's:/etc/ncftp.firewall:${PREFIX}/etc/ncftp.firewall:' \
|
|
${WRKSRC}/ncftp/pref.h.in > ${WRKSRC}/ncftp/pref.h
|
|
|
|
pre-build:
|
|
cd ${WRKSRC}/Strn ; make so
|
|
cd ${WRKSRC}/libncftp ; make so
|
|
|
|
do-install:
|
|
@$(INSTALL_PROGRAM) $(WRKSRC)/bin/ncftp $(PREFIX)/bin/ncftp3
|
|
@cd ${WRKSRC}/bin ; $(INSTALL_PROGRAM) \
|
|
ncftpbatch ncftpget ncftpls ncftpput ncftpbookmarks \
|
|
$(PREFIX)/bin
|
|
@$(INSTALL_DATA) $(WRKSRC)/Strn/libStrn.so.1 $(PREFIX)/lib/$(LIBSTRN)
|
|
@cd $(PREFIX)/lib && ${LN} -sf $(LIBSTRN) libStrn.so
|
|
@$(INSTALL_DATA) $(WRKSRC)/libncftp/libncftp.so.2 $(PREFIX)/lib/$(LIBNCFTP)
|
|
@cd $(PREFIX)/lib && ${LN} -sf $(LIBNCFTP) libncftp.so
|
|
@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
|
@$(INSTALL_MAN) $(WRKSRC)/doc/man/ncftp.1 $(PREFIX)/man/man1/ncftp3.1
|
|
@cd ${WRKSRC}/doc/man ; $(INSTALL_MAN) \
|
|
ncftpbatch.1 ncftpget.1 ncftpls.1 ncftpput.1 \
|
|
$(PREFIX)/man/man1
|
|
@$(INSTALL_MAN) $(WRKSRC)/Strn/Strn.3 $(PREFIX)/man/man3
|
|
|
|
.include <bsd.port.post.mk>
|