diff --git a/media-libs/libdvbpsi/libdvbpsi-0.1.7.bep b/media-libs/libdvbpsi/libdvbpsi-0.1.7.bep new file mode 100644 index 000000000..64663e387 --- /dev/null +++ b/media-libs/libdvbpsi/libdvbpsi-0.1.7.bep @@ -0,0 +1,27 @@ +DESCRIPTION="library for MPEG TS/DVB PSI tables decoding and generation" +HOMEPAGE="http://www.videolan.org/libdvbpsi" +SRC_URI="http://download.videolan.org/pub/libdvbpsi/0.1.7/libdvbpsi-0.1.7.tar.bz2" +REVISION="1" +STATUS_HAIKU="stable" +DEPEND="" +CHECKSUM_MD5="af419575719e356b908b0c6946499052" +BUILD { + cd libdvbpsi-0.1.7 + ./bootstrap + ./configure --prefix=`finddir B_COMMON_DIRECTORY` LDFLAGS="-lnetwork" + make +} + +INSTALL { + cd libdvbpsi-0.1.7 + make install +} + +TEST { + cd libdvbpsi-0.1.7 +# make test +# make check +} + +LICENSE="GNU GPL v2" +COPYRIGHT="2001-2009 VideoLAN" diff --git a/media-libs/libdvbpsi/patches/libdvbpsi-0.1.7.patch b/media-libs/libdvbpsi/patches/libdvbpsi-0.1.7.patch new file mode 100644 index 000000000..c700ea4e3 --- /dev/null +++ b/media-libs/libdvbpsi/patches/libdvbpsi-0.1.7.patch @@ -0,0 +1,30 @@ +diff -urN libdvbpsi-0.1.7/examples/decode_mpeg.c libdvbpsi-0.1.7-haiku/examples/decode_mpeg.c +--- libdvbpsi-0.1.7/examples/decode_mpeg.c 2010-02-12 10:17:47.066584576 +0000 ++++ libdvbpsi-0.1.7-haiku/examples/decode_mpeg.c 2010-12-16 09:59:32.000000000 +0000 +@@ -234,21 +234,21 @@ + #ifdef HAVE_GETTIMEOFDAY + static mtime_t report_PCRPacketTiming( int i_cc, ts_pid_t *ts_pid, + mtime_t i_prev_pcr, mtime_t time_prev, int32_t i_bytes ) ++{ ++ mtime_t time_current; ++ mtime_t tv_delta; ++ struct timeval tv; + #else + static void report_PCRPacketTiming( int i_cc, ts_pid_t *ts_pid, + mtime_t i_prev_pcr, int32_t i_bytes ) +-#endif + { ++#endif + mtime_t i_delta = 0; + + /* sequence number and program_id */ + printf( "%.2d %d ", i_cc, ts_pid->i_pid ); + + #ifdef HAVE_GETTIMEOFDAY +- mtime_t time_current; +- mtime_t tv_delta; +- struct timeval tv; +- + /* arrival time of packet */ + gettimeofday( &tv, NULL ); + time_current = ((mtime_t)tv.tv_sec*1000) + ((mtime_t)tv.tv_usec/1000);