Add a bep and patch for transmission-2.21. The configure.ac changes in the patch

also allow it to build on GCC2.
This commit is contained in:
Michael Lotz
2011-02-22 23:57:36 +00:00
parent 7571816d24
commit ac9f4ce569
2 changed files with 62 additions and 0 deletions

View File

@@ -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 <sys/types.h>
#include <sys/socket.h>
+#include <sys/select.h>
#endif /* #ifndef USE_GETHOSTBYNAME */
#endif /* #else WIN32 */

View File

@@ -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."