1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
33 # --- Settings -----------------------------------------------------
35 .INCLUDE
: settings.mk
37 # --- Files --------------------------------------------------------
39 TARFILE_NAME
=postgresql-9.1
.1
40 TARFILE_MD5
=061a9f17323117c9358ed60f33ecff78
42 postgresql-moz-ldap.patch \
43 postgresql-libs-leak.patch \
44 libpq-parallel-build.patch \
45 $(TARFILE_NAME
)-libreoffice.patch \
46 $(TARFILE_NAME
)-autoreconf.patch
48 .IF
"$(SYSTEM_POSTGRESQL)" == "YES"
50 @echo
"Using system postgresql..."
54 .IF
"$(GUI)$(COM)"=="WNTMSC"
59 BUILD_ACTION
= nmake
-f win32.mak USE_SSL
=1
60 .IF
"$(WITH_LDAP)" == "YES"
61 BUILD_ACTION
+= USE_LDAP
=1
62 .IF
"$(WITH_OPENLDAP)" != "YES"
63 SOLARINC
+= -I
$(SOLARVER
)$/$(INPATH
)$/inc
$/mozilla
$/ldap
64 BUILD_ACTION
+= USE_MOZLDAP
=1
66 .ENDIF
# "$(WITH_LDAP)" == "YES"
67 .ELSE
#"$(GUI)$(COM)"!="WNTMSC"
69 BUILD_DIR
=src
/interfaces
/libpq
71 CONFIGURE_ACTION
= CPPFLAGS
="$(SOLARINC)" LDFLAGS
="$(SOLARLIB)" .
/configure
--without-readline
--disable-shared
--with-openssl
73 .IF
"$(CROSS_COMPILING)" == "YES"
74 CONFIGURE_ACTION
+= --build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)
77 .IF
"$(WITH_LDAP)" == "YES"
78 CONFIGURE_ACTION
+= --with-ldap
79 .IF
"$(WITH_OPENLDAP)" != "YES"
80 CONFIGURE_ACTION
+= --with-includes
='$(SOLARVER)$/$(INPATH)$/inc$/mozilla$/ldap' --with-mozldap
82 .ENDIF
# "$(WITH_LDAP)" == "YES"
84 .IF
"$(WITH_KRB5)" == "YES"
85 CONFIGURE_ACTION
+= --with-krb5
87 .IF
"$(WITH_GSSAPI)" == "YES"
88 CONFIGURE_ACTION
+= --with-gssapi
91 BUILD_ACTION
= make
-j
$(GMAKE_MODULE_PARALLELISM
) all-static-lib libpq-flags.mk
93 .ENDIF
# "$(GUI)$(COM)"=="WNTMSC"
95 # --- Targets ------------------------------------------------------