33 lines
813 B
Bash
33 lines
813 B
Bash
# Template file for 'x265'
|
|
pkgname=x265
|
|
version=2.9
|
|
revision=2
|
|
wrksrc="x265_${version}"
|
|
build_wrksrc=source
|
|
build_style=cmake
|
|
configure_args="-DENABLE_PIC=1"
|
|
hostmakedepends="yasm"
|
|
short_desc="Open Source H.265/HEVC video encoder"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="http://x265.org/"
|
|
distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz"
|
|
checksum=ebae687c84a39f54b995417c52a2fdde65a4e2e7ebac5730d251471304b91024
|
|
|
|
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/*.so"
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|