Correct various builds, including expat and pcre.
authorChris Larson <clarson@kergoth.com>
Wed, 1 Oct 2003 23:57:55 +0000 (23:57 +0000)
committerChris Larson <clarson@kergoth.com>
Wed, 1 Oct 2003 23:57:55 +0000 (23:57 +0000)
BKrev: 3f7b6a03P_KMk2YlUkmMee_qcSllSA

cross/cross-binutils-2.14.90.0.6.oe
expat/expat-1.95.6.oe
expat/expat-1.95.6/buildsystem.patch [new file with mode: 0644]
libtool/libtool-1.4.3.oe
libtool/libtool-1.5.oe
libtool/libtool-1.5/tag.patch
openssl/openssl-0.9.7b.oe
pcre/pcre-4.4.oe
pcre/pcre-4.4/lai.patch [new file with mode: 0644]
pcre/pcre-4.4/rpath.patch [new file with mode: 0644]
zlib/zlib-1.1.4.oe

index e69de29..09c1781 100644 (file)
@@ -0,0 +1,17 @@
+PROVIDES = virtual/${OLDARCH}-${OLDOS}-binutils
+
+SRC_URI = http://ftp.kernel.org/pub/linux/devel/binutils/binutils-${PV}.tar.gz
+S = ${WORKDIR}/binutils-${PV}
+
+CROSS_DIR := ${CROSS_DIR}
+prefix=${CROSS_DIR}
+exec_prefix=${prefix}
+inherit cross autotools
+
+do_stage () {
+       oe_runmake install
+}
+
+do_install () {
+       true
+}
index e69de29..0783371 100644 (file)
@@ -0,0 +1,26 @@
+DESCRIPTION = Jim Clarkes XML parser library.
+DEPENDS = virtual/libc
+RDEPENDS = libc6
+
+SRC_URI = ${SOURCEFORGE_MIRROR}/${PN}/${P}.tar.gz \
+         file://${FILESDIR}/buildsystem.patch;patch=1
+S = "${WORKDIR}/${P}"
+
+inherit autotools libtool
+export LTCC=${CC}
+
+do_stage () {
+       install -m 0644 lib/expat.h ${STAGING_DIR}/target/include/
+       install -m 0755 .libs/libexpat.so.0.4.0 ${STAGING_LIBDIR}/
+       ln -sf libexpat.so.0.4.0 ${STAGING_LIBDIR}/libexpat.so.1
+       ln -sf libexpat.so.0.4.0 ${STAGING_LIBDIR}/libexpat.so.0
+       ln -sf libexpat.so.0.4.0 ${STAGING_LIBDIR}/libexpat.so
+}
+
+do_install () {
+       oe_runmake prefix="${D}/${prefix}" \
+               bindir="${D}/${bindir}" \
+               libdir="${D}/${libdir}" \
+               includedir="${D}/${includedir}" \
+               install
+}
diff --git a/expat/expat-1.95.6/buildsystem.patch b/expat/expat-1.95.6/buildsystem.patch
new file mode 100644 (file)
index 0000000..e69de29
index e69de29..c3072dc 100644 (file)
@@ -0,0 +1,38 @@
+PR = r0
+
+DESCRIPTION = Generic library support script\
+ This is GNU libtool, a generic library support script.  Libtool hides\
+ the complexity of generating special library types (such as shared\
+ libraries) behind a consistent interface.  To use libtool, add the\
+ new generic library building commands to your Makefile, Makefile.in,\
+ or Makefile.am.  See the documentation for details.  Libtool supports\
+ building static libraries on all platforms.\
+ Libtool supports generation of C, C++ and Java libraries.
+
+DEPENDS=
+
+SRC_URI = ${DEBIAN_MIRROR}/main/libt/${PN}/${PN}_${PV}.orig.tar.gz \
+         file://${FILESDIR}/debian.patch;patch=1 \
+         file://${FILESDIR}/libdir.patch;patch=1 \
+         file://${FILESDIR}/sedvar.patch;patch=1 \
+         file://${FILESDIR}/libtoolize-staging.patch;patch=1
+S = "${WORKDIR}/${P}"
+
+inherit autotools
+
+EXTRA_OECONF = --disable-ltdl-install
+do_configure_prepend () {
+       ./bootstrap
+}
+
+do_stage () {
+       install -d ${STAGING_DIR}/share/libtool \
+                  ${STAGING_DIR}/share/aclocal
+       install -m 0755 libtool ${STAGING_BINDIR}/libtool
+       install -m 0755 libtoolize ${STAGING_BINDIR}/libtoolize
+       install -c config.guess ${STAGING_DIR}/share/libtool/
+       install -c config.sub ${STAGING_DIR}/share/libtool/
+       install -c -m 0644 ltmain.sh ${STAGING_DIR}/share/libtool/
+       install -c -m 0644 libtool.m4 ${STAGING_DIR}/share/aclocal/
+       install -c -m 0644 ltdl.m4 ${STAGING_DIR}/share/aclocal/
+}
index e69de29..47e286a 100644 (file)
@@ -0,0 +1,35 @@
+DESCRIPTION = Generic library support script\
+ This is GNU libtool, a generic library support script.  Libtool hides\
+ the complexity of generating special library types (such as shared\
+ libraries) behind a consistent interface.  To use libtool, add the\
+ new generic library building commands to your Makefile, Makefile.in,\
+ or Makefile.am.  See the documentation for details.  Libtool supports\
+ building static libraries on all platforms.\
+ Libtool supports generation of C, C++ and Java libraries.
+
+SRC_URI = http://ftp.club.cc.cmu.edu/pub/gnu/libtool/libtool-1.5.tar.gz \
+         file://${FILESDIR}/libdir-la.patch;patch=1 \
+         file://${FILESDIR}/sedvar.patch;patch=1 \
+         file://${FILESDIR}/tag.patch;patch=1 \
+         file://${FILESDIR}/libtoolize-staging.patch;patch=1
+#        file://${FILESDIR}/libdir-rpath.patch;patch=1
+S = "${WORKDIR}/${P}"
+
+inherit autotools
+
+EXTRA_OECONF = --disable-ltdl-install
+do_configure_prepend () {
+       ./bootstrap
+       rm -f ${S}/ltmain.sh
+}
+
+do_stage () {
+       install -d ${STAGING_DIR}/share/{libtool,aclocal}
+       install -m 0755 libtool ${STAGING_BINDIR}/libtool
+       install -m 0755 libtoolize ${STAGING_BINDIR}/libtoolize
+       install -c config.guess ${STAGING_DIR}/share/libtool/
+       install -c config.sub ${STAGING_DIR}/share/libtool/
+       install -c -m 0644 ltmain.sh ${STAGING_DIR}/share/libtool/
+       install -c -m 0644 libtool.m4 ${STAGING_DIR}/share/aclocal/
+       install -c -m 0644 ltdl.m4 ${STAGING_DIR}/share/aclocal/
+}
index e69de29..dc69088 100644 (file)
@@ -0,0 +1,38 @@
+
+#
+# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
+#
+
+--- libtool-1.5/ltmain.in~tag
++++ libtool-1.5/ltmain.in
+@@ -549,8 +549,9 @@
+       # line option must be used.
+       if test -z "$tagname"; then
+         $echo "$modename: unable to infer tagged configuration"
+-        $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit 1
++          tagname=CC
++#       $echo "$modename: specify a tag with \`--tag'" 1>&2
++#       exit 1
+ #        else
+ #          $echo "$modename: using $tagname tagged configuration"
+       fi
+@@ -1651,13 +1652,13 @@
+       # If $tagname still isn't set, then no tagged configuration
+       # was found and let the user know that the "--tag" command
+       # line option must be used.
+-      if test -z "$tagname"; then
+-        $echo "$modename: unable to infer tagged configuration"
+-        $echo "$modename: specify a tag with \`--tag'" 1>&2
+-        exit 1
++#     if test -z "$tagname"; then
++#       $echo "$modename: unable to infer tagged configuration"
++#       $echo "$modename: specify a tag with \`--tag'" 1>&2
++#       exit 1
+ #       else
+ #         $echo "$modename: using $tagname tagged configuration"
+-      fi
++#     fi
+       ;;
+       esac
+     fi
index e69de29..a5d6410 100644 (file)
@@ -0,0 +1,30 @@
+SRC_URI = http://www.openssl.org/source/${P}.tar.gz \
+         file://${FILESDIR}/debian.patch;patch=1
+S = ${WORKDIR}/${PN}-${PV}
+
+DEPENDS = virtual/libc
+SECTION = libs
+DESCRIPTION = Secure Socket Layer (SSL) binary and related cryptographic tools.
+
+AR_append = " r"
+export CFLAG = "-fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -Wall ${FULL_OPTIMIZATION}"
+export DIRS = "crypto ssl"
+export EX_LIBS = "-lgcc -ldl -L${STAGING_LIBDIR}"
+do_compile () {
+       perl util/perlpath.pl /usr/bin
+       perl ./Configure shared --prefix=/usr --openssldir=/usr/lib/ssl ${TARGET_OS}-elf-${TARGET_ARCH}
+       ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/
+       oe_runmake -f Makefile.ssl
+}
+
+do_stage () {
+       cp --dereference -R include/openssl ${STAGING_DIR}/target/include/
+       install -m 0755 libcrypto.so.0.9.7 ${STAGING_LIBDIR}/
+       ln -sf libcrypto.so.0.9.7 ${STAGING_LIBDIR}/libcrypto.so
+       install -m 0755 libssl.so.0.9.7 ${STAGING_LIBDIR}/
+       ln -sf libssl.so.0.9.7 ${STAGING_LIBDIR}/libssl.so
+}
+
+do_install () {
+       oe_runmake -f Makefile.ssl INSTALL_PREFIX="${D}" install
+}
index e69de29..8a6e4ce 100644 (file)
@@ -0,0 +1,38 @@
+DEPENDS = virtual/libc
+RDEPENDS = libc6
+DESCRIPTION = Perl-compatible regular expression library. PCRE has its own native \
+API, but a set of "wrapper" functions that are based on the POSIX API \
+are also supplied in the library libpcreposix. Note that this just \
+provides a POSIX calling interface to PCRE; the regular expressions \
+themselves still follow Perl syntax and semantics. The header file for \
+the POSIX-style functions is called pcreposix.h.
+
+
+SRC_URI = ftp://ftp.csx.cam.ac.uk/pub/software/programming/${PN}/${P}.tar.bz2 \
+         file://${FILESDIR}/rpath.patch;patch=1 \
+         file://${FILESDIR}/lai.patch;patch=1
+S = "${WORKDIR}/${P}"
+
+inherit autotools libtool
+
+CFLAGS_append = " -D_REENTRANT"
+EXTRA_OECONF = " --with-link-size=2 --enable-newline-is-lf --with-match-limit=10000000"
+do_compile () {
+       ${BUILD_CC} -DLINK_SIZE=2 -I${S}/include -c dftables.c
+       ${BUILD_CC} dftables.o -o dftables
+       oe_runmake
+}
+
+do_stage () {
+       install -m 0755 .libs/libpcreposix.so.0.0.0 ${STAGING_LIBDIR}/
+       ln -sf libpcreposix.so.0.0.0 ${STAGING_LIBDIR}/libpcreposix.so.0
+       install -m 0755 .libs/libpcre.so.0.0.1 ${STAGING_LIBDIR}/
+       ln -sf libpcre.so.0.0.1 ${STAGING_LIBDIR}/libpcre.so.0
+       
+       ln -sf libpcre.so.0.0.1 ${STAGING_LIBDIR}/libpcre.so
+       ln -sf libpcreposix.so.0.0.0 ${STAGING_LIBDIR}/libpcreposix.so
+       install -m 0644 .libs/libpcre.a ${STAGING_LIBDIR}/
+       install -m 0644 .libs/libpcreposix.a ${STAGING_LIBDIR}/
+       install -m 0644 pcre.h ${STAGING_DIR}/target/include/
+       install -m 0644 pcreposix.h ${STAGING_DIR}/target/include/
+}
diff --git a/pcre/pcre-4.4/lai.patch b/pcre/pcre-4.4/lai.patch
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/pcre/pcre-4.4/rpath.patch b/pcre/pcre-4.4/rpath.patch
new file mode 100644 (file)
index 0000000..e69de29
index e69de29..82a3979 100644 (file)
@@ -0,0 +1,35 @@
+DESCRIPTION="Zlib Compression Library"
+SECTION="libs"
+PRIORITY="required"
+MAINTAINER="Chris Larson <kergoth@handhelds.org>"
+RDEPENDS="libc6"
+
+SRC_URI="http://www.libpng.org/pub/png/src/zlib-${PV}.tar.gz"
+DEPENDS=virtual/libc
+S="${WORKDIR}/${P}"
+
+export LDSHARED="${CC} -shared -Wl,-soname,libz.so.1"
+export LDFLAGS:="${LDFLAGS} -L. -lz"
+export CFLAGS:="-fPIC ${CFLAGS}"
+export AR_append=" rc"
+EXTRA_OEMAKE=
+
+do_compile() {
+       ./configure --prefix=${prefix} --exec_prefix=${exec_prefix} --shared --libdir=${libdir} --includedir=${includedir}
+       oe_runmake -e MAKEFLAGS="" libz.so.1.1.4 libz.a
+}
+
+do_stage() {
+       install -m 0644 zlib.h ${STAGING_DIR}/target/include/zlib.h
+       install -m 0644 zconf.h ${STAGING_DIR}/target/include/zconf.h
+       install -m 0755 libz.so.1.1.4 ${STAGING_LIBDIR}/libz.so.1.1.4
+       install -m 0755 libz.a ${STAGING_LIBDIR}/libz.a
+       ln -sf ./libz.so.1.1.4 ${STAGING_LIBDIR}/libz.so.1
+       ln -sf ./libz.so.1.1.4 ${STAGING_LIBDIR}/libz.so
+}
+
+do_install() {
+       install -d ${D}/${prefix} ${D}/${includedir} ${D}/${libdir}
+       oe_runmake 'prefix=${D}/${prefix}' 'includedir=${D}/${includedir}' \
+                  'libdir=${D}/${libdir}' install
+}