Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,LIBPQ,libpq,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. BUILD_STYLE:= manual
  17. INSTALL_STYLE:= manual
  18. PKG_CONFIGURE_ARGS:= --disable-integer-datetimes \
  19. --without-krb5 \
  20. --without-openssl \
  21. --without-pam \
  22. --without-perl \
  23. --without-python \
  24. --without-readline \
  25. --without-bonjour \
  26. --without-tcl \
  27. --with-system-tzdata=${STAGING_DIR} \
  28. --with-zlib="yes"
  29. CONFIGURE_ARGS+= ${PKG_CONFIGURE_ARGS}
  30. pre-configure:
  31. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  32. ./configure \
  33. --prefix=/usr \
  34. ${PKG_CONFIGURE_ARGS} \
  35. );
  36. ${MAKE} -C "${WRKBUILD}/src/bin/pg_config" \
  37. CC="${HOSTCC}" \
  38. DESTDIR="${WRKINST}" \
  39. all install
  40. do-build:
  41. ${MAKE} -C "${WRKBUILD}/src/include" \
  42. DESTDIR="${WRKINST}" \
  43. all install
  44. ${MAKE} -C "${WRKBUILD}/src/interfaces/libpq" \
  45. DESTDIR="${WRKINST}" \
  46. all install
  47. do-install:
  48. ${INSTALL_DIR} ${IDIR_LIBPQ}/usr/lib
  49. ${CP} ${WRKINST}/usr/lib/libpq.so* ${IDIR_LIBPQ}/usr/lib
  50. include ${TOPDIR}/mk/pkg-bottom.mk