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]
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
23 include ..
/..
/make-rules
/shared-macros.mk
24 include ..
/..
/make-rules
/shared-targets.mk
26 COMPONENT_NAME
= psutils
27 COMPONENT_VERSION
= p17
28 COMPONENT_PROJECT_URL
= http
://knackered.knackered.org
/angus
/psutils
/
29 COMPONENT_SRC
= $(COMPONENT_NAME
)
30 COMPONENT_ARCHIVE
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
).
tar.gz
31 COMPONENT_ARCHIVE_HASH
= \
32 sha256
:3853eb79584ba8fbe27a815425b65a9f7f15b258e0d43a05a856bdb75d588ae4
33 COMPONENT_ARCHIVE_URL
= ftp
://ftp.knackered.org
/pub
/psutils
/$(COMPONENT_ARCHIVE
)
35 COMPONENT_BUGDB
= utility
/psutils
37 include ..
/..
/make-rules
/prep.mk
38 include ..
/..
/make-rules
/justmake.mk
39 include ..
/..
/make-rules
/ips.mk
41 # Can't use 'p17' since that is not accepted by pkg. And homepage
42 # http://knackered.knackered.org/angus/psutils/ states that development version
44 IPS_COMPONENT_VERSION
=1.17
46 # to stay compatible with nevada settings, letter is default paper size
47 CFLAGS
+= -DPAPER
=\\\"letter
\\\" -DUNIX
49 COMPONENT_BUILD_ENV
+= CC
=$(CC
)
50 COMPONENT_BUILD_ENV
+= CFLAGS
="$(CFLAGS)"
51 COMPONENT_BUILD_ENV
+= INCLUDEDIR
=$(PROTO_DIR
)/usr
/share
/psutils
52 COMPONENT_BUILD_ENV
+= PERL
=$(PERL
)
54 # slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to
56 COMPONENT_BUILD_ARGS
= -e
-f Makefile.unix
58 COMPONENT_INSTALL_ENV
+= BINDIR
=$(PROTO_DIR
)/usr
/bin
59 COMPONENT_INSTALL_ENV
+= INCLUDEDIR
=$(PROTO_DIR
)/usr
/share
/psutils
60 COMPONENT_INSTALL_ENV
+= MANDIR
=$(PROTO_DIR
)/usr
/share
/man
/man1
61 COMPONENT_INSTALL_ENV
+= PERL
=$(PERL
)
62 COMPONENT_INSTALL_ENV
+= INSTALL
="$(INSTALL) -m 0555"
63 COMPONENT_INSTALL_ENV
+= INSTALLMAN
="$(INSTALL) -m 0444"
65 # slightly hacky, since COMPONENT_BUILD_TARGETS are just arguments passed to
67 COMPONENT_INSTALL_ARGS
= -e
-f Makefile.unix
71 install: $(INSTALL_32
)
73 $(INSTALL_32
): $(PROTOUSRSHAREMAN1DIR
) $(PROTOUSRBIN
)
77 BUILD_PKG_DEPENDENCIES
= $(BUILD_TOOLS
)
79 include ..
/..
/make-rules
/depend.mk