38 lines
941 B
Bash
38 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
|
||
|
}
|
||
|
}
|