Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= postgresql
  7. PKG_VERSION:= 8.3.7
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 6e36f3b4dd27ae0c352376ea9f843de2
  10. MASTER_SITES:= ftp://ftp7.de.postgresql.org/pub/ftp.postgresql.org/source/v${PKG_VERSION}/ \
  11. ftp://ftp8.de.postgresql.org/pub/ftp.postgresql.org/source/v${PKG_VERSION}/ \
  12. ftp://ftp.be.postgresql.org/pub/postgresql/source/v${PKG_VERSION}/ \
  13. ftp://ftp.tw.postgresql.org/pub/postgresql/source/v${PKG_VERSION}/
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,LIBPQ,libpq,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
  16. CONFIGURE_STYLE= gnu
  17. PKG_CONFIGURE_ARGS:=\
  18. --disable-integer-datetimes \
  19. --without-java \
  20. --without-krb4 \
  21. --without-krb5 \
  22. --without-openssl \
  23. --without-pam \
  24. --without-perl \
  25. --without-python \
  26. --without-readline \
  27. --without-rendezvous \
  28. --without-tcl \
  29. --without-tk \
  30. --with-zlib="yes"
  31. CONFIGURE_ARGS+= ${PKG_CONFIGURE_ARGS}
  32. pre-configure:
  33. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  34. ./configure \
  35. --prefix=/usr \
  36. ${PKG_CONFIGURE_ARGS} \
  37. );
  38. ${MAKE} -C "${WRKBUILD}/src/bin/pg_config" \
  39. CC="${HOSTCC}" \
  40. DESTDIR="${WRKINST}" \
  41. all install
  42. do-build:
  43. ${MAKE} -C "${WRKBUILD}/src/include" \
  44. DESTDIR="${WRKINST}" \
  45. all install
  46. ${MAKE} -C "${WRKBUILD}/src/interfaces/libpq" \
  47. DESTDIR="${WRKINST}" \
  48. all install
  49. do-install:
  50. ${INSTALL_DIR} ${IDIR_LIBPQ}/usr/lib
  51. ${CP} ${WRKINST}/usr/lib/libpq.so.* ${IDIR_LIBPQ}/usr/lib
  52. include ${TOPDIR}/mk/pkg-bottom.mk