mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
65 lines
1.6 KiB
Bash
65 lines
1.6 KiB
Bash
SUMMARY="An encoder for x264 h.264/AVC"
|
|
DESCRIPTION="x264 is a h.264/AVC encoder library."
|
|
HOMEPAGE="https://www.videolan.org/developers/x264.html"
|
|
COPYRIGHT="2003-2017 VideoLan.org"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-$portVersion-2245.tar.bz2"
|
|
CHECKSUM_SHA256="f5cd230cde94e13f0f09975b0eb02419ccf5325185d30b483c672866c24a7644"
|
|
SOURCE_DIR="x264-snapshot-$portVersion-2245"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
x264$secondaryArchSuffix = $portVersion compat >= 20140308
|
|
cmd:x264$secondaryArchSuffix
|
|
lib:libx264$secondaryArchSuffix = 148 compat >= 148
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
x264${secondaryArchSuffix}_devel = $portVersion compat >= 20140308
|
|
devel:libx264$secondaryArchSuffix = 148 compat >= 148
|
|
"
|
|
REQUIRES_devel="
|
|
x264$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:yasm >= 1.2.0
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
CFLAGS="-fPIC" runConfigure --omit-dirs \
|
|
"manDir oldIncludeDir sbinDir localStateDir sharedStateDir sysconfDir infoDir dataDir dataRootDir libExecDir docDir" \
|
|
--omit-buildspec ./configure --enable-pic --enable-shared \
|
|
--extra-ldflags='-Wl,-Bsymbolic'
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
prepareInstalledDevelLibs libx264
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|