Makefile 1.9 KB

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