summaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2004-04-19 16:57:19 +0000
committerleeym <leeym@FreeBSD.org>2004-04-19 16:57:19 +0000
commitc42d7b66b0a5fd6ea81e1ac7d621b136ee2a5ad0 (patch)
treeadb6a7463e7f038c6a97bb05d6199eb25b9264ce /net-p2p
parentf4d65d273f206224a43ba8a8dcc032ed795aa570 (diff)
downloadFreeBSD-ports-c42d7b66b0a5fd6ea81e1ac7d621b136ee2a5ad0.zip
FreeBSD-ports-c42d7b66b0a5fd6ea81e1ac7d621b136ee2a5ad0.tar.gz
- add patch based on OS versions.
- add USE_GCC=3.3 and unbreak this port on 4.x - backout arch-related settings in previous commit. Noticed by: kris Reviewed by: Florent Thoumie <flz@xbsd.org> Approved by: Florent Thoumie <flz@xbsd.org>
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/libbt/Makefile6
-rw-r--r--net-p2p/libbt/files/patch-src::peer.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/net-p2p/libbt/Makefile b/net-p2p/libbt/Makefile
index bd2b585..cce0bb9 100644
--- a/net-p2p/libbt/Makefile
+++ b/net-p2p/libbt/Makefile
@@ -20,12 +20,14 @@ LIB_DEPENDS= uuid.1:${PORTSDIR}/sysutils/e2fsprogs \
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_REINPLACE= yes
-
+USE_GCC= 3.3
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
.include <bsd.port.pre.mk>
-ONLY_FOR_ARCHS= i386
+.if ${ARCH} == "alpha"
+BROKEN= "Does not compile on alpha"
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|depend||' ${WRKSRC}/Makefile.in
diff --git a/net-p2p/libbt/files/patch-src::peer.c b/net-p2p/libbt/files/patch-src::peer.c
index 15ad4cc..6c2104d 100644
--- a/net-p2p/libbt/files/patch-src::peer.c
+++ b/net-p2p/libbt/files/patch-src::peer.c
@@ -1,10 +1,14 @@
--- 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 @@
+@@ -20,6 +20,11 @@
# endif
#endif
#include <sys/types.h>
++#if __FreeBSD__ >= 5
+#include <sys/limits.h>
++#else
++#include <machine/limits.h>
++#endif
#include <string.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
OpenPOWER on IntegriCloud