summaryrefslogtreecommitdiff
path: root/recipes/opensp/opensp_1.5.bb
blob: 839fde5b8aa688d0a19228a9ccf86931a3151bc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
DESCRIPTION = "OpenSP is a library and a set of tools \
for validating, parsing, and manipulating SGML and \
XML documents."
HOMEPAGE = "http://openjade.sourceforge.net/"
SECTION = "libs"
LICENSE = "MIT"
PR = "r2"

# sh4/gcc3.4.4 with -O2 triggers internal compiler errors
FULL_OPTIMIZATION_sh4 = "-O1"

SRC_URI = "${SOURCEFORGE_MIRROR}/openjade/OpenSP-${PV}.tar.gz \
           file://m4.patch;patch=1 \
           file://attributevalue.patch;patch=1 \
           file://rangmap-fix.patch;patch=1 \
           file://fix-docdir.patch;patch=1"

S = "${WORKDIR}/OpenSP-${PV}"

inherit autotools

do_stage () {
        oe_libinstall -a -so -C lib libosp ${STAGING_LIBDIR}
        install -d ${STAGING_INCDIR}/OpenSP
        install -m 0644 ${S}/include/*.h ${STAGING_INCDIR}/OpenSP/
        install -m 0644 ${S}/include/*.cxx ${STAGING_INCDIR}/OpenSP/
        install -m 0644 ${S}/config.h ${STAGING_INCDIR}/OpenSP/config.h
}

FILES_${PN} += "${datadir}/OpenSP"