Lines 2-25
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= libbt |
4 |
PORTNAME= libbt |
5 |
PORTVERSION= 1.05 |
5 |
PORTVERSION= 1.06 |
6 |
PORTREVISION= 5 |
|
|
7 |
CATEGORIES= net-p2p devel |
6 |
CATEGORIES= net-p2p devel |
8 |
MASTER_SITES= SF |
7 |
MASTER_SITES= SF |
9 |
|
8 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
9 |
LICENSE= GPLv2 LGPL21 |
|
|
10 |
LICENSE_COMB= multi |
11 |
|
12 |
MAINTAINER= egypcio@googlemail.com |
11 |
COMMENT= C library implementing the core BitTorrent protocol |
13 |
COMMENT= C library implementing the core BitTorrent protocol |
12 |
|
14 |
|
13 |
LIB_DEPENDS= libcurl.so:ftp/curl |
15 |
LIB_DEPENDS= libcurl.so:ftp/curl |
14 |
|
16 |
|
15 |
GNU_CONFIGURE= yes |
17 |
GNU_CONFIGURE= yes |
16 |
USES= gmake |
18 |
USES= gmake localbase ssl |
17 |
CPPFLAGS+= -I${LOCALBASE}/include |
|
|
18 |
LDFLAGS+= -L${LOCALBASE}/lib |
19 |
|
19 |
|
20 |
PORTDOCS= protocol-ext.txt protocol.txt |
20 |
PORTDOCS= docs/protocol.txt docs/protocol-ext.txt \ |
|
|
21 |
CHANGELOG CREDITS README |
21 |
|
22 |
|
22 |
.include <bsd.port.options.mk> |
23 |
OPTIONS_DEFINE= DOCS |
|
|
24 |
OPTIONS_SUB= yes |
23 |
|
25 |
|
24 |
post-patch: |
26 |
post-patch: |
25 |
@${REINPLACE_CMD} -e 's|depend||' ${WRKSRC}/Makefile.in |
27 |
@${REINPLACE_CMD} -e 's|depend||' ${WRKSRC}/Makefile.in |
Lines 29-43
Link Here
|
29 |
do-install: |
31 |
do-install: |
30 |
${INSTALL_DATA} ${WRKSRC}/src/libbt.a ${STAGEDIR}${PREFIX}/lib |
32 |
${INSTALL_DATA} ${WRKSRC}/src/libbt.a ${STAGEDIR}${PREFIX}/lib |
31 |
${MKDIR} ${STAGEDIR}${PREFIX}/include/libbt |
33 |
${MKDIR} ${STAGEDIR}${PREFIX}/include/libbt |
32 |
.for i in btcheck btget btlist |
34 |
(cd ${WRKSRC}/src ; ${INSTALL_PROGRAM} btcheck btget btlist ${STAGEDIR}${PREFIX}/bin) |
33 |
${INSTALL_PROGRAM} ${WRKSRC}/src/${i} ${STAGEDIR}${PREFIX}/bin |
35 |
(cd ${WRKSRC}/include ; ${INSTALL_DATA} *.h ${STAGEDIR}${PREFIX}/include/libbt) |
34 |
.endfor |
36 |
|
35 |
.for i in benc.h bitset.h bterror.h btmessage.h bts.h context.h peer.h random.h segmenter.h strbuf.h stream.h types.h util.h |
37 |
do-install-DOCS-on: |
36 |
${INSTALL_DATA} ${WRKSRC}/include/${i} ${STAGEDIR}${PREFIX}/include/libbt |
|
|
37 |
.endfor |
38 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
38 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
39 |
.for i in ${PORTDOCS} |
39 |
(cd ${WRKSRC} ; ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}) |
40 |
${INSTALL_DATA} ${WRKSRC}/docs/${i} ${STAGEDIR}${DOCSDIR} |
|
|
41 |
.endfor |
42 |
|
40 |
|
43 |
.include <bsd.port.mk> |
41 |
.include <bsd.port.mk> |