components/dnsmasq/Makefile
author Shawn Walker-Salas <shawn.walker@oracle.com>
Wed, 30 Mar 2016 13:33:31 -0700
changeset 5682 94c0ca64c022
parent 4339 6501cf9c29f9
child 6746 5a7cd15a88f8
permissions -rw-r--r--
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh 22228656 remove redundant declarations and additions from makefiles 22252545 simplify build rules for components from common upstream 22378457 tclConfig.sh compiler settings are too specific 22727315 httping curses gui missing 22750630 procmail ignores userland cflags and may use private strstr function 22758725 wdiff uses diff from PATH instead of /usr/gnu/bin/diff 22926847 cloog Makefile typo when setting ASLR_MODE 22935090 tk config script has wrong linker flags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1697
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     1
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     3
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     7
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    12
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    18
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    20
#
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    21
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    22
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    23
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
1697
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    24
#
5682
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
1697
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    27
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    28
# i18n component requires GNU xgettext
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    29
PATH=$(GNUBIN):$(USRBINDIR):$(USRSBINDIR)
1697
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    30
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    31
COMPONENT_NAME=		dnsmasq
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    32
COMPONENT_VERSION=	2.68
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    33
COMPONENT_PROJECT_URL=	http://www.thekelleys.org.uk
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    34
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_HASH=	\
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    37
    sha256:402019d61f53f1ccc04cc6218719fd3b158ea3fca9a83ab55471f981a2097c2f
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    39
COMPONENT_BUGDB=	service/dnsmasq
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    40
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1697
diff changeset
    41
TPNO=			16307
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1697
diff changeset
    42
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    43
BUILD_STYLE= justmake
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    44
TEST_TARGET= $(NO_TESTS)
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)/common.mk
1697
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    46
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    47
COMPONENT_BUILD_ENV += CC="$(CC)"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    48
COMPONENT_BUILD_ARGS += CC="$(CC)"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    49
COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    50
COMPONENT_BUILD_ARGS += LOCALEDIR="$(USRSHARELOCALEDIR)"
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    51
COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS) $(CC_BITS)"
1697
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    52
COMPONENT_BUILD_TARGETS = "all-i18n"
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    53
COMPONENT_INSTALL_ARGS += PREFIX="$(USRDIR)"
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4339
diff changeset
    54
COMPONENT_INSTALL_ARGS += BINDIR="$(USRLIBDIR)/inet"
1697
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    55
COMPONENT_INSTALL_TARGETS = "install-i18n"
418a0b84f905 PSARC 2014/035 Dnsmasq 2.68
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    56
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    57
REQUIRED_PACKAGES += library/libidn
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    58
REQUIRED_PACKAGES += system/core-os