1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

Support stage

USE_GMAKE -> USES=gmake
Simplify do-install
Strip libraries
This commit is contained in:
Baptiste Daroussin 2014-01-25 20:43:37 +00:00
parent 375eb2ad74
commit 62ce000d16
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341095

View File

@ -11,14 +11,13 @@ COMMENT= Set of routines that implement the FTP protocol
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_GMAKE= yes
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
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e \
'/^SOVERSION/s|=.*|= $$(SONAME)| ; \
@ -29,12 +28,12 @@ post-patch:
/libftp.so/s|ln -sf|${TRUE}|' ${WRKSRC}/Makefile
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} qftp ${PREFIX}/bin)
${INSTALL_PROGRAM} ${WRKSRC}/qftp ${STAGEDIR}${PREFIX}/bin
.for i in ftpdir ftpget ftplist ftprm ftpsend
(cd ${PREFIX}/bin && ${LN} -sf qftp ${i})
${LN} -sf qftp ${STAGEDIR}${PREFIX}/bin/${i}
.endfor
(cd ${WRKSRC} && ${INSTALL_DATA} ftplib.h ${PREFIX}/include)
(cd ${WRKSRC} && ${INSTALL_DATA} libftp.a libftp.so.4 ${PREFIX}/lib)
(cd ${PREFIX}/lib && ${LN} -sf libftp.so.4 libftp.so)
${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>