2016-07-23 19:55:15 +02:00
|
|
|
# Maintainer: Karl-Felix Glatzer <karl.glatzer@gmx.de>
|
|
|
|
|
|
|
|
# This version includes the programs and enables Windows XP support
|
|
|
|
# in contrast to the version found in the AUR.
|
|
|
|
|
2016-01-04 03:05:56 +01:00
|
|
|
pkgname=mingw-w64-x265
|
2016-07-23 19:55:15 +02:00
|
|
|
pkgver=2.0
|
|
|
|
pkgrel=1
|
2016-01-04 03:05:56 +01:00
|
|
|
pkgdesc='Open Source H265/HEVC video encoder (mingw-w64)'
|
|
|
|
arch=('any')
|
|
|
|
url='https://bitbucket.org/multicoreware/x265'
|
|
|
|
license=('GPL')
|
|
|
|
depends=('mingw-w64-crt')
|
|
|
|
options=(!strip !buildflags staticlibs)
|
|
|
|
makedepends=('mingw-w64-gcc' 'yasm' 'mingw-w64-cmake' 'mingw-w64-pkg-config')
|
|
|
|
source=("https://bitbucket.org/multicoreware/x265/downloads/x265_${pkgver}.tar.gz"
|
|
|
|
mingw.patch)
|
2016-07-23 19:55:15 +02:00
|
|
|
md5sums=('a4f16c0f054f002d6d8c9c6f7fb03026'
|
2016-01-04 03:05:56 +01:00
|
|
|
'd1f6263ad2f345673a8b0ece73f68338')
|
|
|
|
_architectures="i686-w64-mingw32 x86_64-w64-mingw32"
|
|
|
|
|
|
|
|
prepare() {
|
2016-07-23 19:55:15 +02:00
|
|
|
cd "${srcdir}/x265_${pkgver}"
|
2016-01-04 03:05:56 +01:00
|
|
|
patch -Np1 -i "${srcdir}/mingw.patch"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
mkdir -p "${srcdir}"/build-${_arch} && cd "${srcdir}"/build-${_arch}
|
|
|
|
unset LDFLAGS CPPFLAGS
|
|
|
|
${_arch}-cmake -G "Unix Makefiles" \
|
|
|
|
-DENABLE_SHARED='TRUE' \
|
|
|
|
-DENABLE_CLI='TRUE' \
|
|
|
|
-DWINXP_SUPPORT:BOOL='TRUE' \
|
2016-07-23 19:55:15 +02:00
|
|
|
"${srcdir}"/x265_${pkgver}/source
|
2016-01-04 03:05:56 +01:00
|
|
|
make
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
for _arch in ${_architectures}; do
|
|
|
|
cd "${srcdir}"/build-${_arch}
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
${_arch}-strip --strip-all "${pkgdir}"/usr/${_arch}/bin/*.exe
|
|
|
|
${_arch}-strip --strip-unneeded "${pkgdir}"/usr/${_arch}/bin/*.dll
|
|
|
|
${_arch}-strip -g "${pkgdir}"/usr/${_arch}/lib/*.a
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|