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