Makefile 1.8 KB

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