components/libmicrohttpd/Makefile
author Drew Fisher <drew.fisher@oracle.com>
Thu, 23 Mar 2017 08:04:21 -0700
changeset 7801 0dc67d04f8bb
parent 7790 178c7062efc0
permissions -rw-r--r--
25772305 problem in SERVICE/NOVA
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3738
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     1
#
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     3
#
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     7
#
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    12
#
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    18
#
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    21
3738
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    23
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    24
#
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    25
BUILD_BITS= 64_and_32
3738
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    27
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME = libmicrohttpd
7790
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    29
COMPONENT_VERSION = 0.9.52
3738
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE_HASH = \
7790
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    31
    sha256:54797f6e763d417627f89f60e4ae0a431dab0523f92f83def23ea02d0defafea
3738
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    32
COMPONENT_BUGDB=	library/libmicrohttpd
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6552
diff changeset
    33
COMPONENT_ANITYA_ID=	1658
3738
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    34
7790
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    35
TPNO = 32330
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    36
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    37
# Use the compiler default 'xc99=all,no_lib' (specifically we want to prevent
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    38
# autoconf from finding and using C11 Annex K bounds checking interfaces because
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    39
# ON then won't be able to link with this library).
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    40
studio_C99MODE=-xc99=all,no_lib
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    41
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    42
# Needed for "gmake test" to work successfully.
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    43
unexport SHELLOPTS
3738
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    44
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    45
include $(WS_MAKE_RULES)/gnu-component.mk
3738
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    46
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    47
LINT_FLAGS += -I$(PROTOUSRINCDIR)
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    48
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    49
CPPFLAGS += $(CPP_LARGEFILES)
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    50
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    51
CONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/microhttpd
7790
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    52
PKG_CONFIG_PATHS.32 += /usr/lib/pkgconfig/gnutls-3
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    53
PKG_CONFIG_PATHS.64 += /usr/lib/$(MACH64)/pkgconfig/gnutls-3
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    54
PKG_CONFIG_PATHS += $(PKG_CONFIG_PATHS.$(BITS))
3738
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    55
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    56
COMPONENT_TEST_ENV +=	PATH="$(GNUBIN):$(PATH)"
19e0324097d4 PSARC/2014/289 libmicrohttpd
Tomas Heran <tomas.heran@oracle.com>
parents:
diff changeset
    57
4088
98a08684d104 17069132 Ship automake 1.15
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3817
diff changeset
    58
COMPONENT_PREP_ACTION += \
7790
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    59
	(cd $(@D); ACLOCAL=aclocal-1.15 AUTOMAKE=automake-1.15 autoreconf -fiv);
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    60
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    61
REQUIRED_PACKAGES += library/gnutls-3
178c7062efc0 23210175 Upgrade libmicrohttpd to 0.9.52
Tomas Heran <tomas.heran@oracle.com>
parents: 7687
diff changeset
    62
REQUIRED_PACKAGES += system/library/security/libgcrypt