2012-02-23 21:10:37 +01:00
|
|
|
# Template build file for 'libdom'.
|
|
|
|
pkgname=libdom
|
2012-07-06 14:33:49 +02:00
|
|
|
_svnrev=13951
|
|
|
|
version=20120706.${_svnrev}
|
2012-06-03 09:08:53 +02:00
|
|
|
revision=1
|
2013-04-13 10:15:49 +02:00
|
|
|
hostmakedepends="pkg-config perl subversion"
|
|
|
|
makedepends="libxml2-devel libparserutils-devel libwapcaplet-devel libhubbub-devel"
|
2012-02-23 21:10:37 +01:00
|
|
|
short_desc="Implementation of the W3C DOM, written in C."
|
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
2012-02-24 00:50:17 +01:00
|
|
|
license="MIT"
|
2013-04-13 10:15:49 +02:00
|
|
|
homepage="http://www.netsurf-browser.org"
|
2012-02-23 21:10:37 +01:00
|
|
|
long_desc="
|
|
|
|
LibDOM is an implementation of the W3C DOM, written in C. It is
|
|
|
|
currently in development for use with NetSurf and is intended to
|
|
|
|
be suitable for use in other projects too. For further details,
|
|
|
|
see the readme."
|
|
|
|
|
|
|
|
do_fetch() {
|
|
|
|
local url="svn://svn.netsurf-browser.org/trunk/libdom"
|
2012-07-06 14:33:49 +02:00
|
|
|
msg_normal " Fetching source from $url (revision ${_svnrev}) ...\n"
|
|
|
|
svn checkout -r ${_svnrev} ${url} ${pkgname}-${version}
|
2012-02-23 21:10:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs} COMPONENT_TYPE=lib-shared
|
|
|
|
make ${makejobs} COMPONENT_TYPE=lib-static
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make ${makejobs} COMPONENT_TYPE=lib-shared \
|
|
|
|
PREFIX=/usr DESTDIR=${DESTDIR} install
|
|
|
|
make ${makejobs} COMPONENT_TYPE=lib-static \
|
|
|
|
PREFIX=/usr DESTDIR=${DESTDIR} install
|
2012-02-24 00:50:17 +01:00
|
|
|
|
|
|
|
vinstall "${wrksrc}/COPYING" 644 "usr/share/license/${pkgname}"
|
2012-02-23 21:10:37 +01:00
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
|
|
|
|
libdom-devel_package() {
|
|
|
|
depends="libdom>=${version}"
|
|
|
|
short_desc+=" -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
}
|
|
|
|
}
|