Makefile 1.4 KB

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