summaryrefslogtreecommitdiff
path: root/package/postgresql/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-04-16 08:57:32 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2015-04-16 21:06:37 +0200
commit26d7f0ebfc0b26db8ce91bb5d89f42ab2f9555fc (patch)
treec4d6cc04d7e55604d5e3ae46cea9f4e6c7fb2e0c /package/postgresql/Makefile
parent6f21e9cbbfd981a0eb3f6b113a1724cb9b98da0e (diff)
update to latest, we can simplify the build and enable server later
Diffstat (limited to 'package/postgresql/Makefile')
-rw-r--r--package/postgresql/Makefile57
1 files changed, 15 insertions, 42 deletions
diff --git a/package/postgresql/Makefile b/package/postgresql/Makefile
index fba87919e..b28d4e85e 100644
--- a/package/postgresql/Makefile
+++ b/package/postgresql/Makefile
@@ -1,66 +1,39 @@
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
-include ${ADK_TOPDIR}/rules.mk
+include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= postgresql
-PKG_VERSION:= 9.3.4
-PKG_RELEASE:= 2
-PKG_HASH:= 7155b94c2abec7d05638463839ff403fdee8274d72a2bd280a7becdee4941540
+PKG_VERSION:= 9.4.1
+PKG_RELEASE:= 1
+PKG_HASH:= 43da2d54ff8333a2ee595efc3d0df3255bb46d4431841d2b88f9cfcd6366e234
PKG_DESCR:= postgresql database library
PKG_SECTION:= libs/db
-PKG_BUILDDEP:= zlib
PKG_URL:= http://www.postgresql.org/
-PKG_SITES:= http://ftp.postgresql.org/pub/source/v9.3.4/
+PKG_SITES:= http://ftp.postgresql.org/pub/source/v$(PKG_VERSION)/
PKG_LIBNAME:= libpq
+PKG_NOPARALLEL:= 1
PKG_OPTS:= dev
-DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
+DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
-include ${ADK_TOPDIR}/mk/package.mk
+include $(ADK_TOPDIR)/mk/package.mk
-$(eval $(call PKG_template,LIBPQ,libpq,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,LIBPQ,libpq,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
-BUILD_STYLE:= manual
-INSTALL_STYLE:= manual
-PKG_CONFIGURE_ARGS:= --disable-integer-datetimes \
- --without-krb5 \
+CONFIGURE_ARGS+= --disable-integer-datetimes \
--without-openssl \
--without-pam \
--without-perl \
--without-python \
--without-readline \
+ --without-zlib \
--without-bonjour \
--without-tcl \
- --with-system-tzdata=${STAGING_TARGET_DIR} \
- --with-zlib="yes"
-CONFIGURE_ARGS+= ${PKG_CONFIGURE_ARGS}
-
-pre-configure:
- (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
- ./configure \
- --prefix=/usr \
- ${PKG_CONFIGURE_ARGS} \
- );
- ${MAKE} -C "${WRKBUILD}/src/bin/pg_config" \
- CC="${HOST_CC}" \
- DESTDIR="${WRKINST}" \
- all install
-
-do-build:
- ${MAKE} -C "${WRKBUILD}/src/include" \
- DESTDIR="${WRKINST}" \
- all install
- ${MAKE} -C "${WRKBUILD}/src/interfaces/libpq" \
- DESTDIR="${WRKINST}" \
- all install
+ --with-system-tzdata=$(STAGING_TARGET_DIR)
libpq-install:
- ${INSTALL_DIR} ${IDIR_LIBPQ}/usr/lib
- ${CP} ${WRKINST}/usr/lib/libpq.so* ${IDIR_LIBPQ}/usr/lib
- # workaround for dev subpackage
- ${INSTALL_DIR} ${IDIR_LIBPQ_DEV}/usr/bin
- ${INSTALL_BIN} ${WRKINST}/usr/bin/pg_config \
- ${IDIR_LIBPQ_DEV}/usr/bin
+ $(INSTALL_DIR) $(IDIR_LIBPQ)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libpq.so* $(IDIR_LIBPQ)/usr/lib
-include ${ADK_TOPDIR}/mk/pkg-bottom.mk
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk