aboutsummaryrefslogtreecommitdiffstats
path: root/net/libbt
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2004-04-17 22:14:00 +0800
committerleeym <leeym@FreeBSD.org>2004-04-17 22:14:00 +0800
commite6696efd81e59864c8d0ff99ab8c8cf8568c1d5f (patch)
tree8156d4c78aefaa71e8bc32884c732f3db852678f /net/libbt
parent05e83e57a2de067a3238c7e52eaf12e592479bfe (diff)
downloadfreebsd-ports-gnome-e6696efd81e59864c8d0ff99ab8c8cf8568c1d5f.tar.gz
freebsd-ports-gnome-e6696efd81e59864c8d0ff99ab8c8cf8568c1d5f.tar.zst
freebsd-ports-gnome-e6696efd81e59864c8d0ff99ab8c8cf8568c1d5f.zip
Update libbt port to version 1.01
PR: 65498 Submitted by: Florent Thoumie <flz@xbsd.org>
Diffstat (limited to 'net/libbt')
-rw-r--r--net/libbt/Makefile13
-rw-r--r--net/libbt/distinfo4
-rw-r--r--net/libbt/files/patch-src::peer.c10
-rw-r--r--net/libbt/pkg-plist1
4 files changed, 17 insertions, 11 deletions
diff --git a/net/libbt/Makefile b/net/libbt/Makefile
index 307b717ccccc..bd2b5850ab02 100644
--- a/net/libbt/Makefile
+++ b/net/libbt/Makefile
@@ -6,11 +6,10 @@
#
PORTNAME= libbt
-PORTVERSION= 0.03
+PORTVERSION= 1.01
CATEGORIES= net devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTNAME= ${PORTNAME}.${PORTVERSION}
MAINTAINER= flz@xbsd.org
COMMENT= C library implementing the core BitTorrent protocol
@@ -18,8 +17,6 @@ COMMENT= C library implementing the core BitTorrent protocol
LIB_DEPENDS= uuid.1:${PORTSDIR}/sysutils/e2fsprogs \
curl.2:${PORTSDIR}/ftp/curl
-WRKSRC= ${WRKDIR}/${PORTNAME}
-
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_REINPLACE= yes
@@ -28,13 +25,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.pre.mk>
-.if ${ARCH} == "alpha"
-BROKEN= "Does not compile on alpha"
-.endif
+ONLY_FOR_ARCHS= i386
post-patch:
@${REINPLACE_CMD} -e 's|depend||' ${WRKSRC}/Makefile.in
- @${REINPLACE_CMD} -e 's|\(CFLAGS:=\)|\1\@CFLAGS\@|' ${WRKSRC}/src/Makefile.in
+ @${REINPLACE_CMD} -e 's|\(CFLAGS:=\)|\1\@CFLAGS\@ |' ${WRKSRC}/src/Makefile.in
do-install:
${INSTALL_DATA} ${WRKSRC}/src/libbt.a ${PREFIX}/lib
@@ -42,7 +37,7 @@ do-install:
.for i in btcheck btget btlist
${INSTALL_PROGRAM} ${WRKSRC}/src/${i} ${PREFIX}/bin
.endfor
-.for i in benc.h bitset.h bterror.h bts.h context.h peer.h random.h segmenter.h strbuf.h stream.h types.h util.h
+.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
diff --git a/net/libbt/distinfo b/net/libbt/distinfo
index d29cc2dd343f..d8cc727794a0 100644
--- a/net/libbt/distinfo
+++ b/net/libbt/distinfo
@@ -1,2 +1,2 @@
-MD5 (libbt.0.03.tar.gz) = 8c2ff3afcef27441fc398105ef241a6e
-SIZE (libbt.0.03.tar.gz) = 395161
+MD5 (libbt-1.01.tar.gz) = 6a22db0d4db9036afbb5af94b8fdd526
+SIZE (libbt-1.01.tar.gz) = 307537
diff --git a/net/libbt/files/patch-src::peer.c b/net/libbt/files/patch-src::peer.c
new file mode 100644
index 000000000000..15ad4cc51605
--- /dev/null
+++ b/net/libbt/files/patch-src::peer.c
@@ -0,0 +1,10 @@
+--- src/peer.c Wed Apr 7 06:14:44 2004
++++ src/peer.c.new Tue Apr 13 19:29:01 2004
+@@ -20,6 +20,7 @@
+ # endif
+ #endif
+ #include <sys/types.h>
++#include <sys/limits.h>
+ #include <string.h>
+ #ifdef HAVE_STRINGS_H
+ # include <strings.h>
diff --git a/net/libbt/pkg-plist b/net/libbt/pkg-plist
index 87f044a64f99..581eac7b8cbd 100644
--- a/net/libbt/pkg-plist
+++ b/net/libbt/pkg-plist
@@ -4,6 +4,7 @@ bin/btlist
include/libbt/benc.h
include/libbt/bitset.h
include/libbt/bterror.h
+include/libbt/btmessage.h
include/libbt/bts.h
include/libbt/context.h
include/libbt/peer.h