mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 20:07:14 +08:00
41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/libmpeg2
|
|
|
|
pkgname=libmpeg2
|
|
pkgver=0.5.1
|
|
pkgrel=4
|
|
pkgdesc="libmpeg2 is a library for decoding MPEG-1 and MPEG-2 video streams."
|
|
arch=('x86_64')
|
|
url="http://libmpeg2.sourceforge.net/"
|
|
depends=('glibc')
|
|
makedepends=('sdl' 'libxv' 'libsm')
|
|
optdepends=('sdl: required for mpeg2dec'
|
|
'libsm: required for mpeg2dec'
|
|
'libxv: required for mpeg2dec')
|
|
license=('GPL2')
|
|
provides=('mpeg2dec')
|
|
source=("http://libmpeg2.sourceforge.net/files/${pkgname}-${pkgver}.tar.gz"
|
|
'gcc4.6.patch')
|
|
md5sums=('0f92c7454e58379b4a5a378485bbd8ef'
|
|
'ff73b3f77870baf8de69441f34b88fa5')
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
patch -Np1 -i "${srcdir}/gcc4.6.patch"
|
|
|
|
sed '/AC_PATH_XTRA/d' -i configure.ac
|
|
autoreconf --force --install
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure --prefix=/usr --enable-shared --disable-static
|
|
make OPT_CFLAGS="${CFLAGS}" \
|
|
MPEG2DEC_CFLAGS="${CFLAGS}" \
|
|
LIBMPEG2_CFLAGS=""
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|