From 67cf4ba72c0250543f7fae9eaf3fa1012bf5a62a Mon Sep 17 00:00:00 2001 From: Jose V Beneyto Date: Wed, 16 Dec 2009 17:12:44 +0100 Subject: [PATCH] libxslt: initial import (fixed compilation with my own patch file) --- libxslt/.footprint | 53 +++++++++++++++++++ libxslt/.md5sum | 2 + libxslt/Pkgfile | 37 +++++++++++++ .../libxslt-1.1.26.cross_compilation.patch | 39 ++++++++++++++ 4 files changed, 131 insertions(+) create mode 100644 libxslt/.footprint create mode 100644 libxslt/.md5sum create mode 100644 libxslt/Pkgfile create mode 100644 libxslt/libxslt-1.1.26.cross_compilation.patch diff --git a/libxslt/.footprint b/libxslt/.footprint new file mode 100644 index 0000000..d25a8d4 --- /dev/null +++ b/libxslt/.footprint @@ -0,0 +1,53 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/xslt-config +-rwxr-xr-x root/root usr/bin/xsltproc +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/libexslt/ +-rw-r--r-- root/root usr/include/libexslt/exslt.h +-rw-r--r-- root/root usr/include/libexslt/exsltconfig.h +-rw-r--r-- root/root usr/include/libexslt/exsltexports.h +drwxr-xr-x root/root usr/include/libxslt/ +-rw-r--r-- root/root usr/include/libxslt/attributes.h +-rw-r--r-- root/root usr/include/libxslt/documents.h +-rw-r--r-- root/root usr/include/libxslt/extensions.h +-rw-r--r-- root/root usr/include/libxslt/extra.h +-rw-r--r-- root/root usr/include/libxslt/functions.h +-rw-r--r-- root/root usr/include/libxslt/imports.h +-rw-r--r-- root/root usr/include/libxslt/keys.h +-rw-r--r-- root/root usr/include/libxslt/namespaces.h +-rw-r--r-- root/root usr/include/libxslt/numbersInternals.h +-rw-r--r-- root/root usr/include/libxslt/pattern.h +-rw-r--r-- root/root usr/include/libxslt/preproc.h +-rw-r--r-- root/root usr/include/libxslt/security.h +-rw-r--r-- root/root usr/include/libxslt/templates.h +-rw-r--r-- root/root usr/include/libxslt/transform.h +-rw-r--r-- root/root usr/include/libxslt/variables.h +-rw-r--r-- root/root usr/include/libxslt/xslt.h +-rw-r--r-- root/root usr/include/libxslt/xsltInternals.h +-rw-r--r-- root/root usr/include/libxslt/xsltconfig.h +-rw-r--r-- root/root usr/include/libxslt/xsltexports.h +-rw-r--r-- root/root usr/include/libxslt/xsltlocale.h +-rw-r--r-- root/root usr/include/libxslt/xsltutils.h +drwxr-xr-x root/root usr/lib/ +-rw-r--r-- root/root usr/lib/libexslt.a +-rwxr-xr-x root/root usr/lib/libexslt.la +lrwxrwxrwx root/root usr/lib/libexslt.so -> libexslt.so.0.8.15 +lrwxrwxrwx root/root usr/lib/libexslt.so.0 -> libexslt.so.0.8.15 +-rwxr-xr-x root/root usr/lib/libexslt.so.0.8.15 +drwxr-xr-x root/root usr/lib/libxslt-plugins/ +-rw-r--r-- root/root usr/lib/libxslt.a +-rwxr-xr-x root/root usr/lib/libxslt.la +lrwxrwxrwx root/root usr/lib/libxslt.so -> libxslt.so.1.1.26 +lrwxrwxrwx root/root usr/lib/libxslt.so.1 -> libxslt.so.1.1.26 +-rwxr-xr-x root/root usr/lib/libxslt.so.1.1.26 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/libexslt.pc +-rw-r--r-- root/root usr/lib/pkgconfig/libxslt.pc +-rw-r--r-- root/root usr/lib/xsltConf.sh +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/xsltproc.1.gz +drwxr-xr-x root/root usr/man/man3/ +-rw-r--r-- root/root usr/man/man3/libexslt.3.gz +-rw-r--r-- root/root usr/man/man3/libxslt.3.gz diff --git a/libxslt/.md5sum b/libxslt/.md5sum new file mode 100644 index 0000000..4104ca1 --- /dev/null +++ b/libxslt/.md5sum @@ -0,0 +1,2 @@ +a120098141e4650a2f7a82499d52cc6c libxslt-1.1.26.cross_compilation.patch +e61d0364a30146aaa3001296f853b2b9 libxslt-1.1.26.tar.gz diff --git a/libxslt/Pkgfile b/libxslt/Pkgfile new file mode 100644 index 0000000..09df54e --- /dev/null +++ b/libxslt/Pkgfile @@ -0,0 +1,37 @@ +# Description: XSL Transformations library +# URL: http://xmlsoft.org/XSLT/ +# Maintainer: Tilman Sauerbeck, tilman at crux dot nu +# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org +# Depends on: libxml2 + +name=libxslt +version=1.1.26 +release=1 +source=(ftp://xmlsoft.org/libxml2/$name-$version.tar.gz \ + $name-$version.cross_compilation.patch) + +build() { + cd $name-$version + patch -p1 -i $SRC/$name-$version.cross_compilation.patch + + ./configure --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --mandir=/usr/man \ + --without-debug \ + --without-crypto \ + --without-python \ + --with-libxml-src="$CLFS/usr" + + make + make DESTDIR=$PKG install + + rm -rf $PKG/usr/doc $PKG/usr/share + + # move manpages + if [ -e $PKG/usr/man/man4/libxslt.4 ]; then + cd $PKG/usr/man && \ + mkdir man3 && \ + mv man4/libxslt.4 man3/libxslt.3 + fi +} diff --git a/libxslt/libxslt-1.1.26.cross_compilation.patch b/libxslt/libxslt-1.1.26.cross_compilation.patch new file mode 100644 index 0000000..c7c91ab --- /dev/null +++ b/libxslt/libxslt-1.1.26.cross_compilation.patch @@ -0,0 +1,39 @@ +diff -purN libxslt-1.1.26.orig/configure libxslt-1.1.26/configure +--- libxslt-1.1.26.orig/configure 2009-12-16 16:50:48.000000000 +0100 ++++ libxslt-1.1.26/configure 2009-12-16 17:07:50.000000000 +0100 +@@ -15860,32 +15860,9 @@ $as_echo "$as_me: error: libxml source d + fi + fi + +- +-if ${XML_CONFIG} --libs print > /dev/null 2>&1 +-then +- XMLVERS=`$XML_CONFIG --version` +- if test `echo $XMLVERS | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` -ge `echo $LIBXML_REQUIRED_VERSION | sed -e 's/libxml //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'` +- then +- LIBXML_LIBS="$LIBXML_LIBS `$XML_CONFIG --libs`" +- LIBXML_CFLAGS="$LIBXML_CFLAGS `$XML_CONFIG --cflags`" +- { $as_echo "$as_me:$LINENO: result: $XMLVERS found" >&5 +-$as_echo "$XMLVERS found" >&6; } +- else +- { { $as_echo "$as_me:$LINENO: error: Version $XMLVERS found. You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of libxslt" >&5 +-$as_echo "$as_me: error: Version $XMLVERS found. You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of libxslt" >&2;} +- { (exit 1); exit 1; }; } +- fi +-else +- { { $as_echo "$as_me:$LINENO: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/." >&5 +-$as_echo "$as_me: error: Could not find libxml2 anywhere, check ftp://xmlsoft.org/." >&2;} +- { (exit 1); exit 1; }; } +-fi +- +- +- +- +- +- ++XMLVERS=`$XML_CONFIG --version` ++LIBXML_LIBS="-L${SRC_DIR} -lxml2 -lz -lm" ++LIBXML_CFLAGS="-I${SRC_DIR}/include -I${SRC_DIR}/include/libxml2" + + # Check whether --with-plugins was given. + if test "${with_plugins+set}" = set; then -- 2.26.2