diff --git a/media-libs/libmpeg2/libmpeg2-0.5.1.recipe b/media-libs/libmpeg2/libmpeg2-0.5.1.recipe index b23630399..bef722e2f 100644 --- a/media-libs/libmpeg2/libmpeg2-0.5.1.recipe +++ b/media-libs/libmpeg2/libmpeg2-0.5.1.recipe @@ -1,27 +1,75 @@ DESCRIPTION="library for decoding mpeg-2 and mpeg-1 video" +SUMMARY="library for decoding mpeg-2 and mpeg-1 video" HOMEPAGE="http://www.libmpeg2.sourceforge.net" +LICENSE="GNU GPL v2" +COPYRIGHT=" + Copyright (C) 2000-2003 Michel Lespinasse + Copyright (C) 1999-2000 Aaron Holtzman + " SRC_URI="http://libmpeg2.sourceforge.net/files/libmpeg2-0.5.1.tar.gz" -REVISION="1" -STATUS_HAIKU="stable" -DEPEND="" CHECKSUM_MD5="0f92c7454e58379b4a5a378485bbd8ef" +REVISION="1" +ARCHITECTURES="x86_gcc2 ?x86 ?x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 ?x86" + +PROVIDES=" + libmpeg2${secondaryArchSuffix} = $portVersion + lib:libmpeg2 + cmd:mpeg2dec + cmd:corrupt_mpeg2 + cmd:extract_mpeg2 + " + +REQUIRES=" + haiku${secondaryArchSuffix} >= $haikuVersion + " + +BUILD_REQUIRES=" + " + +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + cmd:gcc + cmd:ld + cmd:make + cmd:libtoolize + cmd:aclocal + cmd:autoconf + " + +PATCHES="libmpeg2-${portVersion}.patch" + +SOURCE_DIR="libmpeg2-${portVersion}" + BUILD() { - cd libmpeg2-0.5.1 - rm aclocal.m4 - libtoolize --force --copy --install - aclocal -I m4 - autoconf - automake - ./configure --prefix=`finddir B_COMMON_DIRECTORY` - make + ./bootstrap + runConfigure ./configure --enable-shared --enable-static + make $jobArgs } INSTALL() { - cd libmpeg2-0.5.1 make install -} -LICENSE="GNU GPL v2" -#COPYRIGHT="" + # prepare develop/lib + prepareInstalledDevelLibs libmpeg2 libmpeg2convert + fixPkgconfig + + packageEntries devel \ + $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + libmpeg2${secondaryArchSuffix}_devel = $portVersion + devel:libmpeg2${secondaryArchSuffix} = $portVersion + devel:libmpeg2convert${secondaryArchSuffix} = $portVersion + " +REQUIRES_devel=" + libmpeg2${secondaryArchSuffix} == $portVersion base + " + + + diff --git a/media-libs/libmpeg2/patches/libmpeg2-0.5.1.patch b/media-libs/libmpeg2/patches/libmpeg2-0.5.1.patch new file mode 100644 index 000000000..25b641b42 --- /dev/null +++ b/media-libs/libmpeg2/patches/libmpeg2-0.5.1.patch @@ -0,0 +1,22 @@ +diff -Naur libmpeg2-0.5.1/bootstrap libmpeg2-0.5.1-haiku/bootstrap +--- libmpeg2-0.5.1/bootstrap 2008-07-16 18:47:58.024641536 -0500 ++++ libmpeg2-0.5.1-haiku/bootstrap 2013-11-26 21:51:26.839647232 -0600 +@@ -47,17 +47,7 @@ + done + + if test "${amvers}" = "no" && automake --version > /dev/null 2>&1; then +- amvers="`automake --version | sed -e '1s/[^0-9]*//' -e q`" +- if expr "$amvers" "<" "1.5" > /dev/null 2>&1; then +- amvers="no" +- else +- amvers="" +- fi +-fi +- +-if test "$amvers" = "no"; then +- echo "$0: you need automake version 1.5 or later" +- exit 1 ++ amvers="" + fi + + # Check for autoconf