@ -5,7 +5,7 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := postgresql
PKG_VERSION := 9.6.1 3
PKG_VERSION := 11. 3
PKG_RELEASE := 1
PKG_MAINTAINER := Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE := PostgreSQL
@ -16,12 +16,12 @@ PKG_SOURCE_URL:=\
http://ftp.postgresql.org/pub/source/v$( PKG_VERSION) \
ftp://ftp.postgresql.org/pub/source/v$( PKG_VERSION)
PKG_HASH := ecbed20056296a65b6a4f5526c477e3ae5cc284cb01a15507785ddb23831e9a4
PKG_HASH := 2a85e082fc225944821dfd23990e32dfcd2284c19060864b0ad4ca537d30522d
PKG_USE_MIPS16 := 0
PKG_FIXUP := autoreconf
PKG_MACRO_PATHS := config
PKG_BUILD_DEPENDS := readline/host postgresql/host
PKG_BUILD_DEPENDS := postgresql/host
PKG_INSTALL := 1
i n c l u d e $( INCLUDE_DIR ) / h o s t - b u i l d . m k
@ -88,23 +88,19 @@ PGSQL_SERVER_BIN := \
pg_dump \
pg_dumpall \
pg_isready \
pg_receivexlog \
pg_recvlogical \
pg_resetxlog \
pg_resetwal \
pg_restore \
pg_standby \
pg_upgrade \
pg_xlogdump \
postgres \
initdb
PGSQL_CLI_EXTRA_BIN := \
clusterdb \
createdb \
createlang \
createuser \
dropdb \
droplang \
dropuser \
pgbench \
reindexdb \
@ -112,7 +108,9 @@ PGSQL_CLI_EXTRA_BIN := \
PGSQL_CONFIG_VARS := \
pgac_cv_snprintf_long_long_int_format = "%lld" \
pgac_cv_snprintf_size_t_support = yes
pgac_cv_snprintf_size_t_support = yes \
USE_DEV_URANDOM = 1 \
ZIC = zic
i f e q ( $( CONFIG_USE_UCLIBC ) , y )
# PostgreSQL does not build against uClibc with locales
@ -137,6 +135,7 @@ HOST_CONFIGURE_ARGS += \
--without-python \
--without-readline \
--without-tcl \
--without-systemd \
--with-zlib= "yes" \
--enable-depend
@ -151,15 +150,15 @@ CONFIGURE_ARGS += \
--without-perl \
--without-python \
--without-tcl \
--without-systemd \
--with-zlib= "yes" \
--enable-depend \
$( if $( CONFIG_arc) ,--disable-spinlocks)
# Need a native ecpg, pg_config and zic for build
# Need a native zic and pg_config for build
d e f i n e H o s t / C o m p i l e
$( MAKE) -C $( HOST_BUILD_DIR) /src/bin/pg_config CC = " $( HOSTCC) "
$( MAKE) -C $( HOST_BUILD_DIR) /src/interfaces/ecpg/preproc CC = " $( HOSTCC) "
$( MAKE) -C $( HOST_BUILD_DIR) /src/timezone CC = " $( HOSTCC) "
+$( HOST_MAKE_VARS) MAKELEVEL = 0 $( MAKE) -C $( HOST_BUILD_DIR) /src/bin/pg_config CC = " $( HOSTCC) "
+$( HOST_MAKE_VARS) MAKELEVEL = 0 $( MAKE) -C $( HOST_BUILD_DIR) /src/timezone CC = " $( HOSTCC) "
e n d e f
d e f i n e H o s t / I n s t a l l
@ -168,13 +167,11 @@ define Host/Install
$( INSTALL_BIN) $( HOST_BUILD_DIR) /src/port/libpgport.a $( STAGING_DIR_HOSTPKG) /lib/
$( INSTALL_BIN) $( HOST_BUILD_DIR) /src/bin/pg_config/pg_config $( STAGING_DIR_HOSTPKG) /lib/
$( INSTALL_DIR) $( STAGING_DIR_HOSTPKG) /bin/
$( INSTALL_BIN) $( HOST_BUILD_DIR) /src/interfaces/ecpg/preproc/ecpg $( STAGING_DIR_HOSTPKG) /bin/
$( INSTALL_BIN) $( HOST_BUILD_DIR) /src/timezone/zic $( STAGING_DIR_HOSTPKG) /bin/
e n d e f
d e f i n e B u i l d / C o n f i g u r e
$( Build/Configure/Default)
$( SED) 's@ECPG = ../../preproc/ecpg@ECPG = $(STAGING_DIR_HOSTPKG)/bin/ecpg@' $( PKG_BUILD_DIR) /src/interfaces/ecpg/test/Makefile.regress
d e f i n e B u i l d / C o m p i l e
$( MAKE) -C $( PKG_BUILD_DIR) MAKELEVEL = 0 all contrib
e n d e f
# because PROFILE means something else in the project Makefile