databases/postgresql/postgresql.sh

Fri, 15 Nov 2019 20:05:00 +0100

author
David Demelier <markand@malikania.fr>
date
Fri, 15 Nov 2019 20:05:00 +0100
changeset 1207
c9592a9a949b
parent 1169
194681a6d42d
child 1216
6710613b88b9
permissions
-rw-r--r--

python/python2: add DEPRECATED tag

1169
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 #!/bin/sh
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
18 # TODO: add KERBEROS, SELINUX option.
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
19
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
20 PKGNAME=postgresql
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
21 PKGVERSION=12.0
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
22 PKGREVISION=1
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
23 PKGLICENSE="CUSTOM"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
24 PKGSUMMARY="popular object-relational database management system"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
25 PKGDOWNLOAD="https://ftp.postgresql.org/pub/source/v$PKGVERSION/$PKGNAME-$PKGVERSION.tar.gz"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
26 PKGDEPENDS=""
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
27 PKGOPTIONS="COMPLETION ICU LLVM NLS PAM PERL PYTHON SSL TCL XML XSLT ZLIB"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
28 PKGUIDS="postgresql:110"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
29 PKGGIDS="postgresql:110"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
30 PKGPROTECT="etc/rc.d/postgresql"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
31
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
32 : ${CHOST:=$(uname -m)-linux-musl}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
33 : ${CBUILD:=$(uname -m)-linux-musl}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 : ${CC:=clang}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
35 : ${CFLAGS:=-O2}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
36 : ${CXX:=clang++}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 : ${CXXFLAGS:=-O2}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
38 : ${LDFLAGS:=}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
39 : ${LIBS:=}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 : ${COMPLETION:=yes} # Note: can be readline (or yes) or libedit.
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
41 : ${ICU:=no}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
42 : ${LLVM:=no}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
43 : ${NLS:=yes}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
44 : ${PAM:=no}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
45 : ${PERL:=no}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
46 : ${PYTHON:=no}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
47 : ${SSL:=yes} # Note: SSL support through libressl.
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
48 : ${TCL:=no}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
49 : ${XML:=no} # Note: XML: support through libxml2.
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
50 : ${XSLT:=no}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
51 : ${ZLIB:=yes}
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
52
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
53 case "$COMPLETION" in
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
54 "readline"|"yes")
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
55 PKGDEPENDS="readline $PKGDEPENDS"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
56 with_completion="--with-readline"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
57 ;;
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
58 "libedit")
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
59 PKGDEPENDS="libedit $PKGDEPENDS"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
60 with_completion="--without-readline --with-libedit-preferred"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
61 ;;
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
62 *)
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
63 with_completion="--without-readline"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
64 ;;
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
65 esac
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
66
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
67 if [ "$ICU" = "yes" ]; then
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
68 PKGDEPENDS="icu $PKGDEPENDS"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
69 with_icu="--with-icu"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
70 else
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
71 with_icu="--without-icu"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
72 fi
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
73
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
74 if [ "$LLVM" = "yes" ]; then
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
75 PKGDEPENDS="llvm $PKGDEPENDS"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
76 with_llvm="--with-llvm"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
77 else
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
78 with_llvm="--without-llvm"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
79 fi
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
80
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
81 if [ "$NLS" = "yes" ]; then
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
82 PKGDEPENDS="gettext $PKGDEPENDS"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
83 with_nls="--enable-nls"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
84 else
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
85 with_nls="--disable-nls"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
86 fi
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
87
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
88 if [ "$PAM" = "yes" ]; then
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
89 PKGDEPENDS="linux-pam $PKGDEPENDS"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
90 with_pam="--with-pam"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
91 else
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
92 with_pam="--without-pam"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
93 fi
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
94
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
95 if [ "$PERL" = "yes" ]; then
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
96 PKGDEPENDS="perl $PKGDEPENDS"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
97 with_perl="--with-perl"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
98 else
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
99 with_perl="--without-perl"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
100 fi
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
101
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
102 if [ "$PYTHON" = "yes" ]; then
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
103 PKGDEPENDS="python $PKGDEPENDS"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
104 with_python="--with-python"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
105 else
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
106 with_python="--without-python"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
107 fi
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
108
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
109 if [ "$SSL" = "yes" ]; then
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
110 PKGDEPENDS="libressl $PKGDEPENDS"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
111 with_ssl="--with-openssl"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
112 else
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
113 with_ssl="--without-openssl"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
114 fi
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
115
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
116 if [ "$TCL" = "yes" ]; then
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
117 PKGDEPENDS="tcl $PKGDEPENDS"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
118 with_tcl="--with-tcl"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
119 else
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
120 with_tcl="--without-tcl"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
121 fi
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
122
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
123 if [ "$XML" = "yes" ]; then
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
124 PKGDEPENDS="libxml2 $PKGDEPENDS"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
125 with_xml="--with-libxml"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
126 else
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
127 with_xml="--without-libxml"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
128 fi
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
129
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
130 if [ "$XSLT" = "yes" ]; then
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
131 PKGDEPENDS="libxslt $PKGDEPENDS"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
132 with_xslt="--with-libxslt"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
133 else
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
134 with_xslt="--without-libxslt"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
135 fi
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
136
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
137 if [ "$ZLIB" = "yes" ]; then
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
138 PKGDEPENDS="zlib $PKGDEPENDS"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
139 with_zlib="--with-zlib"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
140 else
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
141 with_zlib="--without-zlib"
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
142 fi
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
143
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
144 build()
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
145 {
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
146 rm -rf $PKGNAME-$PKGVERSION
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
147 tar xvf $PKGNAME-$PKGVERSION.tar.gz
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
148 cd $PKGNAME-$PKGVERSION
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
149
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
150 CC="$CC" \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
151 CFLAGS="$CFLAGS" \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
152 CXX="$CXX" \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
153 CXXFLAGS="$CXXFLAGS" \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
154 LDFLAGS="$LDFLAGS" \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
155 LIBS="$LIBS" \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
156 ./configure \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
157 --build=$CBUILD \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
158 --host=$CHOST \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
159 --prefix= \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
160 $with_completion \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
161 $with_icu \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
162 $with_llvm \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
163 $with_nls \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
164 $with_pam \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
165 $with_perl \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
166 $with_python \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
167 $with_ssl \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
168 $with_tcl \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
169 $with_xml \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
170 $with_xslt \
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
171 $with_zlib
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
172 make
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
173 make install DESTDIR=$DESTDIR
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
174 install -Dm0644 ../postgresql $DESTDIR/etc/rc.d/postgresql
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
175
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
176 cd ..
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
177 rm -rf $PKGNAME-$PKGVERSION
194681a6d42d databases/postgresql: initial import, closes #2411
David Demelier <markand@malikania.fr>
parents:
diff changeset
178 }

mercurial