author | Mike Sullivan <Mike.Sullivan@Oracle.COM> |
Fri, 30 Sep 2016 21:33:56 -0700 | |
changeset 7017 | 25872950aa80 |
parent 6638 | c7defa3ae9cc |
child 7687 | 1093e2a9adbd |
permissions | -rw-r--r-- |
1132
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
# |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
# |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
|
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4746
diff
changeset
|
23 |
# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. |
1132
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
24 |
# |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4746
diff
changeset
|
25 |
BUILD_BITS= 64 |
1132
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
|
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= enscript |
6638
c7defa3ae9cc
23210162 Upgrade enscript to 1.6.6
David Marx <David.M.Marx@Oracle.Com>
parents:
5797
diff
changeset
|
29 |
COMPONENT_VERSION= 1.6.6 |
1132
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_ARCHIVE_HASH= \ |
6638
c7defa3ae9cc
23210162 Upgrade enscript to 1.6.6
David Marx <David.M.Marx@Oracle.Com>
parents:
5797
diff
changeset
|
31 |
sha256:6d56bada6934d055b34b6c90399aa85975e66457ac5bf513427ae7fc77f5c0bb |
1132
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
|
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
# Ruby enscript support |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_ARCHIVE_1= ruby-enscript.tar.gz |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
COMPONENT_ARCHIVE_HASH_1= \ |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
sha256:29c87c4cd5d36b221fd50ad0b2e35a2cc0e1422519bb7f41d400c61db117cff7 |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
COMPONENT_ARCHIVE_URL_1= http://neugierig.org/software/ruby/ruby-enscript.tar.gz |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
38 |
|
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
39 |
# PHP enscript support |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
40 |
COMPONENT_ARCHIVE_2= php.st |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
COMPONENT_ARCHIVE_HASH_2= \ |
6638
c7defa3ae9cc
23210162 Upgrade enscript to 1.6.6
David Marx <David.M.Marx@Oracle.Com>
parents:
5797
diff
changeset
|
42 |
sha256:3224ca9e1a9707f5a1dba2688a639c13494a805642f102279b3431214801814c |
c7defa3ae9cc
23210162 Upgrade enscript to 1.6.6
David Marx <David.M.Marx@Oracle.Com>
parents:
5797
diff
changeset
|
43 |
COMPONENT_ARCHIVE_URL_2= http://ez.lbm-services.de/content/download/1631/7197/file/php.st |
1132
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
44 |
|
6638
c7defa3ae9cc
23210162 Upgrade enscript to 1.6.6
David Marx <David.M.Marx@Oracle.Com>
parents:
5797
diff
changeset
|
45 |
TPNO= 29959 |
1948
2d1537e7942d
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
1132
diff
changeset
|
46 |
|
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4746
diff
changeset
|
47 |
include $(WS_MAKE_RULES)/gnu-component.mk |
1132
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
|
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
# Get just the ruby enscript support file out of the downloaded tarball, and |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
# move ruby.st and php.st into the correct directory for "gmake install". |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
COMPONENT_PREP_ACTION = \ |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
/usr/bin/tar xvf $(COMPONENT_ARCHIVE_1) ruby.st ; \ |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
53 |
$(MV) php.st ruby.st $(SOURCE_DIR)/states/hl ; |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
|
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
55 |
# There are patches that change a Makefile.am and configure.in |
4088
98a08684d104
17069132 Ship automake 1.15
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3817
diff
changeset
|
56 |
# This version of enscript needs an older automake to reconfigure. When |
98a08684d104
17069132 Ship automake 1.15
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3817
diff
changeset
|
57 |
# we upgrade enscript, we can use the newer version. |
98a08684d104
17069132 Ship automake 1.15
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3817
diff
changeset
|
58 |
COMPONENT_PREP_ACTION +=(cd $(@D); ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 \ |
98a08684d104
17069132 Ship automake 1.15
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
3817
diff
changeset
|
59 |
autoreconf -fiv); |
1132
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
60 |
|
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
61 |
# Needed so that enscript can find the enscript.cfg file. |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4746
diff
changeset
|
62 |
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR) |
1132
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
63 |
|
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
64 |
CONFIGURE_OPTIONS += --with-media=Letter |
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
65 |
|
6638
c7defa3ae9cc
23210162 Upgrade enscript to 1.6.6
David Marx <David.M.Marx@Oracle.Com>
parents:
5797
diff
changeset
|
66 |
# Needed so that the StatesBinary parameter in /etc/enscript.cfg |
c7defa3ae9cc
23210162 Upgrade enscript to 1.6.6
David Marx <David.M.Marx@Oracle.Com>
parents:
5797
diff
changeset
|
67 |
# will be /usr/bin/states on sparc. |
c7defa3ae9cc
23210162 Upgrade enscript to 1.6.6
David Marx <David.M.Marx@Oracle.Com>
parents:
5797
diff
changeset
|
68 |
CONFIGURE_OPTIONS += --bindir=/usr/bin |
c7defa3ae9cc
23210162 Upgrade enscript to 1.6.6
David Marx <David.M.Marx@Oracle.Com>
parents:
5797
diff
changeset
|
69 |
|
1132
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
70 |
COMPONENT_POST_INSTALL_ACTION = \ |
5682
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4746
diff
changeset
|
71 |
$(LN) $(PROTOUSRBINDIR)/enscript \ |
94c0ca64c022
15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents:
4746
diff
changeset
|
72 |
$(PROTOUSRBINDIR)/nenscript |
4339
6501cf9c29f9
21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents:
4088
diff
changeset
|
73 |
|
5797
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5682
diff
changeset
|
74 |
# Adjust '#!/usr/bin/perl' |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5682
diff
changeset
|
75 |
PERL_SCRIPTS = \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5682
diff
changeset
|
76 |
$(PROTOUSRBINDIR)/diffpp \ |
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5682
diff
changeset
|
77 |
$(PROTOUSRBINDIR)/sliceprint |
1132
a62391631ea1
16170971 Move enscript from the Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
78 |
|
5797
432ac76de3b0
23078956 adjust the remainder of the userland components to use perl 5.22
Craig Mohrman <craig.mohrman@oracle.com>
parents:
5682
diff
changeset
|
79 |
REQUIRED_PACKAGES += $(PERL_PKG) |
3817
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
80 |
REQUIRED_PACKAGES += shell/ksh93 |
30b42c38bbc4
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
2225
diff
changeset
|
81 |
REQUIRED_PACKAGES += system/library/math |