x264: converted recipe

This commit is contained in:
Jerome Duval
2014-06-13 20:49:59 +00:00
parent dfdaaca9d9
commit e6d610f9ef
2 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
From a31af43d0e8d602e467570de30b816b01f30bd40 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
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

View File

@@ -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
"