p7zip: update to 17.05
[oi-userland.git] / components / print / psutils / Makefile
blob065bd2c10988e97090544a567711d313e9b0545c
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2019 Nona Hansel
25 BUILD_STYLE= justmake
27 include ../../../make-rules/shared-macros.mk
28 include $(WS_MAKE_RULES)/shared-targets.mk
30 COMPONENT_NAME= psutils
31 # At the homepage it is stated that development version is pre-2.0
32 COMPONENT_VERSION= 1.17
33 HUMAN_VERSION= p17
34 COMPONENT_REVISION= 4
35 COMPONENT_SUMMARY= Collection of utilities for manipulating PostScript documents
36 COMPONENT_PROJECT_URL= http://knackered.knackered.org/angus/psutils/
37 COMPONENT_SRC= $(COMPONENT_NAME)
38 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(HUMAN_VERSION).tar.gz
39 COMPONENT_ARCHIVE_HASH= sha256:3853eb79584ba8fbe27a815425b65a9f7f15b258e0d43a05a856bdb75d588ae4
40 COMPONENT_ARCHIVE_URL= http://knackered.knackered.org/angus/download/psutils/$(COMPONENT_ARCHIVE)
41 COMPONENT_CLASSIFICATION= System/Printing
42 COMPONENT_FMRI= print/psutils
43 COMPONENT_LICENSE= psutils
44 COMPONENT_LICENSE_FILE= LICENSE
46 TEST_TARGET= $(NO_TESTS)
47 include $(WS_MAKE_RULES)/common.mk
49 # to stay compatible with nevada settings, letter is default paper size
50 CFLAGS += -DPAPER=\\\"letter\\\" -DUNIX
52 COMPONENT_BUILD_ENV += CCFLAGS="$(LDFLAGS)"
53 COMPONENT_BUILD_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
54 # We need to point to some Perl otherwise build is unable to find one. Since
55 # psutils does not depend on any particular Perl version we use generic
56 # unversioned Perl.
57 COMPONENT_BUILD_ENV += PERL=/usr/bin/perl
59 # slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to
60 # make
61 COMPONENT_BUILD_ARGS= -e -f Makefile.unix
63 COMPONENT_INSTALL_ENV += BINDIR=$(PROTO_DIR)/usr/bin
64 COMPONENT_INSTALL_ENV += INCLUDEDIR=$(PROTO_DIR)/usr/share/psutils
65 COMPONENT_INSTALL_ENV += MANDIR=$(PROTO_DIR)/usr/share/man/man1
66 COMPONENT_INSTALL_ENV += INSTALL="$(INSTALL) -m 0555"
67 COMPONENT_INSTALL_ENV += INSTALLMAN="$(INSTALL) -m 0444"
69 # slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to
70 # make
71 COMPONENT_INSTALL_ARGS= -e -f Makefile.unix
73 $(INSTALL_$(MK_BITS)): $(PROTOUSRSHAREMAN1DIR) $(PROTOUSRBINDIR)
75 # Auto-generated dependencies
76 REQUIRED_PACKAGES += runtime/perl
77 REQUIRED_PACKAGES += shell/ksh93
78 REQUIRED_PACKAGES += system/library