Makefile 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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:= postgresql
  5. PKG_VERSION:= 8.4.4
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= ae7f305eb9388b187e8f07dee0cec55c
  8. PKG_DESCR:= PostgreSQL database library
  9. PKG_SECTION:= db
  10. PKG_BUILDDEP:= zlib
  11. PKG_URL:= http://www.postgresql.org/
  12. PKG_SITES:= ftp://ftp7.de.postgresql.org/pub/ftp.postgresql.org/source/v${PKG_VERSION}/
  13. PKG_SUBPKGS:= LIBPQ LIBPQ_DEV
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,LIBPQ,libpq,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. $(eval $(call PKG_template,LIBPQ_DEV,libpq-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. BUILD_STYLE:= manual
  18. INSTALL_STYLE:= manual
  19. PKG_CONFIGURE_ARGS:= --disable-integer-datetimes \
  20. --without-krb5 \
  21. --without-openssl \
  22. --without-pam \
  23. --without-perl \
  24. --without-python \
  25. --without-readline \
  26. --without-bonjour \
  27. --without-tcl \
  28. --with-system-tzdata=${STAGING_TARGET_DIR} \
  29. --with-zlib="yes"
  30. CONFIGURE_ARGS+= ${PKG_CONFIGURE_ARGS}
  31. pre-configure:
  32. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  33. ./configure \
  34. --prefix=/usr \
  35. ${PKG_CONFIGURE_ARGS} \
  36. );
  37. ${MAKE} -C "${WRKBUILD}/src/bin/pg_config" \
  38. CC="${CC_FOR_BUILD}" \
  39. DESTDIR="${WRKINST}" \
  40. all install
  41. do-build:
  42. ${MAKE} -C "${WRKBUILD}/src/include" \
  43. DESTDIR="${WRKINST}" \
  44. all install
  45. ${MAKE} -C "${WRKBUILD}/src/interfaces/libpq" \
  46. DESTDIR="${WRKINST}" \
  47. all install
  48. libpq-install:
  49. ${INSTALL_DIR} ${IDIR_LIBPQ}/usr/lib
  50. ${CP} ${WRKINST}/usr/lib/libpq.so* ${IDIR_LIBPQ}/usr/lib
  51. libpq-dev-install:
  52. ${INSTALL_DIR} ${IDIR_LIBPQ_DEV}/usr/include
  53. ${CP} ${WRKINST}/usr/include/* ${IDIR_LIBPQ_DEV}/usr/include
  54. ${INSTALL_DIR} ${IDIR_LIBPQ_DEV}/usr/bin
  55. ${INSTALL_BIN} ${WRKINST}/usr/bin/pg_config \
  56. ${IDIR_LIBPQ_DEV}/usr/bin
  57. include ${TOPDIR}/mk/pkg-bottom.mk