blob: 052cf0cfcac089b8b7f8d38eae89156c82223e41 (
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
52
53
54
55
56
57
58
59
|
# Created by: ache
# $FreeBSD$
PORTNAME= ncftp
PORTVERSION= 3.2.6
PORTREVISION?= 2
CATEGORIES= ftp
MASTER_SITES= ftp://ftp.ncftp.com/ncftp/ \
ftp://ftp.mirrorservice.org/sites/ftp.ncftp.com/ncftp/
DISTNAME= ncftp-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= FTP client with advanced user interface
LICENSE= ARTPERL10
LICENSE_FILE= ${WRKSRC}/doc/LICENSE.txt
USES= ncurses tar:xz
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= ac_cv_header_ncurses_h=yes
PORTDOCS= *
LIBNCFTP= libncftp.so.3
LIBSIO= libsio.so.5
LIBSTRN= libStrn.so.1
OPTIONS_DEFINE= LIBS DOCS
OPTIONS_DEFAULT=LIBS
LIBS_DESC= Install optional libraries
OPTIONS_SUB= yes
pre-build-LIBS-on:
.for dir in Strn libncftp sio
${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -C ${WRKSRC}/${dir} so
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${STAGEDIR}${PREFIX}/bin
${LN} -sf ncftpbatch ${STAGEDIR}${PREFIX}/bin/ncftpspooler
${INSTALL_MAN} ${WRKSRC}/doc/man/* ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/Strn/Strn.3 ${STAGEDIR}${MANPREFIX}/man/man3
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
-${RM} -r ${STAGEDIR}${DOCSDIR}/man
do-install-LIBS-on:
${INSTALL_LIB} ${WRKSRC}/Strn/${LIBSTRN} ${STAGEDIR}${PREFIX}/lib
.for lib in libncftp/${LIBNCFTP} sio/${LIBSIO} Strn/${LIBSTRN}
${INSTALL_LIB} ${WRKSRC}/${lib} ${STAGEDIR}${PREFIX}/lib
${LN} -sf ${lib:T} ${STAGEDIR}${PREFIX}/lib/${lib:T:R}
.endfor
.include <bsd.port.mk>
|