void-packages/srcpkgs/x265/template

36 lines
882 B
Bash

# Template file for 'x265'
pkgname=x265
version=2.7
revision=1
build_style=cmake
build_wrksrc="source"
wrksrc="x265_${version}"
configure_args="-DENABLE_PIC=1"
hostmakedepends="yasm"
short_desc="Open Source H.265/HEVC video encoder"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://x265.org/"
license="GPL-2"
distfiles="https://bitbucket.org/multicoreware/x265/downloads/x265_${version}.tar.gz"
checksum=d5e75fa62ffe6ed49e691f8eb8ab8c1634ffcc0725dd553c6fdb4d5443b494a2
if [ -n "$CROSS_BUILD" ]; then
configure_args+=" -DCMAKE_SYSTEM_PROCESSOR=${CROSS_BUILD%-musl}"
fi
pre_configure() {
if [ -n "$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
}
}