diff --git a/net-p2p/transmission/patches/transmission-2.12.patch b/net-p2p/transmission/patches/transmission-2.12.patch new file mode 100644 index 000000000..942a152e5 --- /dev/null +++ b/net-p2p/transmission/patches/transmission-2.12.patch @@ -0,0 +1,25 @@ +diff -Naur transmission-2.12/libtransmission/JSON_parser.c transmission-2.12-haiku/libtransmission/JSON_parser.c +--- transmission-2.12/libtransmission/JSON_parser.c 2010-06-27 01:28:16.064225280 +0000 ++++ transmission-2.12-haiku/libtransmission/JSON_parser.c 2010-07-10 06:08:57.465829888 +0000 +@@ -80,6 +80,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-2.12/third-party/miniupnp/connecthostport.c transmission-2.12-haiku/third-party/miniupnp/connecthostport.c +--- transmission-2.12/third-party/miniupnp/connecthostport.c 2010-06-27 01:28:53.066584576 +0000 ++++ transmission-2.12-haiku/third-party/miniupnp/connecthostport.c 2010-07-10 06:08:57.467664896 +0000 +@@ -29,6 +29,7 @@ + #ifndef USE_GETHOSTBYNAME + #include + #include ++#include + #endif /* #ifndef USE_GETHOSTBYNAME */ + #endif /* #else WIN32 */ + diff --git a/net-p2p/transmission/transmission-2.12.bep b/net-p2p/transmission/transmission-2.12.bep new file mode 100644 index 000000000..280fa11bc --- /dev/null +++ b/net-p2p/transmission/transmission-2.12.bep @@ -0,0 +1,29 @@ +DESCRIPTION="Transmission" +HOMEPAGE="http://www.transmissionbt.com/" +SRC_URI="http://download.transmissionbt.com/files/transmission-2.12.tar.bz2" +CHECKSUM_MD5="f3d34fdbbf3ae25635f9e7bf7e662cd9" +REVISION="1" +STATUS_HAIKU="stable" +MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building." + +# 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-2.12 + autoreconf -vfi + ./configure --prefix=/boot/common + make +} + +INSTALL { + cd transmission-2.12 + make install +} +LICENSE="Transmission + MIT + GNU GPL v2" +COPYRIGHT="2005-2010. All code is copyrighted by the respective authors."