components/psutils/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 1948 2d1537e7942d
permissions -rw-r--r--
Close of build 10.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     1
#
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     3
#
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     7
#
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    12
#
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    18
#
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@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.
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    22
#
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    24
include ../../make-rules/shared-targets.mk
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    25
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    26
COMPONENT_NAME=		psutils
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    27
COMPONENT_VERSION=	p17
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 277
diff changeset
    28
COMPONENT_PROJECT_URL=	http://knackered.knackered.org/angus/psutils/
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    29
COMPONENT_SRC=		$(COMPONENT_NAME)
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE=	$(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
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
    31
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
    32
    sha256:3853eb79584ba8fbe27a815425b65a9f7f15b258e0d43a05a856bdb75d588ae4
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL= http://gd.tuwien.ac.at/publishing/tex/tex-utils/psutils/$(COMPONENT_ARCHIVE)
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    34
#COMPONENT_ARCHIVE_URL= ftp://ftp.knackered.org/pub/psutils/psutils.tar.gz
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    35
# Official ftp sources are currently unavailable, so I'm using mirror I found.
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    36
# I made sure that the tarball is equal to the one present in SFW
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    37
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
    38
COMPONENT_BUGDB=	utility/psutils
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    39
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    40
include ../../make-rules/prep.mk
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    41
include ../../make-rules/justmake.mk
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    42
include ../../make-rules/ips.mk
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    43
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    44
# Can't use 'p17' since that is not accepted by pkg. And homepage
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    45
# http://knackered.knackered.org/angus/psutils/ states that development version
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    46
# is pre-2.0
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    47
IPS_COMPONENT_VERSION=1.17
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    48
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    49
# to stay compatible with nevada settings, letter is default paper size
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    50
CFLAGS += -DPAPER=\\\"letter\\\" -DUNIX
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    51
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    52
COMPONENT_BUILD_ENV += CC=$(CC)
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    53
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    54
COMPONENT_BUILD_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    55
COMPONENT_BUILD_ENV += PERL=$(PERL)
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    56
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    57
# slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    58
# make
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 153
diff changeset
    59
COMPONENT_BUILD_ARGS = -e -f Makefile.unix
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    60
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    61
COMPONENT_INSTALL_ENV += BINDIR=$(PROTO_DIR)/usr/bin
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    62
COMPONENT_INSTALL_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    63
COMPONENT_INSTALL_ENV += MANDIR=$(PROTO_DIR)/usr/share/man/man1
277
12ebd29ad46c 7050602 userland consolidation should build with perl 5.12 by default
craig mohrman <craig.mohrman@oracle.com>
parents: 181
diff changeset
    64
COMPONENT_INSTALL_ENV += PERL=$(PERL)
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    65
COMPONENT_INSTALL_ENV += INSTALL="$(INSTALL) -m 0555"
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    66
COMPONENT_INSTALL_ENV += INSTALLMAN="$(INSTALL) -m 0444"
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    67
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    68
# slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    69
# make
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 153
diff changeset
    70
COMPONENT_INSTALL_ARGS = -e -f Makefile.unix
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    71
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    72
build:		$(BUILD_32)
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    73
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    74
install:	$(INSTALL_32)
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    75
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 153
diff changeset
    76
$(INSTALL_32):	$(PROTOUSRSHAREMAN1DIR) $(PROTOUSRBIN)
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 153
diff changeset
    77
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 153
diff changeset
    78
test:		$(NO_TESTS)
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    79
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    80
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    81
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    82
include ../../make-rules/depend.mk