1997-12-14 16:45:44 +00:00
|
|
|
# ex:ts=8
|
1995-03-20 21:32:29 +00:00
|
|
|
# New ports collection makefile for: ncftp2
|
1997-12-17 16:52:45 +00:00
|
|
|
# Version required: 3.0
|
1994-11-04 09:35:57 +00:00
|
|
|
# Date created: 4 Nov 1994
|
|
|
|
# Whom: ache
|
|
|
|
#
|
1999-02-20 20:54:29 +00:00
|
|
|
# $Id: Makefile,v 1.63 1999/02/18 09:26:52 obrien Exp $
|
1994-11-04 09:35:57 +00:00
|
|
|
#
|
|
|
|
|
1999-02-20 20:54:29 +00:00
|
|
|
DISTNAME= ncftp-3.0beta18-src
|
|
|
|
PKGNAME= ncftp-3.0b18
|
1996-11-18 11:44:27 +00:00
|
|
|
CATEGORIES= net
|
1998-01-31 17:49:54 +00:00
|
|
|
MASTER_SITES= ftp://ftp.ncftp.com/ncftp/3.0BETA/
|
1995-04-12 04:56:21 +00:00
|
|
|
|
1998-01-07 11:42:12 +00:00
|
|
|
MAINTAINER= obrien@FreeBSD.ORG
|
1995-04-12 04:56:21 +00:00
|
|
|
|
1997-12-14 16:45:44 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
|
|
|
|
GNU_CONFIGURE= yes
|
1998-11-11 20:58:50 +00:00
|
|
|
CONFIGURE_ARGS= --with-ncurses
|
1997-12-14 16:45:44 +00:00
|
|
|
MAN1= ncftp3.1 ncftpbatch.1 ncftpget.1 ncftpls.1 ncftpput.1
|
|
|
|
MAN3= Strn.3
|
1998-08-14 00:22:06 +00:00
|
|
|
NO_LATEST_LINK= yes
|
1994-11-04 09:35:57 +00:00
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.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
|
|
|
|
|
1998-05-09 18:42:01 +00:00
|
|
|
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
|
|
|
|
|
1997-12-14 16:45:44 +00:00
|
|
|
pre-build:
|
|
|
|
cd ${WRKSRC}/Strn ; make so
|
|
|
|
cd ${WRKSRC}/libncftp ; make so
|
1995-05-07 20:57:56 +00:00
|
|
|
|
1997-12-14 16:45:44 +00:00
|
|
|
do-install:
|
|
|
|
@$(INSTALL_PROGRAM) $(WRKSRC)/bin/ncftp $(PREFIX)/bin/ncftp3
|
|
|
|
@cd ${WRKSRC}/bin ; $(INSTALL_PROGRAM) \
|
1998-08-13 23:25:21 +00:00
|
|
|
ncftpbatch ncftpget ncftpls ncftpput ncftpbookmarks \
|
|
|
|
$(PREFIX)/bin
|
1998-09-27 03:02:15 +00:00
|
|
|
@$(INSTALL_DATA) $(WRKSRC)/Strn/libStrn.so.1 $(PREFIX)/lib/$(LIBSTRN)
|
1998-09-28 09:31:59 +00:00
|
|
|
@cd $(PREFIX)/lib && ${LN} -sf $(LIBSTRN) libStrn.so
|
1998-09-27 03:02:15 +00:00
|
|
|
@$(INSTALL_DATA) $(WRKSRC)/libncftp/libncftp.so.2 $(PREFIX)/lib/$(LIBNCFTP)
|
1998-09-28 09:31:59 +00:00
|
|
|
@cd $(PREFIX)/lib && ${LN} -sf $(LIBNCFTP) libncftp.so
|
1998-09-27 03:02:15 +00:00
|
|
|
@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
|
1997-12-14 16:45:44 +00:00
|
|
|
@$(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
|
1998-09-27 03:02:15 +00:00
|
|
|
|
1998-11-14 09:43:39 +00:00
|
|
|
.include <bsd.port.post.mk>
|