diff --git a/srcpkgs/libmp4v2-devel b/srcpkgs/libmp4v2-devel new file mode 120000 index 0000000000..2054914231 --- /dev/null +++ b/srcpkgs/libmp4v2-devel @@ -0,0 +1 @@ +libmp4v2 \ No newline at end of file diff --git a/srcpkgs/libmp4v2/depends b/srcpkgs/libmp4v2/depends new file mode 100644 index 0000000000..193fc43d2c --- /dev/null +++ b/srcpkgs/libmp4v2/depends @@ -0,0 +1,2 @@ +abi_depends=">=1.6.1" +api_depends="${abi_depends}" diff --git a/srcpkgs/libmp4v2/libmp4v2-devel.template b/srcpkgs/libmp4v2/libmp4v2-devel.template new file mode 100644 index 0000000000..badd9be4a7 --- /dev/null +++ b/srcpkgs/libmp4v2/libmp4v2-devel.template @@ -0,0 +1,17 @@ +# Template file for 'libmp4v2-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run libmp4v2 + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/libmp4v2/mpeg4ip.template b/srcpkgs/libmp4v2/mpeg4ip.template new file mode 100644 index 0000000000..690a994166 --- /dev/null +++ b/srcpkgs/libmp4v2/mpeg4ip.template @@ -0,0 +1,14 @@ +# Template file for 'mpeg4ip'. +# +short_desc="MPEG-4 tools from mpeg4ip" +long_desc="${long_desc} + + This package contains tools for processing MPEG-4 files." + +Add_dependency run libmp4v2 + +do_install() +{ + mkdir -p ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/bin ${DESTDIR}/usr +} diff --git a/srcpkgs/libmp4v2/patches/dup_strcasestr_proto.diff b/srcpkgs/libmp4v2/patches/dup_strcasestr_proto.diff new file mode 100644 index 0000000000..e369853b60 --- /dev/null +++ b/srcpkgs/libmp4v2/patches/dup_strcasestr_proto.diff @@ -0,0 +1,17 @@ +--- include/mpeg4ip.h.orig 2009-12-31 00:27:18.740337279 +0100 ++++ include/mpeg4ip.h 2009-12-31 00:27:45.859218323 +0100 +@@ -120,14 +120,6 @@ + #endif + #include + +-#ifdef __cplusplus +-extern "C" { +-#endif +-char *strcasestr(const char *haystack, const char *needle); +-#ifdef __cplusplus +-} +-#endif +- + #define OPEN_RDWR O_RDWR + #define OPEN_CREAT O_CREAT + #define OPEN_RDONLY O_RDONLY diff --git a/srcpkgs/libmp4v2/template b/srcpkgs/libmp4v2/template new file mode 100644 index 0000000000..7ffde51071 --- /dev/null +++ b/srcpkgs/libmp4v2/template @@ -0,0 +1,37 @@ +# Template file for 'libmp4v2' +pkgname=libmp4v2 +version=1.6.1 +wrksrc="mpeg4ip-${version}" +distfiles="http://repository.slacky.eu/slackware-12.1/multimedia/mpeg4ip/$version/src/mpeg4ip-$version.tar.gz" +build_style=custom-install +short_desc="MPEG-4 library from mpeg4ip" +maintainer="Juan RP " +checksum=7049793ab18efc7d36b0581ecf137b59b1d9e4cee1df20a4241ffd37ce510214 +long_desc=" + The MPEG4IP project provides a standards-based system for encoding, + streaming, and playing encoded audio, video and text. To achieve + this we've integrated a number of existing open source packages, + and created some original code to fill in the gaps." + +subpackages="$pkgname-devel mpeg4ip" +Add_dependency run glibc +Add_dependency run libstdc++ + +do_install() +{ + cd ${wrksrc} || return 1 + touch bootstrapped && echo "" > lib/rtp/configure && \ + echo "" > lib/SDLAudio/configure + ./configure --prefix=/usr USENASM=no || return 1 + for dir in lib/gnu lib/mp4av lib/mp4v2; do + cd ${wrksrc}/${dir} + make || return 1 + make DESTDIR=${DESTDIR} install || return 1 + done + cd ${wrksrc} + install -d ${DESTDIR}/usr/include + install -m644 include/mpeg4ip.h ${DESTDIR}/usr/include || return 1 + install -m644 include/mpeg4ip_version.h \ + ${DESTDIR}/usr/include || return 1 + install -m644 mpeg4ip_config.h ${DESTDIR}/usr/include || return 1 +} diff --git a/srcpkgs/mpeg4ip b/srcpkgs/mpeg4ip new file mode 120000 index 0000000000..2054914231 --- /dev/null +++ b/srcpkgs/mpeg4ip @@ -0,0 +1 @@ +libmp4v2 \ No newline at end of file