components/apr/Makefile
changeset 2059 da41cc055371
parent 2058 f97e212983b2
child 2060 a9ad5cd0ec29
equal deleted inserted replaced
2058:f97e212983b2 2059:da41cc055371
     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) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
       
    22 #
       
    23 include ../../make-rules/shared-macros.mk
       
    24 
       
    25 COMPONENT_NAME=		apr
       
    26 COMPONENT_VERSION=	1.3.9
       
    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:562b5f7251f356a221641262e7ba7a4e1d966086df2fb46477ec9e2c748f9f28
       
    32 COMPONENT_ARCHIVE_URL=	http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
       
    33 COMPONENT_BUGDB=	utility/apache
       
    34 
       
    35 TPNO=			6136
       
    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 PATCH_LEVEL=0
       
    44 
       
    45 CONFIGURE_PREFIX=/usr/apr/1.3
       
    46 
       
    47 CONFIGURE_OPTIONS +=	--enable-threads
       
    48 CONFIGURE_OPTIONS +=	--enable-other-child
       
    49 CONFIGURE_OPTIONS +=	--enable-nonportable-atomics
       
    50 CONFIGURE_OPTIONS +=	--enable-shared
       
    51 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS) -DSSL_EXPERIMENTAL -DSSL_ENGINE"
       
    52 CONFIGURE_OPTIONS +=	LTFLAGS="--tag=CC --silent"
       
    53 CONFIGURE_OPTIONS.32 +=	--enable-layout=OpenSolaris
       
    54 CONFIGURE_OPTIONS.64 +=	--enable-layout=OpenSolaris-$(MACH64)
       
    55 CONFIGURE_OPTIONS.32 +=	--with-installbuilddir=$(CONFIGURE_PREFIX)/build
       
    56 CONFIGURE_OPTIONS.64 +=	--with-installbuilddir=$(CONFIGURE_PREFIX)/build/$(MACH64)
       
    57 
       
    58 COMPONENT_TEST_TARGETS=	test
       
    59 
       
    60 # We need this to keep doxygen happy (for include/ and docs/ contents).
       
    61 COMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D));
       
    62 
       
    63 # Some patches need configure script recreation.
       
    64 COMPONENT_PRE_CONFIGURE_ACTION += (cd $(@D); autoconf);
       
    65 
       
    66 # 32 and 64 bits apr.h headers need to be merged to the final one.
       
    67 APRH=include/apr.h
       
    68 $(BUILD_DIR_64)/.installed: COMPONENT_POST_INSTALL_ACTION = \
       
    69 	/usr/bin/diff -D __$(MACH64) $(BUILD_DIR_32)/$(APRH) \
       
    70 	  $(BUILD_DIR_64)/$(APRH) > $(PROTO_DIR)/$(CONFIGURE_PREFIX)/$(APRH); true
       
    71 
       
    72 # Documentation is generated in and directly packaged from 32 bit build
       
    73 # directory using doxygen.
       
    74 PKG_PROTO_DIRS += $(BUILD_DIR_32)/docs/dox/html
       
    75 PKG_PROTO_DIRS += $(BUILD_DIR_32)/docs/dox/html/search
       
    76 
       
    77 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
       
    78 
       
    79 docs: $(BUILD_DIR_32)/.built
       
    80 	cd $(BUILD_DIR_32); doxygen docs/doxygen.conf
       
    81 
       
    82 build: $(BUILD_32_and_64) docs
       
    83 
       
    84 install: $(INSTALL_32_and_64)
       
    85 
       
    86 test: $(TEST_32_and_64)
       
    87 
       
    88 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    89 
       
    90 include ../../make-rules/depend.mk