|
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) 2015, 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.4 |
|
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:976a12a59bc286d634a21d7be0841cc74289ea9077aa1af46be19d1a6e844c19 |
|
32 COMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE) |
|
33 COMPONENT_BUGDB= utility/apache |
|
34 |
|
35 TPNO= 20776 |
|
36 |
|
37 CONFIGURE_DEFAULT_DIRS=no |
|
38 |
|
39 include ../../make-rules/prep.mk |
|
40 include ../../make-rules/configure.mk |
|
41 include ../../make-rules/ips.mk |
|
42 |
|
43 # Micro version for easy libraries packaging |
|
44 MICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }') |
|
45 PKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION) |
|
46 |
|
47 PATCH_LEVEL=0 |
|
48 |
|
49 CONFIGURE_PREFIX=/usr/apr-util/1.5 |
|
50 |
|
51 CONFIGURE_OPTIONS += --with-mysql=/usr/mysql/5.5 |
|
52 CONFIGURE_OPTIONS += --with-expat=/usr |
|
53 CONFIGURE_OPTIONS += --with-sqlite3=/usr |
|
54 CONFIGURE_OPTIONS += --with-ldap=ldap_r-2.4 |
|
55 CONFIGURE_OPTIONS += --with-ldap-include=/usr/include/openldap |
|
56 CONFIGURE_OPTIONS += --without-odbc |
|
57 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
58 CONFIGURE_OPTIONS.32 += --enable-layout=Solaris |
|
59 CONFIGURE_OPTIONS.64 += --enable-layout=Solaris-$(MACH64) |
|
60 CONFIGURE_OPTIONS.32 += --with-apr=/usr/apr/1.5/bin/apr-1-config |
|
61 CONFIGURE_OPTIONS.64 += --with-apr=/usr/apr/1.5/bin/$(MACH64)/apr-1-config |
|
62 CONFIGURE_OPTIONS.32 += MYSQL_CONFIG=/usr/mysql/5.5/bin/$(MACH32)/mysql_config |
|
63 |
|
64 PATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin |
|
65 ifeq ($(strip $(PARFAIT_BUILD)),yes) |
|
66 PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin |
|
67 endif |
|
68 |
|
69 COMPONENT_TEST_TARGETS= test |
|
70 |
|
71 $(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \ |
|
72 cd $(SOURCE_DIR); \ |
|
73 sed 's;OUTPUT_DIRECTORY=.*;OUTPUT_DIRECTORY=$(PROTO_DIR)$(CONFIGURE_PREFIX);' \ |
|
74 docs/doxygen.conf | doxygen - ; |
|
75 |
|
76 # Some patches need configure script recreation. |
|
77 COMPONENT_PREP_ACTION += (cd $(@D); autoconf); |
|
78 |
|
79 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
|
80 |
|
81 configure: $(CONFIGURE_32_and_64) |
|
82 |
|
83 build: $(BUILD_32_and_64) |
|
84 |
|
85 install: $(INSTALL_32_and_64) |
|
86 |
|
87 test: $(TEST_32_and_64) |
|
88 |
|
89 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
|
90 |
|
91 include ../../make-rules/depend.mk |