diff options
| author | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
| commit | 4b46c1f6e891b1ddd5968536440b888661fade3e (patch) | |
| tree | e0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/packages/db | |
| download | poky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz | |
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/db')
| -rw-r--r-- | openembedded/packages/db/db3-3.2.9/autofoo.patch | 71 | ||||
| -rw-r--r-- | openembedded/packages/db/db3-native_3.2.9.bb | 6 | ||||
| -rw-r--r-- | openembedded/packages/db/db3_3.2.9.bb | 80 | ||||
| -rw-r--r-- | openembedded/packages/db/db_4.3.27.bb | 94 |
4 files changed, 251 insertions, 0 deletions
diff --git a/openembedded/packages/db/db3-3.2.9/autofoo.patch b/openembedded/packages/db/db3-3.2.9/autofoo.patch new file mode 100644 index 0000000000..d385b95722 --- /dev/null +++ b/openembedded/packages/db/db3-3.2.9/autofoo.patch | |||
| @@ -0,0 +1,71 @@ | |||
| 1 | --- dist/Makefile.in 2000-11-30 17:07:33.000000000 -0600 | ||
| 2 | +++ dist/Makefile.in 2004-09-01 19:47:37.000000000 -0500 | ||
| 3 | @@ -2,6 +2,7 @@ | ||
| 4 | |||
| 5 | srcdir= @srcdir@/.. | ||
| 6 | builddir=. | ||
| 7 | +top_builddir=. | ||
| 8 | |||
| 9 | ################################################## | ||
| 10 | # C, C++ | ||
| 11 | --- dist/configure.in 2001-01-19 11:36:43.000000000 -0600 | ||
| 12 | +++ dist/configure.in 2004-09-01 19:45:35.000000000 -0500 | ||
| 13 | @@ -38,7 +38,6 @@ | ||
| 14 | AC_SUBST(LIBJSO_LIBS) | ||
| 15 | AC_SUBST(LIBS) | ||
| 16 | AC_SUBST(LIBSO_LIBS) | ||
| 17 | -AC_SUBST(LIBTOOL) | ||
| 18 | AC_SUBST(LIBTSO_LIBS) | ||
| 19 | AC_SUBST(LIBXSO_LIBS) | ||
| 20 | AC_SUBST(MAKEFILE_CC) | ||
| 21 | @@ -48,7 +47,6 @@ | ||
| 22 | AC_SUBST(RPC_OBJS) | ||
| 23 | AC_SUBST(SOFLAGS) | ||
| 24 | AC_SUBST(SOLINK) | ||
| 25 | -AC_SUBST(SOSUFFIX) | ||
| 26 | |||
| 27 | dnl $o is set to ".o" or ".lo", and is the file suffix used in the | ||
| 28 | dnl Makefile instead of .o | ||
| 29 | @@ -205,27 +203,15 @@ | ||
| 30 | dnl Dynamic library and libtool configuration; optional, but required for | ||
| 31 | dnl Tcl or Java support. | ||
| 32 | LIBDB_ARGS="libdb.a" | ||
| 33 | -LIBTOOL="nolibtool" | ||
| 34 | POSTLINK="@true" | ||
| 35 | -SOSUFFIX="so" | ||
| 36 | if test "$db_cv_dynamic" = "yes"; then | ||
| 37 | + AM_PROG_LIBTOOL | ||
| 38 | SAVE_CC="${MAKEFILE_CC}" | ||
| 39 | SAVE_CXX="${MAKEFILE_CXX}" | ||
| 40 | |||
| 41 | - # Configure libtool. | ||
| 42 | - AC_MSG_CHECKING(libtool configuration) | ||
| 43 | - AC_MSG_RESULT([]) | ||
| 44 | - ${CONFIG_SHELL-/bin/sh} $srcdir/ltconfig \ | ||
| 45 | - --no-verify $srcdir/ltmain.sh \ | ||
| 46 | - --output=./libtool $host_os \ | ||
| 47 | - --disable-static \ | ||
| 48 | - || AC_MSG_ERROR([libtool configure failed]) | ||
| 49 | - | ||
| 50 | - SOSUFFIX=`sed -e '/^library_names_spec=/!d' -e 's/.*\.\([[a-zA-Z0-9_]]*\).*/\1/' ./libtool` | ||
| 51 | DEFAULT_LIB="\$(libso_target)" | ||
| 52 | DEFAULT_INSTALL="install_dynamic" | ||
| 53 | LIBDB_ARGS="\$(libso_linkname)" | ||
| 54 | - LIBTOOL="\$(SHELL) ./libtool" | ||
| 55 | |||
| 56 | MAKEFILE_CC="\$(LIBTOOL) --mode=compile ${SAVE_CC}" | ||
| 57 | MAKEFILE_CXX="\$(LIBTOOL) --mode=compile ${SAVE_CXX}" | ||
| 58 | @@ -373,13 +359,6 @@ | ||
| 59 | AC_REPLACE_FUNCS(getcwd getopt memcmp memcpy memmove) | ||
| 60 | AC_REPLACE_FUNCS(raise snprintf strcasecmp strerror vsnprintf) | ||
| 61 | |||
| 62 | -dnl XXX | ||
| 63 | -dnl Nasty hack. AC_REPLACE_FUNCS added entries of the form xxx.o to the | ||
| 64 | -dnl LIBOBJS variable. They have to be xxx.lo if we are building shared | ||
| 65 | -dnl libraries. Use sed, configure already requires it. | ||
| 66 | -tmp="`echo \"$LIBOBJS\" | sed \"s/\.o/${o}/g\"`" | ||
| 67 | -LIBOBJS="$tmp" | ||
| 68 | - | ||
| 69 | dnl Check for system functions we optionally use. | ||
| 70 | AC_CHECK_FUNCS(getuid pstat_getdynamic sysconf sched_yield strtoul yield) | ||
| 71 | |||
diff --git a/openembedded/packages/db/db3-native_3.2.9.bb b/openembedded/packages/db/db3-native_3.2.9.bb new file mode 100644 index 0000000000..13c6063669 --- /dev/null +++ b/openembedded/packages/db/db3-native_3.2.9.bb | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | SECTION = "libs" | ||
| 2 | inherit native | ||
| 3 | include db3_${PV}.bb | ||
| 4 | |||
| 5 | FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/db3-${PV}', '${FILE_DIRNAME}/db3', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}" | ||
| 6 | PACKAGES = "" | ||
diff --git a/openembedded/packages/db/db3_3.2.9.bb b/openembedded/packages/db/db3_3.2.9.bb new file mode 100644 index 0000000000..4c78279745 --- /dev/null +++ b/openembedded/packages/db/db3_3.2.9.bb | |||
| @@ -0,0 +1,80 @@ | |||
| 1 | SECTION = "libs" | ||
| 2 | DESCRIPTION = "Berkeley DB v3." | ||
| 3 | HOMEPAGE = "http://www.sleepycat.com" | ||
| 4 | LICENSE = "BSD Sleepycat" | ||
| 5 | PR = "r1" | ||
| 6 | |||
| 7 | SRC_URI = "ftp://sleepycat1.inetu.net/releases/db-${PV}.tar.gz \ | ||
| 8 | file://autofoo.patch;patch=1" | ||
| 9 | S = "${WORKDIR}/db-${PV}/dist" | ||
| 10 | B = "${WORKDIR}/db-${PV}/build_unix" | ||
| 11 | |||
| 12 | inherit autotools | ||
| 13 | |||
| 14 | EXTRA_OECONF = "--enable-shared --enable-compat185 --enable-static" | ||
| 15 | EXTRA_OEMAKE = "'SHELL=/bin/sh' 'ar=`which ${AR}` cr' 'chmod=`which chmod`' \ | ||
| 16 | 'cp=`which cp`' 'ln=`which ln`' 'mkdir=`which mkdir`' 'ranlib=`which ${RANLIB}`' \ | ||
| 17 | 'rm=`which rm`' 'strip=`which ${STRIP}`'" | ||
| 18 | |||
| 19 | PACKAGES = "${PN} ${PN}-bin ${PN}-dev ${PN}-doc ${PN}-locale" | ||
| 20 | |||
| 21 | FILES_${PN} = "${libdir}/libdb-3.2*so*" | ||
| 22 | FILES_${PN}-bin = "${bindir}" | ||
| 23 | FILES_${PN}-dev = "${includedir} ${libdir}/libdb.so ${libdir}/libdb.a \ | ||
| 24 | ${libdir}/libdb-3.so ${libdir}/libdb.la ${libdir}/libdb-3.2.a \ | ||
| 25 | ${libdir}/libdb-3.2.la" | ||
| 26 | |||
| 27 | do_configure_prepend () { | ||
| 28 | set -e | ||
| 29 | ( | ||
| 30 | cd ${S} | ||
| 31 | . ./RELEASE | ||
| 32 | (echo "AC_DEFUN(AM_VERSION_SET, [" && | ||
| 33 | echo "AC_SUBST(DB_VERSION_MAJOR)" && | ||
| 34 | echo "AC_DEFINE(DB_VERSION_MAJOR, [$DB_VERSION_MAJOR])" && | ||
| 35 | echo "DB_VERSION_MAJOR=$DB_VERSION_MAJOR" && | ||
| 36 | echo "AC_SUBST(DB_VERSION_MINOR)" && | ||
| 37 | echo "AC_DEFINE(DB_VERSION_MINOR, [$DB_VERSION_MINOR])" && | ||
| 38 | echo "DB_VERSION_MINOR=$DB_VERSION_MINOR" && | ||
| 39 | echo "AC_SUBST(DB_VERSION_PATCH)" && | ||
| 40 | echo "AC_DEFINE(DB_VERSION_PATCH, [$DB_VERSION_PATCH])" && | ||
| 41 | echo "DB_VERSION_PATCH=$DB_VERSION_PATCH" && | ||
| 42 | echo "AC_SUBST(DB_VERSION_STRING)" && | ||
| 43 | echo "AC_DEFINE(DB_VERSION_STRING, [$DB_VERSION_STRING])" && | ||
| 44 | echo "DB_VERSION_STRING=\"\\\"\$DB_VERSION_STRING\\\"\"" && | ||
| 45 | echo "])dnl") > acinclude.m4 | ||
| 46 | ) | ||
| 47 | } | ||
| 48 | |||
| 49 | do_configure () { | ||
| 50 | rm -f ${S}/configure | ||
| 51 | autotools_do_configure | ||
| 52 | } | ||
| 53 | |||
| 54 | do_compile () { | ||
| 55 | oe_runmake | ||
| 56 | } | ||
| 57 | |||
| 58 | do_stage () { | ||
| 59 | install -m 0644 db_185.h ../include/db_cxx.h db.h ${STAGING_INCDIR}/ | ||
| 60 | oe_libinstall -so -a libdb-3.2 ${STAGING_LIBDIR} | ||
| 61 | ln -sf libdb-3.2.so ${STAGING_LIBDIR}/libdb.so | ||
| 62 | ln -sf libdb-3.2.a ${STAGING_LIBDIR}/libdb.a | ||
| 63 | } | ||
| 64 | |||
| 65 | do_install () { | ||
| 66 | oe_runmake \ | ||
| 67 | prefix=${D}${prefix} \ | ||
| 68 | exec_prefix=${D}${exec_prefix} \ | ||
| 69 | bindir=${D}${bindir} \ | ||
| 70 | includedir=${D}${includedir} \ | ||
| 71 | libdir=${D}${libdir} \ | ||
| 72 | docdir=${D}${docdir} \ | ||
| 73 | install | ||
| 74 | } | ||
| 75 | |||
| 76 | python do_package() { | ||
| 77 | if bb.data.getVar('DEBIAN_NAMES', d, 1): | ||
| 78 | bb.data.setVar('PKG_${PN}', 'libdb3', d) | ||
| 79 | bb.build.exec_func('package_do_package', d) | ||
| 80 | } | ||
diff --git a/openembedded/packages/db/db_4.3.27.bb b/openembedded/packages/db/db_4.3.27.bb new file mode 100644 index 0000000000..216fb5714b --- /dev/null +++ b/openembedded/packages/db/db_4.3.27.bb | |||
| @@ -0,0 +1,94 @@ | |||
| 1 | # Version 4 of the Berkeley DB from Sleepycat | ||
| 2 | # | ||
| 3 | # At present this package only installs the DB code | ||
| 4 | # itself (shared libraries, .a in the dev package), | ||
| 5 | # documentation and headers. | ||
| 6 | # | ||
| 7 | # The headers have the same names as those as v3 | ||
| 8 | # of the DB, only one version can be used *for dev* | ||
| 9 | # at once - DB3 and DB4 can both be installed on the | ||
| 10 | # same system at the same time if really necessary. | ||
| 11 | SECTION = "libs" | ||
| 12 | DESCRIPTION = "Berkeley DB v4." | ||
| 13 | HOMEPAGE = "http://www.sleepycat.com" | ||
| 14 | LICENSE = "BSD Sleepycat" | ||
| 15 | PR = "r1" | ||
| 16 | |||
| 17 | SRC_URI = "http://downloads.sleepycat.com/${P}.tar.gz" | ||
| 18 | |||
| 19 | inherit autotools | ||
| 20 | |||
| 21 | # At present virtual/db is only in the db4 file, but it | ||
| 22 | # should probably be in the other candidates (db3, gdbm) | ||
| 23 | # because it doesn't make any sense to have multiple | ||
| 24 | # relational databases on an embedded machine... | ||
| 25 | PROVIDES += " db4 virtual/db" | ||
| 26 | |||
| 27 | # bitbake isn't quite clever enough to deal with sleepycat, | ||
| 28 | # the distribution sits in the expected directory, but all | ||
| 29 | # the builds must occur from a sub-directory. The following | ||
| 30 | # persuades bitbake to go to the right place | ||
| 31 | S = "${WORKDIR}/${P}/build_unix" | ||
| 32 | |||
| 33 | # The executables go in a separate package - typically there | ||
| 34 | # is no need to install these unless doing real database | ||
| 35 | # management on the system. | ||
| 36 | PACKAGES += " ${PN}-bin" | ||
| 37 | |||
| 38 | # Package contents | ||
| 39 | FILES_${PN} = "${libdir}/libdb-4*so*" | ||
| 40 | FILES_${PN}-bin = "${bindir}" | ||
| 41 | # The dev package has the .so link (as in db3) and the .a's - | ||
| 42 | # it is therefore incompatible (cannot be installed at the | ||
| 43 | # same time) as the db3 package | ||
| 44 | FILES_${PN}-dev = "${includedir} ${libdir}" | ||
| 45 | |||
| 46 | #configuration - set in local.conf to override | ||
| 47 | DB4_CONFIG ?= "--enable-o_direct --enable-smallbuild" | ||
| 48 | # Override the MUTEX setting here, the POSIX library is | ||
| 49 | # the default - "POSIX/pthreads/library". | ||
| 50 | # Don't ignore the nice SWP instruction on the ARM: | ||
| 51 | EXTRA_OECONF = "${DB4_CONFIG}" | ||
| 52 | # These enable the ARM assembler mutex code, this won't | ||
| 53 | # work with thumb compilation... | ||
| 54 | ARM_MUTEX = "--with-mutex=ARM/gcc-assembly" | ||
| 55 | ARM_MUTEX_thumb = "" | ||
| 56 | # NOTE: only tested on nslu2, should probably be _armeb | ||
| 57 | EXTRA_OECONF_nslu2 = "${DB4_CONFIG} ${ARM_MUTEX}" | ||
| 58 | |||
| 59 | # Cancel the site stuff - it's set for db3 and destroys the | ||
| 60 | # configure. | ||
| 61 | CONFIG_SITE = "" | ||
| 62 | do_configure() { | ||
| 63 | echo '#!/bin/sh' >${S}/configure | ||
| 64 | echo 'rm ${S}/configure' >>${S}/configure | ||
| 65 | echo 'exec ../dist/configure "$@"' >>${S}/configure | ||
| 66 | chmod a+x ${S}/configure | ||
| 67 | oe_runconf | ||
| 68 | } | ||
| 69 | |||
| 70 | do_stage() { | ||
| 71 | # The .h files get installed read-only, the autostage | ||
| 72 | # function just uses cp -a, so do this by hand | ||
| 73 | # Install, for the moment, into include/db4 to avoid | ||
| 74 | # interfering with the db3 headers (which have the same | ||
| 75 | # name). -I${STAGING_INCDIR}/db4 to use db4, as opposed | ||
| 76 | # to db3. | ||
| 77 | rm -rf ${STAGE_TEMP} | ||
| 78 | mkdir -p ${STAGE_TEMP} | ||
| 79 | oe_runmake DESTDIR="${STAGE_TEMP}" install_include | ||
| 80 | mkdir -p ${STAGING_INCDIR}/db4 | ||
| 81 | cp -af ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR}/db4 | ||
| 82 | rm -rf ${STAGE_TEMP} | ||
| 83 | oe_libinstall -so -C .libs libdb-4.3 ${STAGING_LIBDIR} | ||
| 84 | } | ||
| 85 | |||
| 86 | do_install_append() { | ||
| 87 | # The docs end up in /usr/docs - not right. | ||
| 88 | if test -d "${D}/${prefix}/docs" | ||
| 89 | then | ||
| 90 | mkdir -p "${D}/${datadir}" | ||
| 91 | test ! -d "${D}/${docdir}" || rmdir "${D}/${docdir}" | ||
| 92 | mv "${D}/${prefix}/docs" "${D}/${docdir}" | ||
| 93 | fi | ||
| 94 | } | ||
