Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.3.7
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 6e36f3b4dd27ae0c352376ea9f843de2
  8. PKG_DESCR:= PostgreSQL database library
  9. PKG_SECTION:= libs
  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. ftp://ftp8.de.postgresql.org/pub/ftp.postgresql.org/source/v${PKG_VERSION}/ \
  14. ftp://ftp.be.postgresql.org/pub/postgresql/source/v${PKG_VERSION}/ \
  15. ftp://ftp.tw.postgresql.org/pub/postgresql/source/v${PKG_VERSION}/
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,LIBPQ,libpq,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. BUILD_STYLE:= manual
  19. INSTALL_STYLE:= manual
  20. PKG_CONFIGURE_ARGS:=\
  21. --disable-integer-datetimes \
  22. --without-java \
  23. --without-krb4 \
  24. --without-krb5 \
  25. --without-openssl \
  26. --without-pam \
  27. --without-perl \
  28. --without-python \
  29. --without-readline \
  30. --without-rendezvous \
  31. --without-tcl \
  32. --without-tk \
  33. --with-zlib="yes"
  34. CONFIGURE_ARGS+= ${PKG_CONFIGURE_ARGS}
  35. pre-configure:
  36. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  37. ./configure \
  38. --prefix=/usr \
  39. ${PKG_CONFIGURE_ARGS} \
  40. );
  41. ${MAKE} -C "${WRKBUILD}/src/bin/pg_config" \
  42. CC="${HOSTCC}" \
  43. DESTDIR="${WRKINST}" \
  44. all install
  45. do-build:
  46. ${MAKE} -C "${WRKBUILD}/src/include" \
  47. DESTDIR="${WRKINST}" \
  48. all install
  49. ${MAKE} -C "${WRKBUILD}/src/interfaces/libpq" \
  50. DESTDIR="${WRKINST}" \
  51. all install
  52. do-install:
  53. ${INSTALL_DIR} ${IDIR_LIBPQ}/usr/lib
  54. ${CP} ${WRKINST}/usr/lib/libpq.so.* ${IDIR_LIBPQ}/usr/lib
  55. include ${TOPDIR}/mk/pkg-bottom.mk