2012-02-23 19:44:52 +00:00
|
|
|
# Template build file for 'libcss'.
|
|
|
|
pkgname=libcss
|
2012-05-19 20:40:41 +00:00
|
|
|
version=0.1.2
|
2013-04-13 08:15:49 +00:00
|
|
|
revision=2
|
|
|
|
hostmakedepends="pkg-config perl"
|
|
|
|
makedepends="libparserutils-devel libwapcaplet-devel"
|
2012-02-23 19:44:52 +00:00
|
|
|
short_desc="CSS parser and selection engine, written in C."
|
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
2012-02-23 23:40:36 +00:00
|
|
|
license="MIT"
|
2013-04-13 08:15:49 +00:00
|
|
|
homepage="http://www.netsurf-browser.org"
|
2013-04-16 09:58:53 +00:00
|
|
|
distfiles="http://download.netsurf-browser.org/libs/releases/${pkgname}-${version}-src.tar.gz"
|
2013-04-13 08:15:49 +00:00
|
|
|
checksum=92c112a059bc5ae490392439401005b47ca5c270f891f6317b64aac738ae1f5e
|
2012-02-23 19:44:52 +00:00
|
|
|
long_desc="
|
|
|
|
LibCSS is a CSS (Cascading Style Sheet) parser and selection engine,
|
|
|
|
written in C. It was developed as part of the NetSurf project and is
|
|
|
|
available for use by other software under the MIT licence. For further
|
|
|
|
details, see the readme.
|
|
|
|
|
|
|
|
* Features
|
|
|
|
Parses CSS, good and bad
|
|
|
|
Simple C API
|
|
|
|
Low memory usage
|
|
|
|
Fast selection engine
|
|
|
|
Portable
|
|
|
|
Shared library"
|
|
|
|
|
|
|
|
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-23 23:40:36 +00:00
|
|
|
|
|
|
|
vinstall "${wrksrc}/COPYING" 0644 "usr/share/licenses/${pkgname}"
|
2012-02-23 19:44:52 +00:00
|
|
|
}
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
libcss-devel_package() {
|
|
|
|
depends="libcss>=${version}"
|
|
|
|
short_desc+=" -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
}
|
|
|
|
}
|