2015-05-06 05:22:54 +02:00
|
|
|
# Template file for 'libmediainfo'
|
|
|
|
|
|
|
|
pkgname=libmediainfo
|
|
|
|
version=0.7.73
|
|
|
|
revision=1
|
|
|
|
short_desc="Shared library for mediainfo"
|
|
|
|
homepage="http://mediaarea.net/MediaInfo"
|
|
|
|
maintainer="Georg Schabel <gescha@posteo.de>"
|
|
|
|
license="BSD"
|
|
|
|
|
|
|
|
distfiles="${SOURCEFORGE_SITE}/mediainfo/${pkgname}_${version}.tar.gz"
|
|
|
|
checksum=40fe04c2f959537aef6769c89d1b7a1dca242810937f59352e84bc8d1ac3b7a9
|
|
|
|
|
|
|
|
build_style=gnu-configure
|
|
|
|
hostmakedepends="automake libtool pkg-config"
|
|
|
|
makedepends="libmms-devel libcurl-devel libzen-devel"
|
|
|
|
configure_args="--prefix=/usr --enable-shared --disable-static
|
|
|
|
--with-libcurl --with-libmms"
|
|
|
|
create_wrksrc=yes
|
|
|
|
build_wrksrc="MediaInfoLib/Project/GNU/Library"
|
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2015-05-06 05:48:21 +02:00
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
for i in MediaInfo MediaInfoDLL; do
|
|
|
|
install -dm 755 ${DESTDIR}/usr/include/$i
|
|
|
|
install -m 644 ${wrksrc}/MediaInfoLib/Source/$i/*.h ${DESTDIR}/usr/include/$i
|
|
|
|
done
|
|
|
|
install -dm 755 ${DESTDIR}/usr/lib/pkgconfig
|
|
|
|
install -m 644 libmediainfo.pc ${DESTDIR}/usr/lib/pkgconfig
|
|
|
|
sed -i -e 's|Version: |Version: '$version'|g' ${DESTDIR}/usr/lib/pkgconfig/libmediainfo.pc
|
|
|
|
}
|
|
|
|
|
2015-05-06 05:22:54 +02:00
|
|
|
libmediainfo-devel_package() {
|
|
|
|
depends="libmediainfo>=${version}_${revision}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|