diff --git a/media-libs/libquicktime/libquicktime-1.2.4.recipe b/media-libs/libquicktime/libquicktime-1.2.4.recipe new file mode 100644 index 000000000..a4b72dcfe --- /dev/null +++ b/media-libs/libquicktime/libquicktime-1.2.4.recipe @@ -0,0 +1,111 @@ +SUMMARY="A library to handle Quicktime format files." +DESCRIPTION=" +libquicktime is a library for reading and writing quicktime files. It \ +is based on the quicktime4linux library, with the following \ +extensions: + + * Sourcetree upgraded with autoconf/automake/libtool and all the \ +other stuff, people like in "standard" linux libraries. + * All 3rd party libraries (jpeg, OggVorbis) were removed to reduce \ +download size, compilation time and code duplication on users harddisks. \ +Instead, the sytemwide installed libaries are autodetected by the \ +configure script. + * All codecs have been moved into dynamically loadable modules. \ +This makes it possible to distribute closed source codecs (or codecs \ +with an incompatible license) as separate packages. + * Unlike other quicktime libraries, we are source compatible with \ +quicktime4linux. Programs like cinelerra or xmovie can be compiled with \ +libquicktime (if the build system is modified, see our web page for more \ +info). + * The codecs themselves are also source compatible with \ +quicktime4linux, so porting codecs between quicktime4linux and \ +libquicktime requires only little brain load. + * Special API extensions allow access to the codec registry. \ +Applications can get important information about the codecs, their \ +settable parameters etc. at runtime. +" +HOMEPAGE="http://libquicktime.sourceforge.net" +COPYRIGHT=" + 2002 Heroine Virtual Ltd. + 2002-2007 Members of the libquicktime project. +" +LICENSE="GNU LGPL v2.1" +SRC_URI="http://sourceforge.net/projects/libquicktime/files/libquicktime/$portVersion/libquicktime-$portVersion.tar.gz" +CHECKSUM_SHA256="1c53359c33b31347b4d7b00d3611463fe5e942cae3ec0fefe0d2fd413fd47368" +REVISION="1" +ARCHITECTURES="?x86_gcc2 x86 ?x86_64" +SECONDARY_ARCHITECTURES="?x86_gcc2 x86" + +PATCHES="libquicktime-$portVersion.patchset" + +PROVIDES=" + libquicktime$secondaryArchSuffix = $portVersion compat >= 1.2 + lib:libquicktime$secondaryArchSuffix = 0.0.0 compat >= 0 + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libpng15$secondaryArchSuffix + lib:libjpeg$secondaryArchSuffix + lib:libvorbis$secondaryArchSuffix + lib:libogg$secondaryArchSuffix + lib:libdv$secondaryArchSuffix + lib:libmp3lame$secondaryArchSuffix + lib:libfaad$secondaryArchSuffix + lib:libiconv$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libpng15$secondaryArchSuffix + devel:libjpeg$secondaryArchSuffix + devel:libvorbis$secondaryArchSuffix + devel:libogg$secondaryArchSuffix + devel:libdv$secondaryArchSuffix + devel:libmp3lame$secondaryArchSuffix + devel:libfaad$secondaryArchSuffix + devel:libiconv$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize + cmd:make + cmd:pkg_config + cmd:gettext + " + +BUILD() +{ + aclocal + libtoolize --force --copy --install + ./autogen.sh + runConfigure ./configure --without-doxygen \ + --with-libdv + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libquicktime + fixPkgconfig + + # devel package + packageEntries devel \ + $developDir +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + libquicktime${secondaryArchSuffix}_devel = $portVersion compat >= 1.2 + devel:libquicktime$secondaryArchSuffix = 0.0.0 compat >= 0 + " +REQUIRES_devel=" + libquicktime$secondaryArchSuffix == $portVersion base + " diff --git a/media-libs/libquicktime/patches/libquicktime-1.2.4.patchset b/media-libs/libquicktime/patches/libquicktime-1.2.4.patchset new file mode 100644 index 000000000..a153a4991 --- /dev/null +++ b/media-libs/libquicktime/patches/libquicktime-1.2.4.patchset @@ -0,0 +1,65 @@ +From 8d52abdda6bcd2f979d70a27524403812889f2a2 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Thu, 12 Jun 2014 17:58:08 +0000 +Subject: Haiku patch + + +diff --git a/configure.ac b/configure.ac +index da1dabc..4718ef2 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -9,7 +9,7 @@ LQT_VERSION_MICRO=`echo $VERSION | cut -d . -f 3 | cut -d p -f 1` + + USER_CFLAGS=$CFLAGS + +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADERS(config.h) + + AC_CANONICAL_HOST + AM_MAINTAINER_MODE +@@ -242,9 +242,9 @@ OLD_CFLAGS=$CFLAGS + OLD_LIBS=$LIBS + + if test x$have_vorbis = xtrue; then +-LIBS="$LIBS -lmp3lame -lvorbis -lm" ++LIBS="$LIBS -lmp3lame -lvorbis" + else +-LIBS="$LIBS -lmp3lame -lm" ++LIBS="$LIBS -lmp3lame" + fi + + dnl CFLAGS="$CFLAGS" +@@ -664,7 +664,7 @@ if test "x$with_faac" != "xno"; then + OLD_CFLAGS=$CFLAGS + OLD_LIBS=$LIBS + +-LIBS="$LIBS -lfaac -lm" ++LIBS="$LIBS -lfaac" + CFLAGS="$CFLAGS" + + AC_MSG_CHECKING(for faac) +@@ -732,7 +732,7 @@ OLD_CFLAGS=$CFLAGS + OLD_LIBS=$LIBS + + CFLAGS="$CFLAGS" +-LIBS="$LIBS -lfaad -lm" ++LIBS="$LIBS -lfaad" + + AC_MSG_CHECKING(for neaacdec.h usability for faad2) + +diff --git a/m4/vorbis.m4 b/m4/vorbis.m4 +index 300cc6c..5a28b34 100644 +--- a/m4/vorbis.m4 ++++ b/m4/vorbis.m4 +@@ -23,7 +23,7 @@ AC_ARG_ENABLE(vorbistest, [ --disable-vorbistest Do not try to compile an + VORBIS_LIBS="-L$prefix/lib" + fi + +- VORBIS_LIBS="$VORBIS_LIBS -lvorbis -lm" ++ VORBIS_LIBS="$VORBIS_LIBS -lvorbis" + VORBISFILE_LIBS="-lvorbisfile" + VORBISENC_LIBS="-lvorbisenc" + +-- +1.8.3.4 +