void-packages/srcpkgs/x264/template

48 lines
1.3 KiB
Plaintext
Raw Normal View History

# Template file for 'x264'
pkgname=x264
_snap_date=20131007
_snap_rev=2245
version="${_snap_date}.${_snap_rev}"
2014-04-05 01:26:16 +02:00
revision=3
wrksrc="x264-snapshot-${_snap_date}-${_snap_rev}-stable"
2013-03-24 16:26:55 +01:00
hostmakedepends="yasm"
short_desc="Free library for encoding H264/AVC video streams"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.videolan.org/developers/x264.html"
license="GPL-2"
distfiles="http://download.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-${_snap_date}-${_snap_rev}-stable.tar.bz2"
checksum=15267912eef265d974f41f4ea09795503adc26dc190a2d437799ca043bb8e2b4
do_configure() {
2013-03-24 16:26:55 +01:00
if [ "$XBPS_TARGET_MACHINE" != "i686" -o "$XBPS_TARGET_MACHINE" != "x86_64" ]; then
args+=" --disable-asm"
2013-03-24 16:26:55 +01:00
fi
if [ "$CROSS_BUILD" ]; then
args+=" --host=$XBPS_CROSS_TRIPLET"
2013-03-24 16:26:55 +01:00
fi
./configure --prefix=/usr --disable-swscale --enable-static \
--enable-pic --enable-shared --disable-opencl ${args}
}
do_build() {
make ${makejobs}
}
do_install() {
make DESTDIR=${DESTDIR} \
bindir=/usr/bin libdir=/usr/lib includedir=/usr/include install
# Set version as x.x.0 in pkg-config file.
2013-10-08 09:45:08 +02:00
sed -i -e "s|0.136.x|0.136.0|" ${DESTDIR}/usr/lib/pkgconfig/x264.pc
}
x264-devel_package() {
depends="x264>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}