From ac9f4ce5698844011ee7f22dd98cddbb8b668dfc Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Tue, 22 Feb 2011 23:57:36 +0000 Subject: [PATCH] Add a bep and patch for transmission-2.21. The configure.ac changes in the patch also allow it to build on GCC2. --- .../patches/transmission-2.21.patch | 34 +++++++++++++++++++ net-p2p/transmission/transmission-2.21.bep | 28 +++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 net-p2p/transmission/patches/transmission-2.21.patch create mode 100644 net-p2p/transmission/transmission-2.21.bep diff --git a/net-p2p/transmission/patches/transmission-2.21.patch b/net-p2p/transmission/patches/transmission-2.21.patch new file mode 100644 index 000000000..137654fb1 --- /dev/null +++ b/net-p2p/transmission/patches/transmission-2.21.patch @@ -0,0 +1,34 @@ +diff -Naur transmission-2.21/configure.ac transmission-2.21-haiku/configure.ac +--- transmission-2.21/configure.ac 2011-02-08 22:14:33.063700992 +0100 ++++ transmission-2.21-haiku/configure.ac 2011-02-22 02:05:20.924319744 +0100 +@@ -85,7 +85,7 @@ + AC_C_INLINE + if test "x$GCC" = "xyes" ; then + +- CFLAGS="$CFLAGS -std=gnu99 -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wredundant-decls -Wnested-externs -Wunused-parameter -Wwrite-strings -Winline -Wfloat-equal" ++ CFLAGS="$CFLAGS -ggdb3 -Wall -W -Wpointer-arith -Wformat-security -Wcast-align -Wundef -Wcast-align -Wstrict-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wwrite-strings -Winline" + + dnl figure out gcc version + AC_MSG_CHECKING([gcc version]) +@@ -95,6 +95,10 @@ + GCC_VERSION_NUM=`(expr $GCC_MAJOR "*" 100 + $GCC_MINOR) 2>/dev/null` + + AC_MSG_RESULT($GCC_VERSION) ++ if test $GCC_VERSION_NUM -ge 300; then ++ dnl these aren't in gcc 2 ++ CFLAGS="$CFLAGS -std=gnu99 -Wmissing-format-attribute -Wunused-parameter -Wfloat-equal" ++ fi + if test $GCC_VERSION_NUM -ge 304; then + dnl these were added in 3.4 + CFLAGS="$CFLAGS -Wextra -Wdeclaration-after-statement -Winit-self" +diff -Naur transmission-2.21/third-party/miniupnp/connecthostport.c transmission-2.21-haiku/third-party/miniupnp/connecthostport.c +--- transmission-2.21/third-party/miniupnp/connecthostport.c 2011-02-08 22:14:30.000524288 +0100 ++++ transmission-2.21-haiku/third-party/miniupnp/connecthostport.c 2011-02-22 02:05:20.925106176 +0100 +@@ -31,6 +31,7 @@ + #ifndef USE_GETHOSTBYNAME + #include + #include ++#include + #endif /* #ifndef USE_GETHOSTBYNAME */ + #endif /* #else WIN32 */ + diff --git a/net-p2p/transmission/transmission-2.21.bep b/net-p2p/transmission/transmission-2.21.bep new file mode 100644 index 000000000..f910f8bb0 --- /dev/null +++ b/net-p2p/transmission/transmission-2.21.bep @@ -0,0 +1,28 @@ +DESCRIPTION="Transmission" +HOMEPAGE="http://www.transmissionbt.com/" +SRC_URI="http://download.transmissionbt.com/files/transmission-2.21.tar.bz2" +CHECKSUM_MD5="65a00e3423834121c274717bde2b4dd9" +REVISION="1" +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 >= 2.0.10" + +BUILD { + cd transmission-2.21 + autoreconf -vfi + ./configure --prefix=/boot/common + make +} + +INSTALL { + cd transmission-2.21 + make install +} +LICENSE="Transmission + MIT + GNU GPL v2" +COPYRIGHT="2005-2011. All code is copyrighted by the respective authors."