4ca0e60800
-D_THREAD_SAFE --> ${PTHREAD_CFLAGS} Note: my first intention was to test this out on bento/beta, but per ade's requiest I opted to do it quickly.
40 lines
977 B
Makefile
40 lines
977 B
Makefile
# New ports collection makefile for: lftp
|
|
# Date created: 11 September 1997
|
|
# Whom: Andrey Zakhvatov
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= lftp
|
|
PORTVERSION= 2.3.9
|
|
CATEGORIES= ftp ipv6
|
|
MASTER_SITES= ftp://ftp.yars.free.net/pub/software/unix/net/ftp/client/lftp/ \
|
|
${MASTER_SITE_SUNSITE}
|
|
MASTER_SITE_SUBDIR= system/network/file-transfer
|
|
|
|
MAINTAINER= LoRd_CJ@dalusers.com
|
|
|
|
LIB_DEPENDS= intl.1:${PORTSDIR}/devel/gettext
|
|
|
|
USE_BZIP2= yes
|
|
USE_OPENSSL= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LIBS="-L${LOCALBASE}/lib"
|
|
|
|
MAN1= lftp.1
|
|
|
|
pre-patch:
|
|
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/lftp.conf ${PREFIX}/etc/lftp.conf.sample
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${PREFIX}/share/doc/lftp
|
|
.for file in COPYING FAQ NEWS README THANKS TODO
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/lftp
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|