mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
62ce000d16
USE_GMAKE -> USES=gmake Simplify do-install Strip libraries
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# Created by: ijliao
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ftplib
|
|
PORTVERSION= 4.0
|
|
CATEGORIES= ftp
|
|
MASTER_SITES= http://nbpfaus.net/~pfau/ftplib/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Set of routines that implement the FTP protocol
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
|
|
USES= gmake
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_FILES= bin/ftpdir bin/ftpget bin/ftplist bin/ftprm bin/ftpsend \
|
|
bin/qftp include/ftplib.h \
|
|
lib/libftp.a lib/libftp.so lib/libftp.so.4
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
'/^SOVERSION/s|=.*|= $$(SONAME)| ; \
|
|
s|CFLAGS =|CFLAGS +=| ; \
|
|
s|LDFLAGS =|LDFLAGS +=| ; \
|
|
s|$$(SOVERSION)|$$(SONAME)| ; \
|
|
s|-lc -o|-o| ; \
|
|
/libftp.so/s|ln -sf|${TRUE}|' ${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/qftp ${STAGEDIR}${PREFIX}/bin
|
|
.for i in ftpdir ftpget ftplist ftprm ftpsend
|
|
${LN} -sf qftp ${STAGEDIR}${PREFIX}/bin/${i}
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/ftplib.h ${STAGEDIR}${PREFIX}/include
|
|
${INSTALL_LIB} ${WRKSRC}/libftp.a ${WRKSRC}/libftp.so.4 ${STAGEDIR}${PREFIX}/lib
|
|
${LN} -sf libftp.so.4 ${STAGEDIR}${PREFIX}/lib/libftp.so
|
|
|
|
.include <bsd.port.mk>
|