2012-02-23 06:08:21 +01:00
|
|
|
# Template build file for 'libnsgif'.
|
|
|
|
pkgname=libparserutils
|
|
|
|
version=0.1.1
|
2013-04-13 10:15:49 +02:00
|
|
|
revision=5
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="perl"
|
2012-02-23 06:08:21 +01:00
|
|
|
short_desc="Library for building efficient parsers, written in C."
|
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
2013-04-13 10:15:49 +02:00
|
|
|
homepage="http://www.netsurf-browser.org"
|
2012-02-24 00:36:42 +01:00
|
|
|
license="MIT"
|
2013-04-16 11:56:13 +02:00
|
|
|
distfiles="http://download.netsurf-browser.org/libs/releases/${pkgname}-${version}-src.tar.gz"
|
2013-04-13 10:15:49 +02:00
|
|
|
checksum=2d3f1887d3027b7df1fcacd5f74aba16d3c22a86c169816cd712857a1be0aaf3
|
2012-02-23 06:08:21 +01: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"
|
|
|
|
|
|
|
|
do_build() {
|
2012-02-23 20:25:30 +01:00
|
|
|
make ${makejobs} COMPONENT_TYPE=lib-shared
|
|
|
|
make ${makejobs} COMPONENT_TYPE=lib-static
|
2012-02-23 06:08:21 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2012-02-23 20:25:30 +01: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-24 00:36:42 +01:00
|
|
|
|
2012-07-06 15:23:17 +02:00
|
|
|
vinstall "${wrksrc}/COPYING" 0644 "usr/share/licenses/${pkgname}"
|
2012-02-23 06:08:21 +01:00
|
|
|
}
|
2013-04-13 10:15:49 +02:00
|
|
|
|
|
|
|
libparserutils-devel_package() {
|
|
|
|
depends="libparserutils>=${version}"
|
|
|
|
short_desc+=" -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libparserutils_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|