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