summaryrefslogtreecommitdiffstats
path: root/meta/packages
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages')
-rw-r--r--meta/packages/libxslt/files/destdir.patch10
-rw-r--r--meta/packages/libxslt/libxslt_1.1.17.bb46
2 files changed, 56 insertions, 0 deletions
diff --git a/meta/packages/libxslt/files/destdir.patch b/meta/packages/libxslt/files/destdir.patch
new file mode 100644
index 0000000000..8df1b206bc
--- /dev/null
+++ b/meta/packages/libxslt/files/destdir.patch
@@ -0,0 +1,10 @@
1Index: libxslt-1.1.17/libxslt/Makefile.am
2===================================================================
3--- libxslt-1.1.17.orig/libxslt/Makefile.am 2005-10-02 11:25:21.000000000 +0200
4+++ libxslt-1.1.17/libxslt/Makefile.am 2006-09-29 23:13:35.000000000 +0200
5@@ -61,4 +61,4 @@
6 @(cd ../xsltproc ; $(MAKE))
7
8 install-exec-hook:
9- $(mkinstalldirs) "$(libdir)/libxslt-plugins"
10+ $(mkinstalldirs) "$(DESTDIR)$(libdir)/libxslt-plugins"
diff --git a/meta/packages/libxslt/libxslt_1.1.17.bb b/meta/packages/libxslt/libxslt_1.1.17.bb
new file mode 100644
index 0000000000..7abd2c30b6
--- /dev/null
+++ b/meta/packages/libxslt/libxslt_1.1.17.bb
@@ -0,0 +1,46 @@
1DESCRIPTION = "GNOME XSLT library"
2SECTION = "libs"
3PRIORITY = "optional"
4DEPENDS = "libxml2"
5LICENSE = "MIT"
6PR = "r2"
7
8SRC_URI = "ftp://xmlsoft.org/libxml2/libxslt-${PV}.tar.gz \
9 file://destdir.patch;patch=1"
10S = "${WORKDIR}/libxslt-${PV}"
11
12inherit autotools pkgconfig
13
14EXTRA_OECONF = "--without-python --without-debug --without-mem-debug --without-crypto"
15
16xsltheaders = "attributes.h documents.h extensions.h extra.h functions.h imports.h \
17 keys.h namespaces.h numbersInternals.h pattern.h preproc.h security.h \
18 templates.h transform.h variables.h xslt.h xsltInternals.h xsltconfig.h \
19 xsltexports.h xsltutils.h"
20exsltheaders = "exslt.h exsltconfig.h exsltexports.h"
21
22do_stage () {
23 oe_libinstall -C libxslt -so -a libxslt ${STAGING_LIBDIR}
24 oe_libinstall -C libexslt -so -a libexslt ${STAGING_LIBDIR}
25
26 mkdir -p ${STAGING_INCDIR}/libxslt
27 for i in ${xsltheaders}; do
28 install -m 0644 ${S}/libxslt/$i ${STAGING_INCDIR}/libxslt/$i
29 done
30 mkdir -p ${STAGING_INCDIR}/libexslt
31 for i in ${exsltheaders}; do
32 install -m 0644 ${S}/libexslt/$i ${STAGING_INCDIR}/libexslt/$i
33 done
34
35 cat xslt-config | sed -e "s,^prefix=.*,prefix=${STAGING_DIR}/${HOST_SYS}," \
36 -e "s,^exec_prefix=.*,exec_prefix=${STAGING_DIR}/${HOST_SYS}," \
37 -e "s,^includedir=.*,includedir=${STAGING_INCDIR}," \
38 -e "s,^libdir=.*,libdir=${STAGING_LIBDIR}," > ${STAGING_BINDIR_CROSS}/xslt-config
39 chmod a+rx ${STAGING_BINDIR_CROSS}/xslt-config
40 install -m 0644 libxslt.m4 ${STAGING_DATADIR}/aclocal/
41}
42
43PACKAGES = "${PN}-dbg ${PN}-dev ${PN}-utils ${PN} ${PN}-doc ${PN}-locale"
44
45FILES_${PN}-dev += "${bindir}/xslt-config"
46FILES_${PN}-utils += "${bindir}"