void-packages/srcpkgs/mxml/template
Jürgen Buchmüller b80fda9067 New package: zynaddsubfx-2.5.1
+ Add dependency mxml-2.9 (Minimal XML library)
2015-10-03 17:34:27 +02:00

37 lines
941 B
Bash

# Template file for 'mxml'
pkgname=mxml
version=2.9
revision=1
build_style=gnu-configure
configure_args="--enable-static --enable-shared"
short_desc="Minimal XML library"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
homepage="http://www.minixml.org/"
distfiles="http://www.msweet.org/files/project3/${pkgname}-${version}.tar.gz"
checksum=cded54653c584b24c4a78a7fa1b3b4377d49ac4f451ddf170ebbc8161d85ff92
pre_configure() {
# Disable testxml (fixes cross builds)
sed -i Makefile.in \
-e "s;testmxml mxml.xml;mxml.xml;"
if [ "$CROSS_BUILD" ]; then
# Disable generating mxml.xml
sed -i Makefile.in \
-e "/.*\.\/mxmldoc-static.*/d"
fi
}
do_install() {
make DSTROOT="${DESTDIR}" install
}
mxml-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}