Makefile 1.7 KB

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