components/psutils/Makefile
author Stacy Yeh <stacy.yeh@oracle.com>
Thu, 21 May 2015 13:48:49 -0700
changeset 4339 6501cf9c29f9
parent 3817 30b42c38bbc4
child 5638 b88b6c00208e
permissions -rw-r--r--
21116842 add system-test targets to each component Makefile and to top-level Makefiles
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
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    21
# Copyright (c) 2011, 2015, 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
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    24
include $(WS_MAKE_RULES)/shared-targets.mk
153
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
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    38
COMPONENT_BUGDB=	utility/psutils
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    39
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    40
TPNO=			9004
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    41
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    42
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    43
include $(WS_MAKE_RULES)/justmake.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    44
include $(WS_MAKE_RULES)/ips.mk
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    45
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    46
# 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
    47
# 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
    48
# is pre-2.0
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    49
IPS_COMPONENT_VERSION=1.17
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    50
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    51
# 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
    52
CFLAGS += -DPAPER=\\\"letter\\\" -DUNIX
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    53
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    54
COMPONENT_BUILD_ENV += CC=$(CC)
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    55
COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    56
COMPONENT_BUILD_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    57
COMPONENT_BUILD_ENV += PERL=$(PERL)
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    58
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    59
# 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
    60
# make
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 153
diff changeset
    61
COMPONENT_BUILD_ARGS = -e -f Makefile.unix
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    62
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    63
COMPONENT_INSTALL_ENV += BINDIR=$(PROTO_DIR)/usr/bin
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    64
COMPONENT_INSTALL_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    65
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
    66
COMPONENT_INSTALL_ENV += PERL=$(PERL)
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    67
COMPONENT_INSTALL_ENV += INSTALL="$(INSTALL) -m 0555"
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    68
COMPONENT_INSTALL_ENV += INSTALLMAN="$(INSTALL) -m 0444"
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    69
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    70
# 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
    71
# make
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 153
diff changeset
    72
COMPONENT_INSTALL_ARGS = -e -f Makefile.unix
153
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
build:		$(BUILD_32)
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    75
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    76
install:	$(INSTALL_32)
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    77
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 153
diff changeset
    78
$(INSTALL_32):	$(PROTOUSRSHAREMAN1DIR) $(PROTOUSRBIN)
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 153
diff changeset
    79
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 153
diff changeset
    80
test:		$(NO_TESTS)
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    81
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    82
system-test:    $(NO_TESTS)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    83
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    84
REQUIRED_PACKAGES += runtime/perl-512
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    85
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    86
REQUIRED_PACKAGES += system/library