Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= postgresql
  5. PKG_VERSION:= 9.4.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 43da2d54ff8333a2ee595efc3d0df3255bb46d4431841d2b88f9cfcd6366e234
  8. PKG_DESCR:= postgresql database library
  9. PKG_SECTION:= libs/db
  10. PKG_URL:= http://www.postgresql.org/
  11. PKG_SITES:= http://ftp.postgresql.org/pub/source/v$(PKG_VERSION)/
  12. PKG_LIBNAME:= libpq
  13. PKG_NOPARALLEL:= 1
  14. PKG_OPTS:= dev
  15. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,LIBPQ,libpq,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
  18. CONFIGURE_ARGS+= --disable-integer-datetimes \
  19. --without-openssl \
  20. --without-pam \
  21. --without-perl \
  22. --without-python \
  23. --without-readline \
  24. --without-zlib \
  25. --without-bonjour \
  26. --without-tcl \
  27. --with-system-tzdata=$(STAGING_TARGET_DIR)
  28. libpq-install:
  29. $(INSTALL_DIR) $(IDIR_LIBPQ)/usr/lib
  30. $(CP) $(WRKINST)/usr/lib/libpq.so* $(IDIR_LIBPQ)/usr/lib
  31. post-install:
  32. PATH='$(HOST_PATH)' sed -e "s#@@STAGING_TARGET_DIR@@#$(STAGING_TARGET_DIR)#" \
  33. ./files/pg_config > $(STAGING_HOST_DIR)/usr/bin/pg_config
  34. -rm $(STAGING_TARGET_DIR)/usr/bin/pg_config
  35. include $(ADK_TOPDIR)/mk/pkg-bottom.mk