Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= libdb
  7. PKG_VERSION:= 4.7.25
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= ec2b87e833779681a0c3a814aa71359e
  10. PKG_DESCR:= disk file format database which stores key/data-pairs in single files
  11. PKG_SECTION:= libs
  12. PKG_URL:= http://www.oracle.com/technology/software/products/berkeley-db
  13. PKG_SITES:= http://www.openadk.org/distfiles/
  14. DISTFILES:= db-${PKG_VERSION}.tar.gz
  15. WRKDIST= ${WRKDIR}/db-${PKG_VERSION}
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,LIBDB,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. do-configure:
  19. (cd ${WRKBUILD}/build_unix ; \
  20. ${TARGET_CONFIGURE_OPTS} \
  21. CFLAGS="${TARGET_CFLAGS}" \
  22. CPPFLAGS="-I${STAGING_DIR}/usr/include" \
  23. LDFLAGS="-L${STAGING_DIR}/usr/lib" \
  24. ../dist/configure \
  25. --target=${GNU_TARGET_NAME} \
  26. --host=${GNU_TARGET_NAME} \
  27. --build=${GNU_HOST_NAME} \
  28. --program-prefix="" \
  29. --program-suffix="" \
  30. --prefix=/usr \
  31. --exec-prefix=/usr \
  32. --bindir=/usr/bin \
  33. --datadir=/usr/share \
  34. --includedir=/usr/include \
  35. --infodir=/usr/share/info \
  36. --libdir=/usr/lib \
  37. --libexecdir=/usr/lib \
  38. --localstatedir=/var \
  39. --mandir=/usr/share/man \
  40. --sbindir=/usr/sbin \
  41. --sysconfdir=/etc \
  42. --disable-nls \
  43. --enable-shared \
  44. --enable-static \
  45. --enable-smallbuild \
  46. --disable-debug_rop \
  47. --disable-debug_wop \
  48. --disable-diagnostic \
  49. --disable-java \
  50. --disable-cxx \
  51. --disable-posixmutexes \
  52. --disable-uimutexes \
  53. --disable-tcl \
  54. --disable-rpc \
  55. --disable-compat185 \
  56. --disable-statistics \
  57. --disable-replication \
  58. --disable-cryptography \
  59. --disable-queue \
  60. --with-mutex=UNIX/fcntl \
  61. );
  62. do-install:
  63. ${MAKE} -C ${WRKBUILD}/build_unix \
  64. DESTDIR="${WRKINST}" install
  65. post-install:
  66. ${INSTALL_DIR} ${IDIR_LIBDB}/usr/lib
  67. ${CP} ${WRKINST}/usr/lib/libdb*.so ${IDIR_LIBDB}/usr/lib/
  68. include ${TOPDIR}/mk/pkg-bottom.mk