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