libmpeg2: cross build support.

This commit is contained in:
Juan RP 2013-12-18 13:20:37 +01:00
parent ec95b1162b
commit 4b30fd3848
1 changed files with 10 additions and 13 deletions

View File

@ -1,10 +1,10 @@
# Template file for 'libmpeg2'
pkgname=libmpeg2
version=0.5.1
revision=7
revision=8
build_style=gnu-configure
configure_args="--enable-shared"
hostmakedepends="pkg-config"
hostmakedepends="pkg-config SDL-devel"
makedepends="libX11-devel libXext-devel libXv-devel SDL-devel"
short_desc="Library for decoding MPEG-2 and MPEG-1 video streams"
homepage="http://libmpeg2.sourceforge.net/"
@ -12,23 +12,15 @@ license="GPL-2"
maintainer="Juan RP <xtraeme@gmail.com>"
distfiles="http://libmpeg2.sourceforge.net/files/$pkgname-$version.tar.gz"
checksum=dee22e893cb5fc2b2b6ebd60b88478ab8556cb3b93f9a0d7ce8f3b61851871d4
long_desc="
libmpeg2 is a free library for decoding MPEG-2 and MPEG-1 video
streams acclaimed to be the fastest around."
libmpeg2-devel_package() {
depends="libXext-devel libXv-devel SDL-devel libmpeg2>=${version}"
short_desc+=" -- development files"
depends="libmpeg2>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
}
}
libmpeg2_package() {
pkg_install() {
vmove "usr/lib/*.so*"
vmove "usr/lib/*.so"
}
}
@ -40,3 +32,8 @@ mpeg2dec_package() {
}
}
libmpeg2_package() {
pkg_install() {
vmove all
}
}