Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= db
  5. PKG_VERSION:= 4.7.25
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= ec2b87e833779681a0c3a814aa71359e
  8. PKG_DESCR:= disk file format database which stores key/data-pairs in single files
  9. PKG_SECTION:= db
  10. PKG_URL:= http://www.oracle.com/technology/software/products/berkeley-db
  11. PKG_SITES:= http://www.openadk.org/distfiles/
  12. PKG_NEED_CXX:= 1
  13. PKG_SUBPKGS:= LIBDB LIBDB_DEV
  14. PKGSC_LIBDB_DEV:= devel
  15. PKGSD_LIBDB_DEV:= libdb headers
  16. WRKBUILD= ${WRKSRC}/build_unix
  17. include ${TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,LIBDB,libdb,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. $(eval $(call PKG_template,LIBDB_DEV,libdb-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBDB_DEV},${PKGSC_LIBDB_DEV}))
  20. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  21. CONFIGURE_PROG:= dist/configure
  22. CONFIGURE_ARGS+= --enable-smallbuild \
  23. --disable-debug_rop \
  24. --disable-debug_wop \
  25. --disable-diagnostic \
  26. --disable-java \
  27. --disable-cxx \
  28. --disable-posixmutexes \
  29. --disable-uimutexes \
  30. --disable-tcl \
  31. --disable-rpc \
  32. --disable-compat185 \
  33. --disable-statistics \
  34. --disable-replication \
  35. --disable-cryptography \
  36. --disable-queue \
  37. --with-mutex=UNIX/fcntl
  38. libdb-install:
  39. ${INSTALL_DIR} ${IDIR_LIBDB}/usr/lib
  40. ${CP} ${WRKINST}/usr/lib/libdb*.so ${IDIR_LIBDB}/usr/lib
  41. libdb-dev-install:
  42. ${INSTALL_DIR} ${IDIR_LIBDB_DEV}/usr/include
  43. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBDB_DEV}/usr/include
  44. include ${TOPDIR}/mk/pkg-bottom.mk