blob: f9a5128d78f50c37e297dd258ef5bb857b127148 (
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
44
45
46
47
48
49
|
# New ports collection makefile for: libbt
# Date created: Feb 26 2004
# Whom: Florent Thoumie <flz@xbsd.org>
#
# $FreeBSD$
#
PORTNAME= libbt
PORTVERSION= 1.03
CATEGORIES= net devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= flz@xbsd.org
COMMENT= C library implementing the core BitTorrent protocol
LIB_DEPENDS= curl.3:${PORTSDIR}/ftp/curl
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_REINPLACE= yes
USE_GCC= 3.4
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
PORTDOCS= protocol-ext.txt protocol.txt
post-patch:
@${REINPLACE_CMD} -e 's|depend||' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|\(CFLAGS:=\)|\1\@CFLAGS\@ \@CPPFLAGS\@ |' ${WRKSRC}/src/Makefile.in
do-install:
${INSTALL_DATA} ${WRKSRC}/src/libbt.a ${PREFIX}/lib
${MKDIR} ${PREFIX}/include/libbt
.for i in btcheck btget btlist
${INSTALL_PROGRAM} ${WRKSRC}/src/${i} ${PREFIX}/bin
.endfor
.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
${INSTALL_DATA} ${WRKSRC}/include/${i} ${PREFIX}/include/libbt
.endfor
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_MAN} ${WRKSRC}/docs/${i} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|