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