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