16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
21 |
22 # |
22 # |
|
23 # Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 |
|
26 # Prefer 32-bit over 64-bit as apr-util has its own custom package layout. |
|
27 BUILD_BITS= 32_and_64 |
23 include ../../make-rules/shared-macros.mk |
28 include ../../make-rules/shared-macros.mk |
24 |
29 |
25 COMPONENT_NAME= apr-util |
30 COMPONENT_NAME= apr-util |
26 COMPONENT_VERSION= 1.5.4 |
31 COMPONENT_VERSION= 1.5.4 |
27 COMPONENT_PROJECT_URL= http://apr.apache.org/ |
32 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= \ |
33 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:976a12a59bc286d634a21d7be0841cc74289ea9077aa1af46be19d1a6e844c19 |
34 sha256:976a12a59bc286d634a21d7be0841cc74289ea9077aa1af46be19d1a6e844c19 |
32 COMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE) |
35 COMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE) |
33 COMPONENT_BUGDB= utility/apache |
36 COMPONENT_BUGDB= utility/apache |
34 |
37 |
35 TPNO= 20776 |
38 TPNO= 20776 |
36 |
39 |
37 CONFIGURE_DEFAULT_DIRS=no |
40 CONFIGURE_DEFAULT_DIRS=no |
38 |
41 include $(WS_MAKE_RULES)/common.mk |
39 include $(WS_MAKE_RULES)/prep.mk |
|
40 include $(WS_MAKE_RULES)/configure.mk |
|
41 include $(WS_MAKE_RULES)/ips.mk |
|
42 |
42 |
43 # Micro version for easy libraries packaging |
43 # Micro version for easy libraries packaging |
44 MICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }') |
44 MICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }') |
45 PKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION) |
45 PKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION) |
46 |
46 |
47 PATCH_LEVEL=0 |
47 PATCH_LEVEL=0 |
48 |
48 |
49 CONFIGURE_PREFIX=/usr/apr-util/1.5 |
49 CONFIGURE_PREFIX=$(USRDIR)/apr-util/1.5 |
50 |
50 |
51 CONFIGURE_OPTIONS += --with-mysql=/usr/mysql/5.5 |
51 CONFIGURE_OPTIONS += --with-mysql=$(USRDIR)/mysql/5.5 |
52 CONFIGURE_OPTIONS += --with-expat=/usr |
52 CONFIGURE_OPTIONS += --with-expat=$(USRDIR) |
53 CONFIGURE_OPTIONS += --with-sqlite3=/usr |
53 CONFIGURE_OPTIONS += --with-sqlite3=$(USRDIR) |
54 CONFIGURE_OPTIONS += --with-ldap=ldap_r-2.4 |
54 CONFIGURE_OPTIONS += --with-ldap=ldap_r-2.4 |
55 CONFIGURE_OPTIONS += --with-ldap-include=/usr/include/openldap |
55 CONFIGURE_OPTIONS += --with-ldap-include=$(USRINCDIR)/openldap |
56 CONFIGURE_OPTIONS += --without-odbc |
56 CONFIGURE_OPTIONS += --without-odbc |
57 CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
|
58 CONFIGURE_OPTIONS.32 += --enable-layout=Solaris |
57 CONFIGURE_OPTIONS.32 += --enable-layout=Solaris |
59 CONFIGURE_OPTIONS.64 += --enable-layout=Solaris-$(MACH64) |
58 CONFIGURE_OPTIONS.64 += --enable-layout=Solaris-$(MACH64) |
60 CONFIGURE_OPTIONS.32 += --with-apr=/usr/apr/1.5/bin/apr-1-config |
59 CONFIGURE_OPTIONS.32 += --with-apr=$(USRDIR)/apr/1.5/bin/apr-1-config |
61 CONFIGURE_OPTIONS.64 += --with-apr=/usr/apr/1.5/bin/$(MACH64)/apr-1-config |
60 CONFIGURE_OPTIONS.64 += --with-apr=$(USRDIR)/apr/1.5/bin/$(MACH64)/apr-1-config |
62 CONFIGURE_OPTIONS.32 += MYSQL_CONFIG=/usr/mysql/5.5/bin/$(MACH32)/mysql_config |
61 CONFIGURE_OPTIONS.32 += MYSQL_CONFIG=$(USRDIR)/mysql/5.5/bin/$(MACH32)/mysql_config |
63 |
62 |
64 PATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin |
|
65 ifeq ($(strip $(PARFAIT_BUILD)),yes) |
63 ifeq ($(strip $(PARFAIT_BUILD)),yes) |
66 PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin |
64 PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN) |
|
65 else |
|
66 PATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN) |
67 endif |
67 endif |
68 |
68 |
69 COMPONENT_TEST_TARGETS= test |
69 COMPONENT_TEST_TARGETS= test |
70 |
70 |
71 $(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \ |
71 $(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \ |
72 cd $(SOURCE_DIR); \ |
72 cd $(SOURCE_DIR); \ |
73 sed 's;OUTPUT_DIRECTORY=.*;OUTPUT_DIRECTORY=$(PROTO_DIR)$(CONFIGURE_PREFIX);' \ |
73 sed 's;OUTPUT_DIRECTORY=.*;OUTPUT_DIRECTORY=$(PROTO_DIR)$(CONFIGURE_PREFIX);' \ |
74 docs/doxygen.conf | doxygen - ; |
74 docs/doxygen.conf | doxygen - ; |
75 |
75 |
76 # Some patches need configure script recreation. |
76 # Some patches need configure script recreation. |
77 COMPONENT_PREP_ACTION += (cd $(@D); autoconf); |
77 COMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fi); |
78 |
78 |
79 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
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 system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED) |
|
90 |
|
91 |
80 |
92 REQUIRED_PACKAGES += database/mysql-55 |
81 REQUIRED_PACKAGES += database/mysql-55 |
93 REQUIRED_PACKAGES += database/mysql-55/library |
82 REQUIRED_PACKAGES += database/mysql-55/library |
94 REQUIRED_PACKAGES += database/sqlite-3 |
83 REQUIRED_PACKAGES += database/sqlite-3 |
95 REQUIRED_PACKAGES += developer/documentation-tool/doxygen |
84 REQUIRED_PACKAGES += developer/documentation-tool/doxygen |
96 REQUIRED_PACKAGES += library/apr-15 |
85 REQUIRED_PACKAGES += library/apr-15 |
97 REQUIRED_PACKAGES += library/expat |
86 REQUIRED_PACKAGES += library/expat |
98 REQUIRED_PACKAGES += library/openldap |
87 REQUIRED_PACKAGES += library/openldap |
99 REQUIRED_PACKAGES += shell/ksh93 |
88 REQUIRED_PACKAGES += shell/ksh93 |
100 REQUIRED_PACKAGES += system/library |
|
101 REQUIRED_PACKAGES += system/library/math |
89 REQUIRED_PACKAGES += system/library/math |