binutils: update to 2.43.1
[openadk.git] / package / postgresql / Makefile
blob62f5e5c9797f4a3477f8be0ba9563f75facada50
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= postgresql
7 PKG_VERSION:= 9.6.3
8 PKG_RELEASE:= 1
9 PKG_HASH:= df088372230b1dd21d87bb81686471508f4c42094d4f4f32b5d8e686fea69fa6
10 PKG_DESCR:= postgresql database library
11 PKG_SECTION:= libs/db
12 PKG_URL:= http://www.postgresql.org/
13 PKG_SITES:= http://ftp.postgresql.org/pub/source/v$(PKG_VERSION)/
14 PKG_LIBNAME:= libpq
15 PKG_OPTS:= dev
17 DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
19 include $(ADK_TOPDIR)/mk/package.mk
21 $(eval $(call PKG_template,LIBPQ,libpq,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
23 TARGET_CFLAGS:= $(filter-out -ffast-math,$(TARGET_CFLAGS))
25 CONFIGURE_ARGS+= --disable-integer-datetimes \
26 --without-openssl \
27 --without-pam \
28 --without-perl \
29 --without-python \
30 --without-readline \
31 --without-zlib \
32 --without-bonjour \
33 --without-tcl \
34 --with-system-tzdata=$(STAGING_TARGET_DIR)
36 libpq-install:
37 $(INSTALL_DIR) $(IDIR_LIBPQ)/usr/lib
38 $(CP) $(WRKINST)/usr/lib/libpq.so* $(IDIR_LIBPQ)/usr/lib
40 post-install:
41 PATH='$(HOST_PATH)' sed -e "s#@@STAGING_TARGET_DIR@@#$(STAGING_TARGET_DIR)#" \
42 ./files/pg_config > $(STAGING_HOST_DIR)/usr/bin/pg_config
43 -rm $(STAGING_TARGET_DIR)/usr/bin/pg_config
45 include $(ADK_TOPDIR)/mk/pkg-bottom.mk