55 lines
1.5 KiB
Bash
55 lines
1.5 KiB
Bash
# Template build file for 'libzen'.
|
|
pkgname=libzen
|
|
version=0.4.38
|
|
revision=1
|
|
short_desc="Shared library for libmediainfo and mediainfo"
|
|
homepage="http://mediaarea.net/MediaInfo"
|
|
maintainer="Georg Schabel <gescha@posteo.de>"
|
|
license="zlib"
|
|
|
|
distfiles="https://mediaarea.net/download/source/${pkgname}/${version}/${pkgname}_${version}.tar.gz"
|
|
checksum=ad98fccec235ed76a40e7da8856f0bcc9c8d07cafe4c3ce30c47407760add786
|
|
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool pkg-config"
|
|
configure_args="--enable-shared"
|
|
wrksrc=ZenLib
|
|
build_wrksrc="Project/GNU/Library"
|
|
|
|
do_patch() {
|
|
cd $wrksrc
|
|
patch -Np1 < $FILESDIR/proper-mt-fix.patch
|
|
}
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
do_install() {
|
|
make DESTDIR=${DESTDIR} install
|
|
install -dm 755 ${DESTDIR}/usr/include/ZenLib
|
|
install -m 644 ${wrksrc}/Source/ZenLib/*.h \
|
|
${DESTDIR}/usr/include/ZenLib
|
|
for i in HTTP_Client Format/Html Format/Http; do
|
|
install -dm0755 ${DESTDIR}/usr/include/ZenLib/$i
|
|
install -m0644 ${wrksrc}/Source/ZenLib/$i/*.h \
|
|
${DESTDIR}/usr/include/ZenLib/$i
|
|
done
|
|
install -dm 755 ${DESTDIR}/usr/lib/pkgconfig
|
|
install -m 644 libzen.pc ${DESTDIR}/usr/lib/pkgconfig
|
|
sed -i -e 's|Version: |Version: '$version'|g' \
|
|
${DESTDIR}/usr/lib/pkgconfig/libzen.pc
|
|
vlicense ${wrksrc}/License.txt
|
|
}
|
|
|
|
libzen-devel_package() {
|
|
depends="libzen>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/lib/*.la
|
|
vmove usr/lib/*.so
|
|
}
|
|
}
|