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