Mike Sullivan
2012-04-27 35e110e60bf90ba837884dc5b9d0787ce91eb2dd
commit | author | age
3cc3ad 1 #
PS 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 #
696288 21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3cc3ad 22 #
PS 23 include ../../make-rules/shared-macros.mk
24
25 COMPONENT_NAME=        apr
26 COMPONENT_VERSION=    1.3.9
60e6e0 27 COMPONENT_PROJECT_URL=    http://apr.apache.org/
3cc3ad 28 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
PS 29 COMPONENT_ARCHIVE=    $(COMPONENT_SRC).tar.gz
35e110 30 COMPONENT_ARCHIVE_HASH=    \
MS 31     sha256:562b5f7251f356a221641262e7ba7a4e1d966086df2fb46477ec9e2c748f9f28
3cc3ad 32 COMPONENT_ARCHIVE_URL=    http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
PS 33
312c03 34 CONFIGURE_DEFAULT_DIRS=no
PS 35
3cc3ad 36 include ../../make-rules/prep.mk
PS 37 include ../../make-rules/configure.mk
38 include ../../make-rules/ips.mk
39
40 PATCH_LEVEL=0
41
3cec7d 42 CONFIGURE_PREFIX=/usr/apr/1.3
3cc3ad 43
PS 44 CONFIGURE_OPTIONS +=    --enable-threads
45 CONFIGURE_OPTIONS +=    --enable-other-child
46 CONFIGURE_OPTIONS +=    --enable-nonportable-atomics
47 CONFIGURE_OPTIONS +=    --enable-shared
48 CONFIGURE_OPTIONS +=    CFLAGS="$(CFLAGS) -DSSL_EXPERIMENTAL -DSSL_ENGINE"
49 CONFIGURE_OPTIONS +=    LTFLAGS="--tag=CC --silent"
50 CONFIGURE_OPTIONS.32 +=    --enable-layout=OpenSolaris
51 CONFIGURE_OPTIONS.64 +=    --enable-layout=OpenSolaris-$(MACH64)
3cec7d 52 CONFIGURE_OPTIONS.32 +=    --with-installbuilddir=$(CONFIGURE_PREFIX)/build
NJ 53 CONFIGURE_OPTIONS.64 +=    --with-installbuilddir=$(CONFIGURE_PREFIX)/build/$(MACH64)
3cc3ad 54
PS 55 COMPONENT_TEST_TARGETS=    test
56
57 # We need this to keep doxygen happy (for include/ and docs/ contents).
58 COMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D));
59
60 # Some patches need configure script recreation.
61 COMPONENT_PRE_CONFIGURE_ACTION += (cd $(@D); autoconf);
62
63 # 32 and 64 bits apr.h headers need to be merged to the final one.
64 APRH=include/apr.h
65 $(BUILD_DIR_64)/.installed: COMPONENT_POST_INSTALL_ACTION = \
66     /usr/bin/diff -D __$(MACH64) $(BUILD_DIR_32)/$(APRH) \
7a2c33 67       $(BUILD_DIR_64)/$(APRH) > $(PROTO_DIR)/$(CONFIGURE_PREFIX)/$(APRH); true
3cc3ad 68
PS 69 # Documentation is generated in and directly packaged from 32 bit build
70 # directory using doxygen.
71 PKG_PROTO_DIRS += $(BUILD_DIR_32)/docs/dox/html
696288 72 PKG_PROTO_DIRS += $(BUILD_DIR_32)/docs/dox/html/search
3cec7d 73
3cc3ad 74 docs: $(BUILD_DIR_32)/.built
PS 75     cd $(BUILD_DIR_32); doxygen docs/doxygen.conf
76
77 build: $(BUILD_32_and_64) docs
78
79 install: $(INSTALL_32_and_64)
80
81 test: $(TEST_32_and_64)
82
83 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
84
85 include ../../make-rules/depend.mk