0
0
Fork 0
haikuports/dev-db/postgresql/postgresql-9.3.5.recipe

123 lines
4.3 KiB
Bash
Raw Permalink Normal View History

SUMMARY="A powerful object-relational database system"
DESCRIPTION="PostgreSQL has more than 15 years of active development and a \
proven architecture that has earned it a strong reputation for reliability, \
data integrity, and correctness.
* It runs on all major operating systems, including Linux, UNIX (AIX, BSD, \
HP-UX, SGI IRIX, Mac OS X, Solaris, Tru64), and Windows.
* It is fully ACID compliant, has full support for foreign keys, joins, \
views, triggers, and stored procedures (in multiple languages).
* It includes most SQL:2008 data types, including INTEGER, NUMERIC, BOOLEAN, \
CHAR, VARCHAR, DATE, INTERVAL, and TIMESTAMP.
* It supports storage of binary large objects, including pictures, sounds, or \
video.
* It has native programming interfaces for C/C++, Java, .Net, Perl, Python, \
Ruby, Tcl, ODBC, among others, and exceptional documentation."
2018-05-30 06:05:12 +00:00
HOMEPAGE="https://www.postgresql.org/"
2015-06-09 20:25:06 +00:00
COPYRIGHT="1996-2014 PostgreSQL Global Development Group"
LICENSE="PostgreSQL"
2018-05-30 06:05:12 +00:00
REVISION="3"
SOURCE_URI="http://ftp.postgresql.org/pub/source/v$portVersion/postgresql-$portVersion.tar.bz2"
2015-06-09 20:25:06 +00:00
CHECKSUM_SHA256="14176ffb1f90a189e7626214365be08ea2bfc26f26994bafb4235be314b9b4b0"
SOURCE_DIR="postgresql-$portVersion"
PATCHES="postgresql-$portVersion.patchset"
ARCHITECTURES="!all x86_gcc2 ?x86"
2015-06-09 20:25:06 +00:00
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
postgresql$secondaryArchSuffix = $portVersion compat >= 9
cmd:clusterdb$secondaryArchSuffix = $portVersion compat >= 9
cmd:createdb$secondaryArchSuffix = $portVersion compat >= 9
cmd:createlang$secondaryArchSuffix = $portVersion compat >= 9
cmd:createuser$secondaryArchSuffix = $portVersion compat >= 9
cmd:dropdb$secondaryArchSuffix = $portVersion compat >= 9
cmd:droplang$secondaryArchSuffix = $portVersion compat >= 9
cmd:dropuser$secondaryArchSuffix = $portVersion compat >= 9
cmd:ecpg$secondaryArchSuffix = $portVersion compat >= 9
cmd:initdb$secondaryArchSuffix = $portVersion compat >= 9
cmd:pg_basebackup$secondaryArchSuffix = $portVersion compat >= 9
cmd:pg_config$secondaryArchSuffix = $portVersion compat >= 9
cmd:pg_controldata$secondaryArchSuffix = $portVersion compat >= 9
cmd:pg_ctl$secondaryArchSuffix = $portVersion compat >= 9
cmd:pg_dump$secondaryArchSuffix = $portVersion compat >= 9
cmd:pg_dumpall$secondaryArchSuffix = $portVersion compat >= 9
cmd:pg_isready$secondaryArchSuffix = $portVersion compat >= 9
cmd:pg_receivexlog$secondaryArchSuffix = $portVersion compat >= 9
cmd:pg_resetxlog$secondaryArchSuffix = $portVersion compat >= 9
cmd:pg_restore$secondaryArchSuffix = $portVersion compat >= 9
cmd:postgres$secondaryArchSuffix = $portVersion compat >= 9
cmd:postmaster$secondaryArchSuffix = $portVersion compat >= 9
cmd:psql$secondaryArchSuffix = $portVersion compat >= 9
cmd:reindexdb$secondaryArchSuffix = $portVersion compat >= 9
cmd:vacuumdb$secondaryArchSuffix = $portVersion compat >= 9
lib:libecpg$secondaryArchSuffix = $portVersion compat >= 9
lib:libecpg_compat$secondaryArchSuffix = $portVersion compat >= 9
lib:libpgtypes$secondaryArchSuffix = $portVersion compat >= 9
lib:libpq$secondaryArchSuffix = $portVersion compat >= 9
"
2015-06-09 20:25:06 +00:00
REQUIRES="
haiku$secondaryArchSuffix
lib:libreadline$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
2015-06-09 20:25:06 +00:00
PROVIDES_devel="
postgresql${secondaryArchSuffix}_devel = $portVersion
devel:libecpg$secondaryArchSuffix = $portVersion
2018-08-08 14:18:18 +00:00
devel:libecpg_compat$secondaryArchSuffix = $portVersion
devel:libpgcommon$secondaryArchSuffix = $portVersion
devel:libpgport$secondaryArchSuffix = $portVersion
2015-06-09 20:25:06 +00:00
devel:libpgtypes$secondaryArchSuffix = $portVersion
devel:libpq$secondaryArchSuffix = $portVersion
"
2015-06-09 20:25:06 +00:00
REQUIRES_devel="
postgresql${secondaryArchSuffix} == $portVersion base
"
2015-06-09 20:25:06 +00:00
2016-02-17 19:26:37 +00:00
BUILD_REQUIRES="
devel:libreadline$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:aclocal
cmd:awk
cmd:bison
cmd:flex
2018-08-08 14:18:18 +00:00
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
2015-06-09 20:25:06 +00:00
BUILD()
{
CFLAGS=-D_BSD_SOURCE runConfigure ./configure
2015-06-09 20:25:06 +00:00
make $jobArgs
}
INSTALL()
{
make install
2015-06-09 20:25:06 +00:00
prepareInstalledDevelLibs libpgport \
libpgcommon \
libecpg \
libpgtypes \
libpq \
libecpg_compat
fixPkgconfig
mkdir -p $developLibDir/postgresql/pgxs
mv $libDir/postgresql/pgxs $developLibDir/postgresql/
packageEntries devel \
$developDir
}
TEST()
{
make check
}