Norm Jacobs
2011-04-13 4158c02ccf09e2f646cf2e9e5599f186ec8c7302
commit | author | age
7d83c8 1 #
VM 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
21 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
22 #
23 include ../../make-rules/shared-macros.mk
24 include ../../make-rules/shared-targets.mk
25
26 COMPONENT_NAME=        psutils
27 COMPONENT_VERSION=    p17
28 COMPONENT_SRC=        $(COMPONENT_NAME)
29 COMPONENT_ARCHIVE=    $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
30 COMPONENT_ARCHIVE_HASH=    sha1:6f1ecb5846cffb644826a02bd9153fe5d6387a9b
31 COMPONENT_ARCHIVE_URL= http://gd.tuwien.ac.at/publishing/tex/tex-utils/psutils/$(COMPONENT_ARCHIVE)
32 #COMPONENT_ARCHIVE_URL= ftp://ftp.knackered.org/pub/psutils/psutils.tar.gz
33 # Official ftp sources are currently unavailable, so I'm using mirror I found.
34 # I made sure that the tarball is equal to the one present in SFW
35
36 include ../../make-rules/prep.mk
37 include ../../make-rules/justmake.mk
38 include ../../make-rules/ips.mk
39
40 # Can't use 'p17' since that is not accepted by pkg. And homepage
41 # http://knackered.knackered.org/angus/psutils/ states that development version
42 # is pre-2.0
43 IPS_COMPONENT_VERSION=1.17
44
45 # to stay compatible with nevada settings, letter is default paper size
46 CFLAGS += -DPAPER=\\\"letter\\\" -DUNIX
47
48 COMPONENT_BUILD_ENV += CC=$(CC)
49 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
50 COMPONENT_BUILD_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
51 COMPONENT_BUILD_ENV += PERL=$(PERL)
52
53 # slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to
54 # make
4158c0 55 COMPONENT_BUILD_ARGS = -e -f Makefile.unix
7d83c8 56
VM 57 COMPONENT_INSTALL_ENV += BINDIR=$(PROTO_DIR)/usr/bin
58 COMPONENT_INSTALL_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
59 COMPONENT_INSTALL_ENV += MANDIR=$(PROTO_DIR)/usr/share/man/man1
60 COMPONENT_INSTALL_ENV += PERL=/usr/perl5/bin/perl
61 COMPONENT_INSTALL_ENV += INSTALL="$(INSTALL) -m 0555"
62 COMPONENT_INSTALL_ENV += INSTALLMAN="$(INSTALL) -m 0444"
63
64 # slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to
65 # make
4158c0 66 COMPONENT_INSTALL_ARGS = -e -f Makefile.unix
7d83c8 67
VM 68 build:        $(BUILD_32)
69
70 install:    $(INSTALL_32)
71
4158c0 72 $(INSTALL_32):    $(PROTOUSRSHAREMAN1DIR) $(PROTOUSRBIN)
NJ 73
74 test:        $(NO_TESTS)
7d83c8 75
VM 76 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
77
78 include ../../make-rules/depend.mk