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