From: Kirtika Ruchandani Date: Tue, 30 Jun 2009 12:30:42 +0000 (+0530) Subject: Added libdb1 X-Git-Url: https://vcs.maemo.org/git/?p=oespirit1;a=commitdiff_plain;h=fa78ace16281647e5668f105a196115bfbd3ee78 Added libdb1 --- diff --git a/checksums.ini b/checksums.ini index c635d64..5874748 100644 --- a/checksums.ini +++ b/checksums.ini @@ -27625,3 +27625,7 @@ sha256=f0a1b2d1d20fdc2d10827e3f55ce63ac55637725b036fc5c6e51b38ca844dfa7 [http://repository.maemo.org/pool/fremantle/free/h/hildon-games-wrapper/hildon-games-wrapper_1.9.4-3+0m5.tar.gz] md5=b7f42ba430cef82ce5be60a7c316a49f sha256=7d783192fde34f0406d1952c95660da2afcfc2eaea28ce0cfb2c6c3a2403dc75 + +[http://repository.maemo.org/pool/fremantle/free/libd/libdb1/libdb1_1.85.4-osso8.tar.gz] +md5=2a057660c50af5e27a35604b0184553b +sha256=9dff374046253ba9e0637b65e0c935fe08d2b5c30d0e81f061040277ec2123fe diff --git a/libdb1/makefile.patch b/libdb1/makefile.patch new file mode 100644 index 0000000..59f06ed --- /dev/null +++ b/libdb1/makefile.patch @@ -0,0 +1,52 @@ +diff --git Makefile Makefile +index fa174e1..86fb642 100644 +--- Makefile ++++ Makefile +@@ -1,11 +1,11 @@ + # @(#)Makefile 8.9 (Berkeley) 7/14/94 + +-prefix = /root/usr +-libdir = ${prefix}/lib +-includedir = ${prefix}/include ++#prefix = /root/usr ++#libdir = ${prefix}/lib ++#includedir = ${prefix}/include + +-INSTALL = install -c +-LN = ln -s ++#INSTALL = install -c ++#LN = ln -s + + LIBNAME = libdb + MAJ_VERSION = 1 +@@ -16,7 +16,7 @@ VERSION = ${MAJ_VERSION}.${MIN_VERSION}.${TINY_VERSION} + LIBDB = ${LIBNAME}.a + SHLIBDB = ${LIBNAME}.so.${VERSION} + SONAME = ${LIBNAME}.so.${MAJ_VERSION} +-CC := /usr/bin/gcc ++#CC := /usr/bin/gcc + + OBJ1= hash.o hash_bigkey.o hash_buf.o \ + hash_func.o hash_log2.o hash_page.o \ +@@ -46,14 +46,14 @@ ${SHLIBDB}: ${OBJS} + ${CC} -shared -Wl,-soname,${SONAME} -Wl,-lc shared/*.o -o $@ + + install: +- -mkdir ${libdir} +- -mkdir ${includedir} +- ${INSTALL} -m 644 ${LIBDB} ${libdir}/${LIBDB} +- ${INSTALL} -m 755 ${SHLIBDB} ${libdir}/${SHLIBDB} +- (cd ${libdir}; ${LN} ${SHLIBDB} ${SONAME}) ++ install -d ${D}${libdir} ++ install -d ${D}${includedir} ++ install -m 644 ${LIBDB} ${D}${libdir}/${LIBDB} ++ install -m 755 ${SHLIBDB} ${D}${libdir}/${SHLIBDB} ++ (cd ${D}${libdir}; ln -s ${SHLIBDB} ${SONAME}) + # ${LN} ${libdir}/${SHLIBDB} ${libdir}/${LIBNAME}.so +- ${INSTALL} -m 644 include/mpool.h ${includedir}/mpool.h +- ${INSTALL} -m 644 include/db.h ${includedir}/db.h ++ install -m 644 include/mpool.h ${D}${includedir}/mpool.h ++ install -m 644 include/db.h ${D}${includedir}/db.h + + clean: + rm -f ${LIBDB} ${SHLIBDB} diff --git a/libdb1_1.85.4.bb b/libdb1_1.85.4.bb new file mode 100644 index 0000000..d35d37d --- /dev/null +++ b/libdb1_1.85.4.bb @@ -0,0 +1,25 @@ +# Copyright (C) 2009 Kirtika Ruchandani +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "Berkeley database library" +HOMEPAGE = "unknown" +LICENSE = "UCB BSD license" +SECTION = "libs" +PR = "r0" + +SRC_URI = "http://repository.maemo.org/pool/fremantle/free/libd/${PN}/${PN}_${PV}-osso8.tar.gz \ + file://libdb1/makefile.patch;patch=1;pnum=0 " + + +S = "${WORKDIR}/${PN}-${PV}/PORT/linux" + +do_compile() { + oe_runmake PREFIX=${prefix} libdir=${libdir} includedir=${includedir} D=${D} +} + +do_install() { + oe_runmake PREFIX=${prefix} libdir=${libdir} includedir=${includedir} D=${D} DESTDIR=${D} install +} + + +