diff --git a/media-libs/libmp4v2/libmp4v2-2.0.0.recipe b/media-libs/libmp4v2/libmp4v2-2.0.0.recipe new file mode 100644 index 000000000..aeac873c4 --- /dev/null +++ b/media-libs/libmp4v2/libmp4v2-2.0.0.recipe @@ -0,0 +1,69 @@ +DESCRIPTION="A library that provides functions to read, create, and modify mp4 files" +SUMMARY="A library that provides functions to read, create, and modify mp4 files" +HOMEPAGE="https://code.google.com/p/mp4v2/" +LICENSE="MPL v1.1" +COPYRIGHT="Kona Blend, Copyright (C) 2008." +SRC_URI="https://mp4v2.googlecode.com/files/mp4v2-2.0.0.tar.bz2" +CHECKSUM_MD5="c91f06711225b34b4c192c9114887b14" +REVISION="1" +ARCHITECTURES="!x86_gcc2 x86 ?x86_64" +SECONDARY_ARCHITECTURES="!x86_gcc2 x86" + +PATCHES="libmp4v2-${portVersion}.patch" + +PROVIDES=" + libmp4v2${secondaryArchSuffix} = $portVersion + lib:libmp4v2 + cmd:dvdcss_config + " + +REQUIRES=" + haiku${secondaryArchSuffix} >= $haikuVersion + " + +BUILD_REQUIRES=" + " + +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + cmd:gcc${secondaryArchSuffix} + cmd:ld${secondaryArchSuffix} + cmd:make + cmd:libtoolize + cmd:aclocal + cmd:autoconf + " + +SOURCE_DIR="mp4v2-${portVersion}" + +BUILD() +{ + libtoolize --force --copy --install + aclocal + autoconf + automake + runConfigure ./configure + make +} + +INSTALL() +{ + make install + + # prepare develop/lib + prepareInstalledDevelLibs libmp4v2 + fixPkgconfig + + packageEntries devel \ + $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + libmp4v2${secondaryArchSuffix}_devel = $portVersion + devel:libmp4v2${secondaryArchSuffix} = $portVersion + " +REQUIRES_devel=" + libmp4v2${secondaryArchSuffix} == $portVersion base + " diff --git a/media-libs/libmp4v2/patches/libmp4v2-2.0.0.patch b/media-libs/libmp4v2/patches/libmp4v2-2.0.0.patch new file mode 100644 index 000000000..978944e3e --- /dev/null +++ b/media-libs/libmp4v2/patches/libmp4v2-2.0.0.patch @@ -0,0 +1,80 @@ +diff -Naur mp4v2-2.0.0/configure.ac mp4v2-2.0.0-haiku/configure.ac +--- mp4v2-2.0.0/configure.ac 2012-05-20 17:11:55.039845888 -0500 ++++ mp4v2-2.0.0-haiku/configure.ac 2013-11-26 23:36:14.129761280 -0600 +@@ -4,23 +4,23 @@ + + m4_include([project/project.m4sugar]) + +-m4_define([SVNINFO],m4_esyscmd([LANG=en svn info 2>/dev/null])) +- +-changequote(<<,>>)dnl +- m4_define(<>,m4_bregexp(SVNINFO,<<^URL: *\(.+\)>>,<<\1>>)) +- m4_define(<>,m4_bregexp(PRJ_repo_url,<<\([^/]+\)$>>,<<\1>>)) +- m4_define(<>,m4_bregexp(SVNINFO,<<^Repository Root: *\(.+\)>>,<<\1>>)) +- m4_define(<>,m4_bregexp(SVNINFO,<<^Repository UUID: *\(.+\)>>,<<\1>>)) +- m4_define(<>,m4_bregexp(SVNINFO,<<^Last Changed Rev: *\(.+\)>>,<<\1>>)) +- m4_define(<>,m4_bregexp(SVNINFO,<<^Last Changed Date: *\(.+\)>>,<<\1>>)) +- m4_define(<>,ifelse(m4_bregexp(PRJ_repo_url,<>),<<-1>>,<>,<>)) +-changequote([,])dnl +- +-m4_define([PRJ_version_hex],m4_format([0x%04x%02x%02x],PRJ_version_major,PRJ_version_minor,PRJ_version_point)) +- +-m4_define([PRJ_version],ifelse( +- PRJ_repo_type,[stable],m4_format([%s],PRJ_repo_branch), +- m4_format([%s-r%d],PRJ_repo_branch,PRJ_repo_rev))) ++#m4_define([SVNINFO],m4_esyscmd([LANG=en svn info 2>/dev/null])) ++# ++#changequote(<<,>>)dnl ++# m4_define(<>,m4_bregexp(SVNINFO,<<^URL: *\(.+\)>>,<<\1>>)) ++# m4_define(<>,m4_bregexp(PRJ_repo_url,<<\([^/]+\)$>>,<<\1>>)) ++# m4_define(<>,m4_bregexp(SVNINFO,<<^Repository Root: *\(.+\)>>,<<\1>>)) ++# m4_define(<>,m4_bregexp(SVNINFO,<<^Repository UUID: *\(.+\)>>,<<\1>>)) ++# m4_define(<>,m4_bregexp(SVNINFO,<<^Last Changed Rev: *\(.+\)>>,<<\1>>)) ++# m4_define(<>,m4_bregexp(SVNINFO,<<^Last Changed Date: *\(.+\)>>,<<\1>>)) ++# m4_define(<>,ifelse(m4_bregexp(PRJ_repo_url,<>),<<-1>>,<>,<>)) ++#changequote([,])dnl ++# ++#m4_define([PRJ_version_hex],m4_format([0x%04x%02x%02x],PRJ_version_major,PRJ_version_minor,PRJ_version_point)) ++# ++#m4_define([PRJ_version],ifelse( ++# PRJ_repo_type,[stable],m4_format([%s],PRJ_repo_branch), ++# m4_format([%s-r%d],PRJ_repo_branch,PRJ_repo_rev))) + + ############################################################################### + # initialization +diff -Naur mp4v2-2.0.0/libplatform/platform_base.h mp4v2-2.0.0-haiku/libplatform/platform_base.h +--- mp4v2-2.0.0/libplatform/platform_base.h 2012-05-20 17:11:55.021495808 -0500 ++++ mp4v2-2.0.0-haiku/libplatform/platform_base.h 2013-11-26 23:49:07.969670656 -0600 +@@ -6,9 +6,7 @@ + #include + #include + #include +-#include + #include +-#include + #include + #include + #include +diff -Naur mp4v2-2.0.0/libutil/Utility.cpp mp4v2-2.0.0-haiku/libutil/Utility.cpp +--- mp4v2-2.0.0/libutil/Utility.cpp 2012-05-20 17:11:53.025690112 -0500 ++++ mp4v2-2.0.0-haiku/libutil/Utility.cpp 2013-11-26 23:36:33.651427840 -0600 +@@ -431,7 +431,6 @@ + << '\n' << setw(18) << "repository URL:" << MP4V2_PROJECT_repo_url + << '\n' << setw(18) << "repository root:" << MP4V2_PROJECT_repo_root + << '\n' << setw(18) << "repository UUID:" << MP4V2_PROJECT_repo_uuid +- << '\n' << setw(18) << "repository rev:" << MP4V2_PROJECT_repo_rev + << '\n' << setw(18) << "repository date:" << MP4V2_PROJECT_repo_date + << '\n' << setw(18) << "repository type:" << MP4V2_PROJECT_repo_type; + } +diff -Naur mp4v2-2.0.0/src/itmf/CoverArtBox.h mp4v2-2.0.0-haiku/src/itmf/CoverArtBox.h +--- mp4v2-2.0.0/src/itmf/CoverArtBox.h 2012-05-20 17:11:53.038797312 -0500 ++++ mp4v2-2.0.0-haiku/src/itmf/CoverArtBox.h 2013-11-26 23:49:50.736886784 -0600 +@@ -111,7 +111,7 @@ + /// + /// @return true on failure, false on success. + /// +- static bool remove( MP4FileHandle hFile, uint32_t index = numeric_limits::max() ); ++ static bool remove( MP4FileHandle hFile, uint32_t index = 2147483647); + }; + + ///////////////////////////////////////////////////////////////////////////////