1 # Template file for 'x264'
5 version="${_snap_date}.${_snap_rev}"
7 wrksrc="x264-snapshot-${_snap_date}-${_snap_rev}-stable"
8 hostmakedepends="nasm perl"
9 short_desc="Free library for encoding H264/AVC video streams"
10 maintainer="Juan RP <xtraeme@voidlinux.eu>"
11 homepage="http://www.videolan.org/developers/x264.html"
12 license="GPL-2.0-or-later"
13 distfiles="http://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${_snap_date}-${_snap_rev}-stable.tar.bz2"
14 checksum=56d4ced6395b8ba30d87498668b155f2529c2f1af9bd0aa9cb7685873c88ec9a
18 case "$XBPS_TARGET_MACHINE" in
19 armv5*|mips*) args+=" --disable-asm";;
20 aarch64*|armv[67]*) export AS=$CC;;
23 if [ "$CROSS_BUILD" ]; then
24 args+=" --host=$XBPS_CROSS_TRIPLET"
26 ./configure --prefix=/usr --disable-swscale --enable-static \
27 --enable-pic --enable-shared ${args}
34 make DESTDIR=${DESTDIR} \
35 bindir=/usr/bin libdir=/usr/lib includedir=/usr/include install
36 # Set version as x.x.0 in pkg-config file.
37 sed -i -e "s|0.142.x|0.142.0|" ${DESTDIR}/usr/lib/pkgconfig/x264.pc
40 x264-devel_package() {
41 depends="${sourcepkg}>=${version}_${revision}"
42 short_desc+=" - development files"
45 vmove usr/lib/pkgconfig