From b4b676ce7436ce3e6f9f6b20cc2004d3d721ea6e Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 4 Mar 2011 19:49:01 +0100 Subject: rename package to db, add subpkg for development files --- package/db/Makefile | 53 +++++++++++++++++++++++++++++++++ package/db/patches/patch-dist_ltmain_sh | 11 +++++++ 2 files changed, 64 insertions(+) create mode 100644 package/db/Makefile create mode 100644 package/db/patches/patch-dist_ltmain_sh (limited to 'package/db') diff --git a/package/db/Makefile b/package/db/Makefile new file mode 100644 index 000000000..9038b74eb --- /dev/null +++ b/package/db/Makefile @@ -0,0 +1,53 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= db +PKG_VERSION:= 4.7.25 +PKG_RELEASE:= 1 +PKG_MD5SUM:= ec2b87e833779681a0c3a814aa71359e +PKG_DESCR:= disk file format database which stores key/data-pairs in single files +PKG_SECTION:= libs +PKG_URL:= http://www.oracle.com/technology/software/products/berkeley-db +PKG_SITES:= http://www.openadk.org/distfiles/ +PKG_NEED_CXX:= 1 + +PKG_SUBPKGS:= LIBDB LIBDB_DEV +PKGSC_LIBDB_DEV:= devel +PKGSD_LIBDB_DEV:= libdb headers + +WRKBUILD= ${WRKSRC}/build_unix + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,LIBDB,libdb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) +$(eval $(call PKG_template,LIBDB_DEV,libdb-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBDB_DEV},${PKGSC_LIBDB_DEV})) + +CONFIGURE_PROG:= dist/configure +CONFIGURE_ARGS+= --enable-smallbuild \ + --disable-debug_rop \ + --disable-debug_wop \ + --disable-diagnostic \ + --disable-java \ + --disable-cxx \ + --disable-posixmutexes \ + --disable-uimutexes \ + --disable-tcl \ + --disable-rpc \ + --disable-compat185 \ + --disable-statistics \ + --disable-replication \ + --disable-cryptography \ + --disable-queue \ + --with-mutex=UNIX/fcntl + +libdb-install: + ${INSTALL_DIR} ${IDIR_LIBDB}/usr/lib + ${CP} ${WRKINST}/usr/lib/libdb*.so ${IDIR_LIBDB}/usr/lib + +libdb-dev-install: + ${INSTALL_DIR} ${IDIR_LIBDB_DEV}/usr/include + ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBDB_DEV}/usr/include + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/db/patches/patch-dist_ltmain_sh b/package/db/patches/patch-dist_ltmain_sh new file mode 100644 index 000000000..e9ff24a13 --- /dev/null +++ b/package/db/patches/patch-dist_ltmain_sh @@ -0,0 +1,11 @@ +--- db-4.7.25.orig/dist/ltmain.sh 2006-06-27 03:03:33.000000000 +0200 ++++ db-4.7.25/dist/ltmain.sh 2011-01-14 19:32:22.000000000 +0100 +@@ -1623,7 +1623,7 @@ EOF + # -pg pass through profiling flag for GCC + # @file GCC response files + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \ +- -t[45]*|-txscale*|@*) ++ -t[45]*|-txscale*|@*|-fstack-protector*|-flto) + + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. -- cgit v1.2.3