From e6d610f9ef3de0db02ad4e751d16c26238c666ec Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Fri, 13 Jun 2014 20:49:59 +0000 Subject: [PATCH] x264: converted recipe --- .../x264/patches/x264-20140308.patchset | 23 +++++++ media-libs/x264/x264-20140308.recipe | 67 +++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 media-libs/x264/patches/x264-20140308.patchset create mode 100644 media-libs/x264/x264-20140308.recipe diff --git a/media-libs/x264/patches/x264-20140308.patchset b/media-libs/x264/patches/x264-20140308.patchset new file mode 100644 index 000000000..1acbed1f1 --- /dev/null +++ b/media-libs/x264/patches/x264-20140308.patchset @@ -0,0 +1,23 @@ +From a31af43d0e8d602e467570de30b816b01f30bd40 Mon Sep 17 00:00:00 2001 +From: Jerome Duval +Date: Fri, 13 Jun 2014 19:56:27 +0000 +Subject: Haiku patch + + +diff --git a/configure b/configure +index 0177cfc..d1a118f 100755 +--- a/configure ++++ b/configure +@@ -550,6 +550,9 @@ case $host_os in + HAVE_GETOPT_LONG=0 + CFLAGS="$CFLAGS -I\$(SRCPATH)/extras" + ;; ++ *haiku*) ++ SYS="haiku" ++ ;; + *) + die "Unknown system $host, edit the configure" + ;; +-- +1.8.3.4 + diff --git a/media-libs/x264/x264-20140308.recipe b/media-libs/x264/x264-20140308.recipe new file mode 100644 index 000000000..6d5fcdc7d --- /dev/null +++ b/media-libs/x264/x264-20140308.recipe @@ -0,0 +1,67 @@ +SUMMARY="x264 h.264/AVC encoder" +DESCRIPTION=" +x264 is a h.264/AVC encoder library. +" +HOMEPAGE="http://www.videolan.org/developers/x264.html" +COPYRIGHT=" + 2003-2012 http://www.videolan.org/developers/x264.html + " +LICENSE="GNU GPL v2" +SRC_URI="http://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20140308-2245.tar.bz2" +CHECKSUM_SHA256="b179cb1e1d4f51418d292011a7494d5b62145571c05c22007f28d8fd89d2ebbe" +REVISION="1" +ARCHITECTURES="?x86_gcc2 x86 !x86_64" +SECONDARY_ARCHITECTURES="?x86_gcc2 ?x86" + +PATCHES="x264-$portVersion.patchset" + +PROVIDES=" + x264$secondaryArchSuffix = $portVersion compat >= 20140308 + lib:libx264$secondaryArchSuffix = 142 compat >= 142 + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtoolize + cmd:make + cmd:yasm >= 1.2.0 + " + +SOURCE_DIR="x264-snapshot-20140308-2245" + +BUILD() +{ + CFLAGS="-fPIC" runConfigure --omit-dirs \ + "manDir oldIncludeDir sbinDir localStateDir sharedStateDir sysconfDir infoDir dataDir dataRootDir libExecDir docDir" \ + --omit-buildspec ./configure --enable-pic --enable-shared + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libx264 + + # devel package + packageEntries devel \ + $developDir + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + x264${secondaryArchSuffix}_devel = $portVersion compat >= 20140308 + devel:libx264$secondaryArchSuffix = 142 compat >= 142 + " +REQUIRES_devel=" + x264$secondaryArchSuffix == $portVersion base + "