2012-02-23 05:08:21 +00:00
|
|
|
# Template build file for 'libnsgif'.
|
|
|
|
pkgname=libparserutils
|
|
|
|
version=0.1.1
|
2012-02-23 23:36:42 +00:00
|
|
|
revision=2
|
|
|
|
homepage="http://www.netsurf-browser.org"
|
|
|
|
distfiles="${homepage}/projects/releases/${pkgname}-${version}-src.tar.gz"
|
2012-02-23 05:08:21 +00:00
|
|
|
short_desc="Library for building efficient parsers, written in C."
|
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
|
|
|
checksum=8b79ba58d6fa63fa9c74b71482d93f2c5b2c22badac77265f3cc47f3f603f87d
|
2012-02-23 23:36:42 +00:00
|
|
|
license="MIT"
|
2012-02-23 05:08:21 +00:00
|
|
|
long_desc="
|
|
|
|
LibParserUtils is a library for building efficient parsers, written
|
|
|
|
in C. It was developed as part of the NetSurf project and is available
|
|
|
|
for use by other software under the MIT licence.
|
|
|
|
|
|
|
|
* Features
|
|
|
|
No mandatory dependencies (iconv() implementation optional for
|
|
|
|
enhanced charset support)
|
|
|
|
A number of built-in character set converters
|
|
|
|
Mapping of character set names to/from MIB enum values
|
|
|
|
UTF-8 and UTF-16 (host endian) support functions
|
|
|
|
Various simple data structures (resizeable buffer, stack, vector)
|
|
|
|
A UTF-8 input stream
|
|
|
|
Simple C API
|
|
|
|
Portable
|
|
|
|
Shared library"
|
|
|
|
|
|
|
|
subpackages="${pkgname}-devel"
|
|
|
|
|
|
|
|
Add_dependency build perl
|
|
|
|
|
|
|
|
do_build() {
|
2012-02-23 19:25:30 +00:00
|
|
|
make ${makejobs} COMPONENT_TYPE=lib-shared
|
|
|
|
make ${makejobs} COMPONENT_TYPE=lib-static
|
2012-02-23 05:08:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2012-02-23 19:25:30 +00:00
|
|
|
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:36:42 +00:00
|
|
|
|
|
|
|
vinstall "${wrksrc}/COPYING" 0644 "usr/share/license/${pkgname}"
|
2012-02-23 05:08:21 +00:00
|
|
|
}
|