mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
Updated libdvdread to svn1226, added patch to allow 1168 and 1226 to build on Haiku.
This commit is contained in:
23
media-libs/libdvdread/libdvdread-svn1226.bep
Normal file
23
media-libs/libdvdread/libdvdread-svn1226.bep
Normal file
@@ -0,0 +1,23 @@
|
||||
DESCRIPTION="libdvdread is a library for DVD navigation tools"
|
||||
HOMEPAGE="http://mplayerhq.hu"
|
||||
SRC_URI="http://download.m0k.org/handbrake/contrib/libdvdread-svn1168.tar.gz"
|
||||
CHECKSUM_MD5="39cb0b27cc6b05e4f5c849dececf1f7a"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
BUILD {
|
||||
cd libdvdread
|
||||
svn up -r 1226
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
./autogen.sh
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--datarootdir=`finddir B_COMMON_DATA_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd libdvdread
|
||||
make install
|
||||
}
|
||||
26
media-libs/libdvdread/patches/libdvdread-svn1168.patch
Normal file
26
media-libs/libdvdread/patches/libdvdread-svn1168.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
Index: libdvdread/src/bswap.h
|
||||
===================================================================
|
||||
--- libdvdread/src/bswap.h (revision 1168)
|
||||
+++ libdvdread/src/bswap.h (working copy)
|
||||
@@ -73,7 +73,7 @@
|
||||
* functionality!
|
||||
*/
|
||||
|
||||
-#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(WIN32) || defined(__CYGWIN__) || defined(__BEOS__) || defined(__OS2__)
|
||||
+#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(WIN32) || defined(__CYGWIN__) || defined(__BEOS__) || defined(__HAIKU__) || defined(__OS2__)
|
||||
#define B2N_16(x) \
|
||||
x = ((((x) & 0xff00) >> 8) | \
|
||||
(((x) & 0x00ff) << 8))
|
||||
Index: configure.ac
|
||||
===================================================================
|
||||
--- libdvdread/configure.ac (revision 1168)
|
||||
+++ libdvdread/configure.ac (working copy)
|
||||
@@ -148,6 +148,8 @@
|
||||
*os2*)
|
||||
LDFLAGS="-no-undefined -Zbin-files $LDFLAGS"
|
||||
;;
|
||||
+ *haiku*)
|
||||
+ ;;
|
||||
*)
|
||||
AC_CHECK_LIB(c, dlopen,
|
||||
DYNAMIC_LD_LIBS="",
|
||||
26
media-libs/libdvdread/patches/libdvdread-svn1226.patch
Normal file
26
media-libs/libdvdread/patches/libdvdread-svn1226.patch
Normal file
@@ -0,0 +1,26 @@
|
||||
Index: libdvdread/src/bswap.h
|
||||
===================================================================
|
||||
--- libdvdread/src/bswap.h (revision 1226)
|
||||
+++ libdvdread/src/bswap.h (working copy)
|
||||
@@ -73,7 +73,7 @@
|
||||
* functionality!
|
||||
*/
|
||||
|
||||
-#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(WIN32) || defined(__CYGWIN__) || defined(__BEOS__) || defined(__OS2__)
|
||||
+#elif defined(__FreeBSD__) || defined(__sun) || defined(__bsdi__) || defined(WIN32) || defined(__CYGWIN__) || defined(__BEOS__) || defined(__HAIKU__) || defined(__OS2__)
|
||||
#define B2N_16(x) \
|
||||
x = ((((x) & 0xff00) >> 8) | \
|
||||
(((x) & 0x00ff) << 8))
|
||||
Index: configure.ac
|
||||
===================================================================
|
||||
--- libdvdread/configure.ac (revision 1226)
|
||||
+++ libdvdread/configure.ac (working copy)
|
||||
@@ -148,6 +148,8 @@
|
||||
*os2*)
|
||||
LDFLAGS="-no-undefined -Zbin-files $LDFLAGS"
|
||||
;;
|
||||
+ *haiku*)
|
||||
+ ;;
|
||||
*)
|
||||
AC_CHECK_LIB(c, dlopen,
|
||||
DYNAMIC_LD_LIBS="",
|
||||
Reference in New Issue
Block a user