36 lines
967 B
Bash
36 lines
967 B
Bash
# Template file for 'libmpeg2'
|
|
pkgname=libmpeg2
|
|
version=0.5.1
|
|
revision=10
|
|
build_style=gnu-configure
|
|
configure_args="--enable-shared"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libXext-devel libXv-devel SDL-devel"
|
|
short_desc="Library for decoding MPEG-2 and MPEG-1 video streams"
|
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
|
license="GPL-2"
|
|
homepage="http://libmpeg2.sourceforge.net/"
|
|
distfiles="http://libmpeg2.sourceforge.net/files/libmpeg2-${version}.tar.gz"
|
|
checksum=dee22e893cb5fc2b2b6ebd60b88478ab8556cb3b93f9a0d7ce8f3b61851871d4
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc|ppc-musl) CFLAGS+=" -mno-altivec" ;;
|
|
esac
|
|
|
|
libmpeg2-devel_package() {
|
|
depends="libmpeg2>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
mpeg2dec_package() {
|
|
short_desc="Simple libmpeg2 video decoder application"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share
|
|
}
|
|
}
|