pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/ktorrent Fix build on DragonFly and with modular X...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5678425af401
branches:  trunk
changeset: 523806:5678425af401
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Jan 13 18:54:24 2007 +0000

description:
Fix build on DragonFly and with modular Xorg.

diffstat:

 net/ktorrent/Makefile         |  10 +++++++---
 net/ktorrent/distinfo         |   5 +++--
 net/ktorrent/patches/patch-aa |  33 ++++++++++++++++++++++++++++++---
 net/ktorrent/patches/patch-ab |  13 +++++++++++++
 4 files changed, 53 insertions(+), 8 deletions(-)

diffs (98 lines):

diff -r 69495ffaef58 -r 5678425af401 net/ktorrent/Makefile
--- a/net/ktorrent/Makefile     Sat Jan 13 18:51:51 2007 +0000
+++ b/net/ktorrent/Makefile     Sat Jan 13 18:54:24 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2007/01/08 22:10:38 xtraeme Exp $
+# $NetBSD: Makefile,v 1.4 2007/01/13 18:54:24 joerg Exp $
 
 DISTNAME=      ktorrent-${KTORRENT_VER}
 PKGREVISION=   1
@@ -17,10 +17,14 @@
 GNU_CONFIGURE=         yes
 USE_TOOLS+=            gmake
 
+BUILDLINK_DEPMETHOD.libXt?=    build
+
 .include "../../meta-pkgs/kde3/kde3.mk"
+.include "../../devel/gmp/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
 .include "../../x11/kdebase3/buildlink3.mk"
 .include "../../x11/kdelibs3/buildlink3.mk"
-.include "../../devel/gmp/buildlink3.mk"
-
+.include "../../x11/libSM/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 69495ffaef58 -r 5678425af401 net/ktorrent/distinfo
--- a/net/ktorrent/distinfo     Sat Jan 13 18:51:51 2007 +0000
+++ b/net/ktorrent/distinfo     Sat Jan 13 18:54:24 2007 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1.1.1 2007/01/03 17:37:22 xtraeme Exp $
+$NetBSD: distinfo,v 1.2 2007/01/13 18:54:24 joerg Exp $
 
 SHA1 (ktorrent-2.1beta1.tar.gz) = 433d0b6b8ef47d544f446d2b9026dfd455af8172
 RMD160 (ktorrent-2.1beta1.tar.gz) = 857b81de55ee117039a6577d3cbde5172edd7ae3
 Size (ktorrent-2.1beta1.tar.gz) = 3178912 bytes
-SHA1 (patch-aa) = fdcc454b7711138b020a278342d4d6f961f78f5d
+SHA1 (patch-aa) = 7f33855d20864ce5c97eedc8d897c5e7fa088d3d
+SHA1 (patch-ab) = d0b698d0215d7c7585435481ce4398e44abbf851
diff -r 69495ffaef58 -r 5678425af401 net/ktorrent/patches/patch-aa
--- a/net/ktorrent/patches/patch-aa     Sat Jan 13 18:51:51 2007 +0000
+++ b/net/ktorrent/patches/patch-aa     Sat Jan 13 18:54:24 2007 +0000
@@ -1,8 +1,35 @@
-$NetBSD: patch-aa,v 1.1.1.1 2007/01/03 17:37:22 xtraeme Exp $
+$NetBSD: patch-aa,v 1.2 2007/01/13 18:54:24 joerg Exp $
 
---- libktorrent/net/socket.cpp.orig    2006-07-18 08:57:56.000000000 +0000
+--- libktorrent/net/socket.cpp.orig    2006-11-21 19:08:44.000000000 +0000
 +++ libktorrent/net/socket.cpp
-@@ -137,7 +137,11 @@ namespace net
+@@ -38,7 +38,7 @@
+ #include <sys/filio.h>
+ #endif
+ 
+-#if defined(Q_OS_MACX) || defined(Q_OS_DARWIN) || (defined(Q_OS_FREEBSD) && __FreeBSD_version < 600020) || defined (Q_OS_SOLARIS)
++#if defined(Q_OS_MACX) || defined(Q_OS_DARWIN) || (defined(Q_OS_FREEBSD) && !defined(__DragonFly__) && __FreeBSD_version < 600020) || defined (Q_OS_SOLARIS)
+ #define MSG_NOSIGNAL 0
+ #endif
+ 
+@@ -56,7 +56,7 @@ namespace net
+ 
+       Socket::Socket(int fd) : m_fd(fd),m_state(IDLE)
+       {
+-#if defined(Q_OS_MACX) || defined(Q_OS_DARWIN) || (defined(Q_OS_FREEBSD) && __FreeBSD_version < 600020)
++#if defined(Q_OS_MACX) || defined(Q_OS_DARWIN) || (defined(Q_OS_FREEBSD) && !defined(__DragonFly__) && __FreeBSD_version < 600020)
+               int val = 1; 
+               if (setsockopt(m_fd,SOL_SOCKET,SO_NOSIGPIPE,&val,sizeof(int)) < 0)
+               {
+@@ -73,7 +73,7 @@ namespace net
+                       Out(SYS_GEN|LOG_IMPORTANT) << QString("Cannot create socket : %1").arg(strerror(errno)) << endl;
+               }
+               m_fd = fd;
+-#if defined(Q_OS_MACX) || defined(Q_OS_DARWIN) || (defined(Q_OS_FREEBSD) && __FreeBSD_version < 600020)
++#if defined(Q_OS_MACX) || defined(Q_OS_DARWIN) || (defined(Q_OS_FREEBSD) && !defined(__DragonFly__) && __FreeBSD_version < 600020)
+               int val = 1;
+               if (setsockopt(m_fd,SOL_SOCKET,SO_NOSIGPIPE,&val,sizeof(int)) < 0)
+               {
+@@ -160,7 +160,11 @@ namespace net
        
        int Socket::send(const bt::Uint8* buf,int len)
        {
diff -r 69495ffaef58 -r 5678425af401 net/ktorrent/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ktorrent/patches/patch-ab     Sat Jan 13 18:54:24 2007 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1 2007/01/13 18:54:24 joerg Exp $
+
+--- plugins/webinterface/php_handler.cpp.orig  2007-01-13 18:37:18.000000000 +0000
++++ plugins/webinterface/php_handler.cpp
+@@ -19,6 +19,8 @@
+  ***************************************************************************/
+ #include "php_handler.h"
+ 
++#include <unistd.h>
++
+ using namespace kt;
+ PhpHandler::PhpHandler(PhpInterface *php):QObject()
+ {



Home | Main Index | Thread Index | Old Index