44 lines
1.4 KiB
Bash
44 lines
1.4 KiB
Bash
# Template file for 'libmediainfo'
|
|
pkgname=libmediainfo
|
|
version=0.7.82
|
|
revision=1
|
|
short_desc="Shared library for mediainfo"
|
|
homepage="http://mediaarea.net/MediaInfo"
|
|
maintainer="Georg Schabel <gescha@posteo.de>"
|
|
license="BSD"
|
|
|
|
distfiles="https://mediaarea.net/download/source/${pkgname}/${version}/${pkgname}_${version}.tar.bz2"
|
|
checksum=9b5fb94f607d680ec90d728f547b20165d133263022da310d32b9abb7134fae4
|
|
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool pkg-config"
|
|
makedepends="libmms-devel libcurl-devel libzen-devel"
|
|
configure_args="--enable-shared --disable-static --with-libcurl --with-libmms"
|
|
create_wrksrc=yes
|
|
build_wrksrc="MediaInfoLib/Project/GNU/Library"
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
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
|
|
vlicense ${wrksrc}/MediaInfoLib/License.html
|
|
}
|
|
|
|
libmediainfo-devel_package() {
|
|
depends="${makedepends} libmediainfo>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|