4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
23 include ..
/..
/make-rules
/shared-macros.mk
25 COMPONENT_NAME
= apr-util
26 COMPONENT_VERSION
= 1.5.3
28 COMPONENT_PROJECT_URL
= http
://apr.apache.org
/
29 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
30 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
31 COMPONENT_ARCHIVE_HASH
= \
32 sha256
:76db34cb508e346e3bf69347c29ed1500bf0b71bcc48d54271ad9d1c25703743
33 COMPONENT_ARCHIVE_URL
= http
://archive.apache.org
/dist/apr
/$(COMPONENT_ARCHIVE
)
34 COMPONENT_BUGDB
= utility
/apache
36 CONFIGURE_DEFAULT_DIRS
=no
38 include ..
/..
/make-rules
/prep.mk
39 include ..
/..
/make-rules
/configure.mk
40 include ..
/..
/make-rules
/ips.mk
44 CONFIGURE_PREFIX
=/usr
/apr-util
46 CONFIGURE_OPTIONS
+= --with-mysql
=/usr
/mariadb
/5.5
47 CONFIGURE_OPTIONS
+= --with-pgsql
=$(PG_HOME
)
48 CONFIGURE_OPTIONS
+= --with-expat
=/usr
49 CONFIGURE_OPTIONS
+= --with-sqlite3
=/usr
50 CONFIGURE_OPTIONS
+= --with-ldap
=ldap_r-2.4
51 CONFIGURE_OPTIONS
+= --with-ldap-include
=/usr
/include/openldap
52 CONFIGURE_OPTIONS
+= --without-odbc
53 CONFIGURE_OPTIONS
.32 += --enable-layout
=OpenSolaris
54 CONFIGURE_OPTIONS
.64 += --enable-layout
=OpenSolaris-
$(MACH64
)
55 CONFIGURE_OPTIONS
.32 += --with-apr
=/usr
/apr
/bin
/apr-1-config
56 CONFIGURE_OPTIONS
.64 += --with-apr
=/usr
/apr
/bin
/$(MACH64
)/apr-1-config
57 CONFIGURE_OPTIONS
.64 += MYSQL_CONFIG
=/usr
/mariadb
/5.5/bin
/$(MACH64
)/mysql_config
58 CONFIGURE_OPTIONS
.64 += PGSQL_CONFIG
=$(PG_CONFIG
.64)
60 PATH
=$(SPRO_VROOT
)/bin
:/usr
/bin
:/usr
/gnu
/bin
62 COMPONENT_TEST_TARGETS
= test
64 # We need this to keep doxygen happy (for include/ and docs/ contents).
65 COMPONENT_PRE_CONFIGURE_ACTION
+= ($(CLONEY
) $(SOURCE_DIR
) $(@D
));
67 # Some patches need configure script recreation.
68 COMPONENT_PRE_CONFIGURE_ACTION
+= (cd
$(@D
); autoconf
);
70 # Documentation is generated in and directly packaged from 32 bit build
71 # directory using doxygen.
72 PKG_PROTO_DIRS
+= $(BUILD_DIR
)/$(MACH32
)/docs
/dox
/html
73 PKG_PROTO_DIRS
+= $(BUILD_DIR
)/$(MACH32
)/docs
/dox
/html
/search
75 docs
: $(BUILD_DIR
)/$(MACH32
)/.built
76 cd
$(BUILD_DIR
)/$(MACH32
); doxygen docs
/doxygen.conf
78 build
: $(BUILD_32_and_64
) docs
80 install: $(INSTALL_32_and_64
)
82 test: $(TEST_32_and_64
)
84 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
86 include ..
/..
/make-rules
/depend.mk