Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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_BUILDDEP+= zlib
  8. PKG_MD5SUM:= 6e36f3b4dd27ae0c352376ea9f843de2
  9. PKG_DESCR:= PostgreSQL database library
  10. PKG_SECTION:= libs
  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. CONFIGURE_STYLE= gnu
  19. PKG_CONFIGURE_ARGS:=\
  20. --disable-integer-datetimes \
  21. --without-java \
  22. --without-krb4 \
  23. --without-krb5 \
  24. --without-openssl \
  25. --without-pam \
  26. --without-perl \
  27. --without-python \
  28. --without-readline \
  29. --without-rendezvous \
  30. --without-tcl \
  31. --without-tk \
  32. --with-zlib="yes"
  33. CONFIGURE_ARGS+= ${PKG_CONFIGURE_ARGS}
  34. pre-configure:
  35. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  36. ./configure \
  37. --prefix=/usr \
  38. ${PKG_CONFIGURE_ARGS} \
  39. );
  40. ${MAKE} -C "${WRKBUILD}/src/bin/pg_config" \
  41. CC="${HOSTCC}" \
  42. DESTDIR="${WRKINST}" \
  43. all install
  44. do-build:
  45. ${MAKE} -C "${WRKBUILD}/src/include" \
  46. DESTDIR="${WRKINST}" \
  47. all install
  48. ${MAKE} -C "${WRKBUILD}/src/interfaces/libpq" \
  49. DESTDIR="${WRKINST}" \
  50. all install
  51. do-install:
  52. ${INSTALL_DIR} ${IDIR_LIBPQ}/usr/lib
  53. ${CP} ${WRKINST}/usr/lib/libpq.so.* ${IDIR_LIBPQ}/usr/lib
  54. include ${TOPDIR}/mk/pkg-bottom.mk