|
1 # |
|
2 # CDDL HEADER START |
|
3 # |
|
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. |
|
7 # |
|
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. |
|
12 # |
|
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] |
|
18 # |
|
19 # CDDL HEADER END |
|
20 # |
|
21 # Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
|
22 # |
|
23 include ../../make-rules/shared-macros.mk |
|
24 |
|
25 COMPONENT_NAME= apr-util |
|
26 COMPONENT_VERSION= 1.5.3 |
|
27 COMPONENT_PROJECT_URL= http://apr.apache.org/ |
|
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
30 COMPONENT_ARCHIVE_HASH= \ |
|
31 sha256:76db34cb508e346e3bf69347c29ed1500bf0b71bcc48d54271ad9d1c25703743 |
|
32 COMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE) |
|
33 COMPONENT_BUGDB= utility/apache |
|
34 |
|
35 CONFIGURE_DEFAULT_DIRS=no |
|
36 |
|
37 include ../../make-rules/prep.mk |
|
38 include ../../make-rules/configure.mk |
|
39 include ../../make-rules/ips.mk |
|
40 |
|
41 PATCH_LEVEL=0 |
|
42 |
|
43 CONFIGURE_PREFIX=/usr/apr-util/1.5 |
|
44 |
|
45 CONFIGURE_OPTIONS += --with-mysql=/usr/mysql/5.5 |
|
46 CONFIGURE_OPTIONS += --with-expat=/usr |
|
47 CONFIGURE_OPTIONS += --with-sqlite3=/usr |
|
48 CONFIGURE_OPTIONS += --with-ldap=ldap_r-2.4 |
|
49 CONFIGURE_OPTIONS += --with-ldap-include=/usr/include/openldap |
|
50 CONFIGURE_OPTIONS += --without-odbc |
|
51 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
52 CONFIGURE_OPTIONS.32 += --enable-layout=Solaris |
|
53 CONFIGURE_OPTIONS.64 += --enable-layout=Solaris-$(MACH64) |
|
54 CONFIGURE_OPTIONS.32 += --with-apr=/usr/apr/1.5/bin/apr-1-config |
|
55 CONFIGURE_OPTIONS.64 += --with-apr=/usr/apr/1.5/bin/$(MACH64)/apr-1-config |
|
56 CONFIGURE_OPTIONS.32 += MYSQL_CONFIG=/usr/mysql/5.5/bin/$(MACH32)/mysql_config |
|
57 |
|
58 PATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin |
|
59 ifeq ($(strip $(PARFAIT_BUILD)),yes) |
|
60 PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin |
|
61 endif |
|
62 |
|
63 COMPONENT_TEST_TARGETS= test |
|
64 |
|
65 $(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \ |
|
66 cd $(SOURCE_DIR); \ |
|
67 sed 's;OUTPUT_DIRECTORY=.*;OUTPUT_DIRECTORY=$(PROTO_DIR)$(CONFIGURE_PREFIX);' \ |
|
68 docs/doxygen.conf | doxygen - ; |
|
69 |
|
70 # Some patches need configure script recreation. |
|
71 COMPONENT_PREP_ACTION += (cd $(@D); autoconf); |
|
72 |
|
73 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
|
74 |
|
75 build: $(BUILD_32_and_64) |
|
76 |
|
77 install: $(INSTALL_32_and_64) |
|
78 |
|
79 test: $(TEST_32_and_64) |
|
80 |
|
81 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
82 |
|
83 include ../../make-rules/depend.mk |