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