mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
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:
34
net-p2p/transmission/patches/transmission-2.21.patch
Normal file
34
net-p2p/transmission/patches/transmission-2.21.patch
Normal 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 */
|
||||
|
||||
28
net-p2p/transmission/transmission-2.21.bep
Normal file
28
net-p2p/transmission/transmission-2.21.bep
Normal 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."
|
||||
Reference in New Issue
Block a user