components/psutils/Makefile
author Shawn Walker-Salas <shawn.walker@oracle.com>
Wed, 30 Mar 2016 13:33:31 -0700
changeset 5682 94c0ca64c022
parent 5638 b88b6c00208e
child 5752 bf899c64486e
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:
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
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    22
#
5638
b88b6c00208e 22970244 userland should build with perl 5.22 as the default
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4339
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@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: 5638
diff changeset
    25
BUILD_BITS= 32
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    26
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
    27
include $(WS_MAKE_RULES)/shared-targets.mk
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    28
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    29
COMPONENT_NAME=		psutils
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    30
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
    31
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
    32
COMPONENT_SRC=		$(COMPONENT_NAME)
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    33
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
    34
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
    35
    sha256:3853eb79584ba8fbe27a815425b65a9f7f15b258e0d43a05a856bdb75d588ae4
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_URL= http://gd.tuwien.ac.at/publishing/tex/tex-utils/psutils/$(COMPONENT_ARCHIVE)
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    37
HUMAN_VERSION=		$(COMPONENT_VERSION)
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    38
#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
    39
# 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
    40
# 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
    41
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1058
diff changeset
    42
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
    43
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    44
BUILD_STYLE= justmake
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    45
TEST_TARGET= $(NO_TESTS)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    46
include $(WS_MAKE_RULES)/common.mk
153
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    47
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    48
# 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
    49
# 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
    50
# is pre-2.0
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    51
IPS_COMPONENT_VERSION=1.17
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    52
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    53
# 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
    54
CFLAGS += -DPAPER=\\\"letter\\\" -DUNIX
b6b8b3648e20 7027078 move psutils to userland
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    55
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    56
COMPONENT_BUILD_ENV += INCLUDEDIR=$(PROTOUSRSHAREDIR)/psutils
153
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
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    63
COMPONENT_INSTALL_ENV += BINDIR=$(PROTOUSRBINDIR)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    64
COMPONENT_INSTALL_ENV += INCLUDEDIR=$(PROTOUSRSHAREDIR)/psutils
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5638
diff changeset
    65
COMPONENT_INSTALL_ENV += MANDIR=$(PROTOUSRSHAREMAN1DIR)
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
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 153
diff changeset
    74
$(INSTALL_32):	$(PROTOUSRSHAREMAN1DIR) $(PROTOUSRBIN)
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 153
diff changeset
    75
5638
b88b6c00208e 22970244 userland should build with perl 5.22 as the default
Craig Mohrman <craig.mohrman@oracle.com>
parents: 4339
diff changeset
    76
REQUIRED_PACKAGES += $(PERL_PKG)
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    77
REQUIRED_PACKAGES += shell/ksh93