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