blob: 7ce2767f2c8458b07204a259edfd27c4e4513eed (
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
|
# Created by: Florent Thoumie <flz@xbsd.org>
# $FreeBSD$
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>
|