1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/net-p2p/libbt/Makefile
2021-04-06 16:31:07 +02:00

43 lines
1.1 KiB
Makefile

# Created by: Florent Thoumie <flz@xbsd.org>
PORTNAME= libbt
DISTVERSION= 1.06
CATEGORIES= net-p2p devel
MASTER_SITES= SF
MAINTAINER= egypcio@FreeBSD.org
COMMENT= C library implementing the core BitTorrent protocol
LICENSE= GPLv2 LGPL21
LICENSE_COMB= multi
LIB_DEPENDS= libcurl.so:ftp/curl \
libuuid.so:misc/e2fsprogs-libuuid
USES= gmake localbase ssl
GNU_CONFIGURE= yes
DOCS= docs/protocol.txt docs/protocol-ext.txt \
CHANGELOG CREDITS README
OPTIONS_DEFINE= DOCS
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e 's|depend||' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|-lssl|-lcrypto|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|\(CFLAGS:=\)|\1\@CFLAGS\@ \@CPPFLAGS\@ |' ${WRKSRC}/src/Makefile.in
do-install:
${INSTALL_DATA} ${WRKSRC}/src/libbt.a ${STAGEDIR}${PREFIX}/lib
@${MKDIR} ${STAGEDIR}${PREFIX}/include/libbt
cd ${WRKSRC}/src && ${INSTALL_PROGRAM} btcheck btget btlist ${STAGEDIR}${PREFIX}/bin
cd ${WRKSRC}/include && ${INSTALL_DATA} *.h ${STAGEDIR}${PREFIX}/include/libbt
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>