Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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:= libdb
  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:= libs
  10. PKG_URL:= http://www.oracle.com/technology/software/products/berkeley-db
  11. PKG_SITES:= http://www.openadk.org/distfiles/
  12. DISTFILES:= db-${PKG_VERSION}.tar.gz
  13. WRKDIST= ${WRKDIR}/db-${PKG_VERSION}
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,LIBDB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. do-configure:
  17. (cd ${WRKBUILD}/build_unix ; \
  18. ${TARGET_CONFIGURE_OPTS} \
  19. CFLAGS="${TARGET_CFLAGS}" \
  20. CPPFLAGS="-I${STAGING_DIR}/usr/include" \
  21. LDFLAGS="-L${STAGING_DIR}/usr/lib" \
  22. ../dist/configure \
  23. --target=${GNU_TARGET_NAME} \
  24. --host=${GNU_TARGET_NAME} \
  25. --build=${GNU_HOST_NAME} \
  26. --program-prefix="" \
  27. --program-suffix="" \
  28. --prefix=/usr \
  29. --exec-prefix=/usr \
  30. --bindir=/usr/bin \
  31. --datadir=/usr/share \
  32. --includedir=/usr/include \
  33. --infodir=/usr/share/info \
  34. --libdir=/usr/lib \
  35. --libexecdir=/usr/lib \
  36. --localstatedir=/var \
  37. --mandir=/usr/share/man \
  38. --sbindir=/usr/sbin \
  39. --sysconfdir=/etc \
  40. --disable-nls \
  41. --enable-shared \
  42. --enable-static \
  43. --enable-smallbuild \
  44. --disable-debug_rop \
  45. --disable-debug_wop \
  46. --disable-diagnostic \
  47. --disable-java \
  48. --disable-cxx \
  49. --disable-posixmutexes \
  50. --disable-uimutexes \
  51. --disable-tcl \
  52. --disable-rpc \
  53. --disable-compat185 \
  54. --disable-statistics \
  55. --disable-replication \
  56. --disable-cryptography \
  57. --disable-queue \
  58. --with-mutex=UNIX/fcntl \
  59. );
  60. do-install:
  61. ${MAKE} -C ${WRKBUILD}/build_unix \
  62. DESTDIR="${WRKINST}" install
  63. post-install:
  64. ${INSTALL_DIR} ${IDIR_LIBDB}/usr/lib
  65. ${CP} ${WRKINST}/usr/lib/libdb*.so ${IDIR_LIBDB}/usr/lib/
  66. include ${TOPDIR}/mk/pkg-bottom.mk