components/apr-1_5/Makefile
changeset 1782 5aa8051aaa4b
child 1899 a814d85099bf
equal deleted inserted replaced
1781:d7603a31fdd3 1782:5aa8051aaa4b
       
     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
       
    26 COMPONENT_VERSION=	1.5.0
       
    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:9879f02054cb22e99f605f6fdbf47f4c028af4cd4f351cf64186a7ee447f35d7
       
    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/1.5
       
    44 
       
    45 CONFIGURE_OPTIONS +=	--enable-threads
       
    46 CONFIGURE_OPTIONS +=	--enable-other-child
       
    47 CONFIGURE_OPTIONS +=	--enable-nonportable-atomics
       
    48 CONFIGURE_OPTIONS +=	--enable-shared
       
    49 CONFIGURE_OPTIONS +=	--disable-static
       
    50 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS) $(CPP_LARGEFILES)"
       
    51 CONFIGURE_OPTIONS +=	LTFLAGS="--tag=CC --silent"
       
    52 CONFIGURE_OPTIONS.32 +=	--enable-layout=Solaris
       
    53 CONFIGURE_OPTIONS.64 +=	--enable-layout=Solaris-$(MACH64)
       
    54 
       
    55 COMPONENT_TEST_TARGETS=	test
       
    56 
       
    57 # Some patches need configure script recreation.
       
    58 COMPONENT_PREP_ACTION += (cd $(@D); autoconf);
       
    59 
       
    60 # 32 and 64 bits apr.h headers need to be merged to the final one.
       
    61 APRH=include/apr.h
       
    62 $(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \
       
    63 	diff -D __$(MACH64) $(BUILD_DIR_32)/$(APRH) \
       
    64 	  $(BUILD_DIR_64)/$(APRH) > $(PROTO_DIR)$(CONFIGURE_PREFIX)/$(APRH);
       
    65 
       
    66 $(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \
       
    67 	cd $(SOURCE_DIR); \
       
    68 	sed 's;OUTPUT_DIRECTORY=.*;OUTPUT_DIRECTORY=$(PROTO_DIR)$(CONFIGURE_PREFIX);' \
       
    69           docs/doxygen.conf | doxygen - ;
       
    70 
       
    71 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
       
    72 
       
    73 build: $(BUILD_32_and_64)
       
    74 
       
    75 install: $(INSTALL_32_and_64)
       
    76 
       
    77 test: $(TEST_32_and_64)
       
    78 
       
    79 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    80 
       
    81 include ../../make-rules/depend.mk