From e120cdff5c8a94759928eea1f25ad44e863943c8 Mon Sep 17 00:00:00 2001 From: Matt Madia Date: Thu, 6 May 2010 03:49:03 +0000 Subject: [PATCH] patch & bep for v1.93 --- net-p2p/transmission/transmission-1.93.bep | 26 +++++++++ net-p2p/transmission/transmission-1.93.patch | 57 ++++++++++++++++++++ 2 files changed, 83 insertions(+) create mode 100644 net-p2p/transmission/transmission-1.93.bep create mode 100644 net-p2p/transmission/transmission-1.93.patch diff --git a/net-p2p/transmission/transmission-1.93.bep b/net-p2p/transmission/transmission-1.93.bep new file mode 100644 index 000000000..6864265f5 --- /dev/null +++ b/net-p2p/transmission/transmission-1.93.bep @@ -0,0 +1,26 @@ +DESCRIPTION="Transmission" +HOMEPAGE="http://www.transmissionbt.com/" +SRC_URI="http://mirrors.m0k.org/transmission/files/transmission-1.93.tar.bz2" +CHECKSUM_MD5="f68358d03e46bec5704bbaa894990152" +REVISION="1" + +# gcc4 is required +STATUS_HAIKU="stable" + +# pkgconfig is only a build dependency +# note: intlool, xml-parser, & gettext are now required +DEPEND="dev-util/pkgconfig >= 0.23 + net-misc/curl >= 7.20.1 + dev-libs/libevent >= 1.4.11" + +BUILD { + cd transmission-1.93 + autoreconf -vfi + ./configure --prefix=/boot/common + make +} + +INSTALL { + cd transmission-1.93 + make install +} diff --git a/net-p2p/transmission/transmission-1.93.patch b/net-p2p/transmission/transmission-1.93.patch new file mode 100644 index 000000000..de4ebdc28 --- /dev/null +++ b/net-p2p/transmission/transmission-1.93.patch @@ -0,0 +1,57 @@ +diff -Naur transmission-1.93/configure.ac transmission-1.93-haiku/configure.ac +--- transmission-1.93/configure.ac 2010-05-01 21:35:58.020447232 +0000 ++++ transmission-1.93-haiku/configure.ac 2010-05-05 23:28:25.129761280 +0000 +@@ -205,7 +205,8 @@ + dnl build our copy of libevent whether we use it or not, + dnl because "make dist" needs its Makefiles to exist, and + dnl AM_CONDITIONAL + AC_CONFIG_SUBDIRS don't seem to play nice +-AC_CONFIG_SUBDIRS([third-party/libevent]) ++dnl (HaikuPorts: require an installed copy) ++dnl AC_CONFIG_SUBDIRS([third-party/libevent]) + libevent_source=bundled + AC_CHECK_LIB([event],[evutil_vsnprintf], + [libevent_found=yes], +@@ -221,6 +222,8 @@ + fi + fi + if test "x$libevent_source" = "xbundled"; then ++ dnl (HaikuPorts: require an installed copy) ++ AC_MSG_ERROR("libevent not found!") + AC_MSG_WARN([using our own libevent from third-party/libevent/]) + AC_MSG_WARN([if you are cross-compiling this is probably NOT what you want.]) + LIBEVENT_CFLAGS="-I\$(top_srcdir)/third-party/libevent -I\$(top_builddir)/third-party/libevent" +diff -Naur transmission-1.93/libtransmission/JSON_parser.c transmission-1.93-haiku/libtransmission/JSON_parser.c +--- transmission-1.93/libtransmission/JSON_parser.c 2010-05-01 21:35:04.035389440 +0000 ++++ transmission-1.93-haiku/libtransmission/JSON_parser.c 2010-05-05 23:28:25.131858432 +0000 +@@ -75,6 +75,10 @@ + # endif + #endif + ++/* This can be removed once http://dev.haiku-os.org/ticket/3408 is fixed */ ++#ifdef __HAIKU__ ++# define strtold strtod ++#endif + + #define true 1 + #define false 0 +diff -Naur transmission-1.93/third-party/Makefile.am transmission-1.93-haiku/third-party/Makefile.am +--- transmission-1.93/third-party/Makefile.am 2010-05-01 21:35:49.039059456 +0000 ++++ transmission-1.93-haiku/third-party/Makefile.am 2010-05-05 23:28:25.131072000 +0000 +@@ -1,4 +1,5 @@ +-SUBDIRS = libnatpmp miniupnp libevent dht ++# HaikuPorts: require an installed copy of libevent ++SUBDIRS = libnatpmp miniupnp dht + + EXTRA_DIST = \ + macosx-libevent-config.h \ +diff -Naur transmission-1.93/third-party/miniupnp/connecthostport.c transmission-1.93-haiku/third-party/miniupnp/connecthostport.c +--- transmission-1.93/third-party/miniupnp/connecthostport.c 2010-05-01 21:35:46.041680896 +0000 ++++ transmission-1.93-haiku/third-party/miniupnp/connecthostport.c 2010-05-05 23:24:18.628621312 +0000 +@@ -29,6 +29,7 @@ + #ifndef USE_GETHOSTBYNAME + #include + #include ++#include + #endif /* #ifndef USE_GETHOSTBYNAME */ + #endif /* #else WIN32 */ +