Makefile revision 181
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# CDDL HEADER START
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# The contents of this file are subject to the terms of the
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# Common Development and Distribution License (the "License").
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# You may not use this file except in compliance with the License.
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# See the License for the specific language governing permissions
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# and limitations under the License.
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# When distributing Covered Code, include this CDDL HEADER in each
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# If applicable, add the following below this CDDL HEADER, with the
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# fields enclosed by brackets "[]" replaced with your own identifying
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# information: Portions Copyright [yyyy] [name of copyright owner]
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# CDDL HEADER END
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin MaltbyCOMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin MaltbyCOMPONENT_ARCHIVE_HASH= sha1:6f1ecb5846cffb644826a02bd9153fe5d6387a9b
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin MaltbyCOMPONENT_ARCHIVE_URL= http://gd.tuwien.ac.at/publishing/tex/tex-utils/psutils/$(COMPONENT_ARCHIVE)
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby#COMPONENT_ARCHIVE_URL= ftp://ftp.knackered.org/pub/psutils/psutils.tar.gz
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# Official ftp sources are currently unavailable, so I'm using mirror I found.
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# I made sure that the tarball is equal to the one present in SFW
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# Can't use 'p17' since that is not accepted by pkg. And homepage
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# http://knackered.knackered.org/angus/psutils/ states that development version
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# to stay compatible with nevada settings, letter is default paper size
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin MaltbyCOMPONENT_BUILD_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin MaltbyCOMPONENT_INSTALL_ENV += BINDIR=$(PROTO_DIR)/usr/bin
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin MaltbyCOMPONENT_INSTALL_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin MaltbyCOMPONENT_INSTALL_ENV += MANDIR=$(PROTO_DIR)/usr/share/man/man1
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyCOMPONENT_INSTALL_ENV += PERL=/usr/perl5/bin/perl
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyCOMPONENT_INSTALL_ENV += INSTALL="$(INSTALL) -m 0555"
f6e214c7418f43af38bd8c3a557e3d0a1d311cfaGavin MaltbyCOMPONENT_INSTALL_ENV += INSTALLMAN="$(INSTALL) -m 0444"
49b225e1cfa7bbf7738d4df0a03f18e3283426ebGavin Maltby# slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to