Makefile revision 277
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#
153N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
153N/A#
153N/Ainclude ../../make-rules/shared-macros.mk
153N/Ainclude ../../make-rules/shared-targets.mk
153N/A
153N/ACOMPONENT_NAME= psutils
153N/ACOMPONENT_VERSION= p17
153N/ACOMPONENT_SRC= $(COMPONENT_NAME)
153N/ACOMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
153N/ACOMPONENT_ARCHIVE_HASH= sha1:6f1ecb5846cffb644826a02bd9153fe5d6387a9b
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
153N/Ainclude ../../make-rules/prep.mk
153N/Ainclude ../../make-rules/justmake.mk
153N/Ainclude ../../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/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
153N/A
153N/Ainclude ../../make-rules/depend.mk