Makefile revision 3996
153N/A#
153N/A# CDDL HEADER START
153N/A#
153N/A# The contents of this file are subject to the terms of the
153N/A# Common Development and Distribution License (the "License").
153N/A# You may not use this file except in compliance with the License.
153N/A#
153N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
153N/A# or http://www.opensolaris.org/os/licensing.
153N/A# See the License for the specific language governing permissions
153N/A# and limitations under the License.
153N/A#
153N/A# When distributing Covered Code, include this CDDL HEADER in each
153N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
153N/A# If applicable, add the following below this CDDL HEADER, with the
153N/A# fields enclosed by brackets "[]" replaced with your own identifying
153N/A# information: Portions Copyright [yyyy] [name of copyright owner]
153N/A#
153N/A# CDDL HEADER END
153N/A#
3996N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
153N/A#
153N/Ainclude ../../make-rules/shared-macros.mk
3996N/Ainclude $(WS_MAKE_RULES)/shared-targets.mk
153N/A
153N/ACOMPONENT_NAME= psutils
153N/ACOMPONENT_VERSION= p17
618N/ACOMPONENT_PROJECT_URL= http://knackered.knackered.org/angus/psutils/
153N/ACOMPONENT_SRC= $(COMPONENT_NAME)
153N/ACOMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
844N/A sha256:3853eb79584ba8fbe27a815425b65a9f7f15b258e0d43a05a856bdb75d588ae4
153N/ACOMPONENT_ARCHIVE_URL= http://gd.tuwien.ac.at/publishing/tex/tex-utils/psutils/$(COMPONENT_ARCHIVE)
153N/A#COMPONENT_ARCHIVE_URL= ftp://ftp.knackered.org/pub/psutils/psutils.tar.gz
153N/A# Official ftp sources are currently unavailable, so I'm using mirror I found.
153N/A# I made sure that the tarball is equal to the one present in SFW
153N/A
1273N/ACOMPONENT_BUGDB= utility/psutils
1273N/A
3661N/ATPNO= 9004
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/justmake.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
153N/A
153N/A# Can't use 'p17' since that is not accepted by pkg. And homepage
153N/A# http://knackered.knackered.org/angus/psutils/ states that development version
153N/A# is pre-2.0
153N/AIPS_COMPONENT_VERSION=1.17
153N/A
153N/A# to stay compatible with nevada settings, letter is default paper size
153N/ACFLAGS += -DPAPER=\\\"letter\\\" -DUNIX
153N/A
153N/ACOMPONENT_BUILD_ENV += CC=$(CC)
153N/ACOMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
153N/ACOMPONENT_BUILD_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
153N/ACOMPONENT_BUILD_ENV += PERL=$(PERL)
153N/A
153N/A# slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to
153N/A# make
181N/ACOMPONENT_BUILD_ARGS = -e -f Makefile.unix
153N/A
153N/ACOMPONENT_INSTALL_ENV += BINDIR=$(PROTO_DIR)/usr/bin
153N/ACOMPONENT_INSTALL_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
153N/ACOMPONENT_INSTALL_ENV += MANDIR=$(PROTO_DIR)/usr/share/man/man1
277N/ACOMPONENT_INSTALL_ENV += PERL=$(PERL)
153N/ACOMPONENT_INSTALL_ENV += INSTALL="$(INSTALL) -m 0555"
153N/ACOMPONENT_INSTALL_ENV += INSTALLMAN="$(INSTALL) -m 0444"
153N/A
153N/A# slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to
153N/A# make
181N/ACOMPONENT_INSTALL_ARGS = -e -f Makefile.unix
153N/A
153N/Abuild: $(BUILD_32)
153N/A
153N/Ainstall: $(INSTALL_32)
153N/A
181N/A$(INSTALL_32): $(PROTOUSRSHAREMAN1DIR) $(PROTOUSRBIN)
181N/A
181N/Atest: $(NO_TESTS)
153N/A
153N/A
3996N/AREQUIRED_PACKAGES += runtime/perl-512
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/library