components/slib/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 11 Mar 2013 10:38:09 -0700
branchs11-update
changeset 2520 ceec631e74d1
parent 2434 6c9bb5cf5610
child 1434 c782e620dd26
child 3661 47545fb8aed4
permissions -rw-r--r--
Close of build 10.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
161
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     1
#
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     3
#
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     7
#
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    12
#
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    18
#
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    20
#
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    21
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
161
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    22
#
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    23
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    24
#
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    25
# This build is modeled after the one in SFW.
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    26
# Attempts to use the native build methods fail because we
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    27
# don't have the scm (scheme) interpreter.
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    28
# So just install this and get on with it.
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    29
#
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    30
include ../../make-rules/shared-macros.mk
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    31
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    32
COMPONENT_NAME=		slib
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    33
COMPONENT_VERSION=	3b1
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 181
diff changeset
    34
COMPONENT_PROJECT_URL=	http://people.csail.mit.edu/jaffer/SLIB/
161
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    35
COMPONENT_SRC=		$(COMPONENT_NAME)
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    36
COMPONENT_ARCHIVE=	$(COMPONENT_SRC)-$(COMPONENT_VERSION).zip
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    37
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    38
    sha256:8e3ec24d51be03ebb7357ad9a2f3554056b86dafbc9e48d1d491aeda1efa566f
161
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    39
COMPONENT_ARCHIVE_URL=	http://groups.csail.mit.edu/mac/ftpdir/scm/OLD/$(COMPONENT_ARCHIVE)
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    40
COMPONENT_BUGDB=	library/slib
161
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    41
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    42
include ../../make-rules/prep.mk
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    43
include ../../make-rules/ips.mk
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    44
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    45
# Lie to IPS packaging about the version because it doesn't like
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    46
# COMPONENT_VERSION's with letters.
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    47
# So if COMPONENT_VERSION changes above this needs to change as well.
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    48
IPS_COMPONENT_VERSION=  3.1.1
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    49
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    50
# nothing to really build
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    51
build: $(SOURCE_DIR)/.prep
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    52
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    53
install: build
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    54
	cd $(SOURCE_DIR) ; \
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    55
		$(MAKE) prefix=$(PROTO_DIR)/usr/ INSTALL=ginstall \
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    56
			man1dir=$(PROTOUSRSHAREMAN1DIR) install
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    57
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 161
diff changeset
    58
test:	$(NO_TESTS)
161
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    59
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    60
clean::
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    61
	$(RM) -r $(BUILD_DIR)
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    62
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    63
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    64
0667002cbaee 7032299 move slib from sfw to userland consolidation
Craig Mohrman <Craig.Mohrman@oracle.com>
parents:
diff changeset
    65
include ../../make-rules/depend.mk