void-packages/srcpkgs/x265/template
2018-05-28 11:08:24 +02:00

35 lines
889 B
Bash

# Template file for 'x265'
pkgname=x265
version=2.8
revision=2
build_wrksrc="source"
wrksrc="x265_${version}"
build_style=cmake
configure_args="-DENABLE_PIC=1"
hostmakedepends="yasm"
short_desc="Open Source H.265/HEVC video encoder"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="http://x265.org/"
distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz"
checksum=6e59f9afc0c2b87a46f98e33b5159d56ffb3558a49d8e3d79cb7fdc6b7aaa863
if [ "$CROSS_BUILD" ]; then
configure_args+=" -DCMAKE_SYSTEM_PROCESSOR=${CROSS_BUILD%-musl}"
fi
pre_configure() {
if [ "$CROSS_BUILD" ]; then
sed -i CMakeLists.txt -e "s; -mcpu=native;;"
fi
}
x265-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
}
}