aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/ncftp3/Makefile
blob: d75b20a24281e6ee7d2db5c8cad974111c6b17d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# ex:ts=8
# Ports collection makefile for:  ncftp3
# Date created:           4 Nov 1994
# Whom:               ache
#
# $FreeBSD$
#

PORTNAME=   ncftp3
PORTVERSION=    3.0.2
CATEGORIES= ftp
MASTER_SITES=   ftp://ftp.ncftp.com/ncftp/
DISTNAME=   ncftp-${PORTVERSION}-src

MAINTAINER= obrien@FreeBSD.org

WRKSRC=     ${WRKDIR}/${DISTNAME:S/-src//}
INSTALLS_SHLIB= yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-ncurses
MAN1=       ncftp3.1 ncftpbatch.1 ncftpget.1 ncftpls.1 ncftpput.1
MAN3=       Strn.3

LIBNCFTP=   libncftp.so.2
LIBSTRN=    libStrn.so.1

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
    @${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.mk>