Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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.1.1
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 93b293bd735bb99258c1bad7bc9b8f6c
  8. PKG_DESCR:= PostgreSQL database library
  9. PKG_SECTION:= db
  10. PKG_BUILDDEP:= zlib
  11. PKG_URL:= http://www.postgresql.org/
  12. PKG_SITES:= http://ftp.postgresql.org/pub/source/v9.1.1/
  13. PKG_LIBNAME:= libpq
  14. PKG_OPTS:= dev
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,LIBPQ,libpq,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  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. # workaround for dev subpackage
  52. ${INSTALL_DIR} ${IDIR_LIBPQ_DEV}/usr/bin
  53. ${INSTALL_BIN} ${WRKINST}/usr/bin/pg_config \
  54. ${IDIR_LIBPQ_DEV}/usr/bin
  55. include ${TOPDIR}/mk/pkg-bottom.mk