Norm Jacobs
2011-01-14 4b89a19a52eb2439c6209050c1e465d2d5e2c55e
commit | author | age
908c7a 1 #
NJ 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 #
4b89a1 21 # Copyright (c) 2004, 2011, Oracle and/or its affiliates. All rights reserved.
908c7a 22 #
NJ 23 include ../../make-rules/shared-macros.mk
24
25 COMPONENT_NAME=        a2ps
26 COMPONENT_VERSION=    4.13
27 IPS_PKG_NAME=        print/lp/filter/a2ps
28 COMPONENT_DESCRIPTION=    "GNU Any to PostScript filter"
29 COMPONENT_CLASSIFICATION="System/Printing"
30 COMPONENT_SRC=        $(COMPONENT_NAME)-$(COMPONENT_VERSION)
31 COMPONENT_PROJECT_URL=    http://http.gnu.org/software/a2ps/
32 COMPONENT_ARCHIVE=    $(COMPONENT_SRC)b.tar.gz
33 COMPONENT_ARCHIVE_HASH=    sha1:cfc79a3e54115e569f667fa3fd2c2ec16d22b31a
34 COMPONENT_ARCHIVE_URL=    http://ftp.gnu.org/gnu/a2ps/$(COMPONENT_ARCHIVE)
35
36 include ../../make-rules/prep.mk
37 include ../../make-rules/configure.mk
38 include ../../make-rules/ips.mk
39
40 CONFIGURE_OPTIONS  +=        --enable-shared
41 CONFIGURE_OPTIONS  +=        --disable-static
42 CONFIGURE_OPTIONS  +=        --sysconfdir=/etc/gnu
4b89a1 43 CONFIGURE_OPTIONS  +=        --infodir=$(CONFIGURE_INFODIR)
908c7a 44 CONFIGURE_OPTIONS  +=        --with-medium=letter
NJ 45
46 # because viewpathing isn't quite right in this version of a2ps
47 COMPONENT_PREP_ACTION = \
48     (cd $(@D) ; ln -s auxdir/mkinstalldirs)
49 COMPONENT_POST_CONFIGURE_ACTION = \
50     (cd $(@D)/doc ; \
51      ln -s ../../doc/make-authors.pl ; \
52      ln -s ../../doc/translators.txt)
53
54 SFWPROGS =    a2ps card composeglyphs fixnt fixps ogonkify pdiff psmandup \
55         psset texi2dvi4a2ps
56 PROTOSFWLINKS = $(SFWPROGS:%=$(PROTOSFWBIN)/%)
57
58 $(PROTOSFWLINKS):    $(PROTOSFWBIN)
59     $(RM) $@ ; $(SYMLINK) ../../bin/$(@F) $@
60
61 PROTOETCLPFD = $(PROTO_DIR)/etc/lp/fd
62 FILTERDEFS =    a2ps.fd
63 PROTOFILTERDEFS = $(FILTERDEFS:%=$(PROTOETCLPFD)/%)
64
65 $(PROTOFILTERDEFS):    $(PROTOETCLPFD)
66     $(INSTALL) -m 444 $(@F) $(@D)
67
68 $(PROTOSFWBIN) $(PROTOETCLPFD):    $(INSTALL_32)
69     $(MKDIR) $@
70
71 # common targets
72 build:        $(BUILD_32)
73
74 install:    $(INSTALL_32) $(PROTOFILTERDEFS) $(PROTOSFWLINKS)
75
76 BUILD_PKG_DEPENDENCIES =    $(BUILD_TOOLS)
77
78 REQUIRED_TOOL +=    $(CCC)
79 REQUIRED_TOOL +=    $(CC)
80 REQUIRED_TOOL +=    /sbin/uname
81 REQUIRED_TOOL +=    /usr/bin/$(MACH64)/ld
82 REQUIRED_TOOL +=    /usr/bin/$(MACH64)/nm
83 REQUIRED_TOOL +=    /usr/bin/$(MACH64)/sort
84 REQUIRED_TOOL +=    /usr/bin/basename
85 REQUIRED_TOOL +=    /usr/bin/bash
86 REQUIRED_TOOL +=    /usr/bin/cat
87 REQUIRED_TOOL +=    /usr/bin/chmod
88 REQUIRED_TOOL +=    /usr/bin/cmp
89 REQUIRED_TOOL +=    /usr/bin/cp
90 REQUIRED_TOOL +=    /usr/bin/date
91 REQUIRED_TOOL +=    /usr/bin/echo
92 REQUIRED_TOOL +=    /usr/bin/egrep
93 REQUIRED_TOOL +=    /usr/bin/emacs
94 REQUIRED_TOOL +=    /usr/bin/env
95 REQUIRED_TOOL +=    /usr/bin/expr
96 REQUIRED_TOOL +=    /usr/bin/fgrep
97 REQUIRED_TOOL +=    /usr/bin/file
98 REQUIRED_TOOL +=    /usr/bin/flex
99 REQUIRED_TOOL +=    /usr/bin/gfind
100 REQUIRED_TOOL +=    /usr/bin/ggrep
101 REQUIRED_TOOL +=    /usr/bin/ginstall
102 REQUIRED_TOOL +=    /usr/bin/gmake
103 REQUIRED_TOOL +=    /usr/bin/gpatch
104 REQUIRED_TOOL +=    /usr/bin/grep
105 REQUIRED_TOOL +=    /usr/bin/gsed
106 REQUIRED_TOOL +=    /usr/bin/gtar
107 REQUIRED_TOOL +=    /usr/bin/gzip
108 REQUIRED_TOOL +=    /usr/bin/hostname
109 REQUIRED_TOOL +=    /usr/bin/ksh93
110 REQUIRED_TOOL +=    /usr/bin/imake
111 REQUIRED_TOOL +=    /usr/bin/install-info
112 REQUIRED_TOOL +=    /usr/bin/ld
113 REQUIRED_TOOL +=    /usr/bin/ln
114 REQUIRED_TOOL +=    /usr/bin/ls
115 REQUIRED_TOOL +=    /usr/bin/make
116 REQUIRED_TOOL +=    /usr/bin/mkdir
117 REQUIRED_TOOL +=    /usr/bin/msgfmt
118 REQUIRED_TOOL +=    /usr/bin/mv
119 REQUIRED_TOOL +=    /usr/bin/nm
120 REQUIRED_TOOL +=    /usr/bin/psselect
121 REQUIRED_TOOL +=    /usr/bin/rm
122 REQUIRED_TOOL +=    /usr/bin/sed
123 REQUIRED_TOOL +=    /usr/bin/sleep
124 REQUIRED_TOOL +=    /usr/bin/sort
125 REQUIRED_TOOL +=    /usr/bin/touch
126 REQUIRED_TOOL +=    /usr/bin/tr
127 REQUIRED_TOOL +=    /usr/bin/uniq
128 REQUIRED_TOOL +=    /usr/bin/xgettext
129 REQUIRED_TOOL +=    /usr/bin/xmkmf
130 REQUIRED_TOOL +=    /usr/gnu/bin/echo
131 REQUIRED_TOOL +=    /usr/gnu/bin/m4
132 REQUIRED_TOOL +=    /usr/gnu/bin/pwd
133 REQUIRED_TOOL +=    /usr/gnu/bin/sort
134 REQUIRED_TOOL +=    /usr/gnu/bin/uname
135 REQUIRED_TOOL +=    /usr/lib/cpp
136 REQUIRED_TOOL +=    /usr/perl5/bin/perl
137
138 REQUIRED_FILE +=    /lib/libc.so
139 REQUIRED_FILE +=    /lib/libm.so
140 REQUIRED_FILE +=    /usr/include/alloca.h
141 REQUIRED_FILE +=    /usr/include/assert.h
142 REQUIRED_FILE +=    /usr/include/ctype.h
143 REQUIRED_FILE +=    /usr/include/dirent.h
144 REQUIRED_FILE +=    /usr/include/errno.h
145 REQUIRED_FILE +=    /usr/include/fcntl.h
146 REQUIRED_FILE +=    /usr/include/fnmatch.h
147 REQUIRED_FILE +=    /usr/include/inttypes.h
148 REQUIRED_FILE +=    /usr/include/libintl.h
149 REQUIRED_FILE +=    /usr/include/limits.h
150 REQUIRED_FILE +=    /usr/include/locale.h
151 REQUIRED_FILE +=    /usr/include/malloc.h
152 REQUIRED_FILE +=    /usr/include/math.h
153 REQUIRED_FILE +=    /usr/include/memory.h
154 REQUIRED_FILE +=    /usr/include/nl_types.h
155 REQUIRED_FILE +=    /usr/include/pwd.h
156 REQUIRED_FILE +=    /usr/include/signal.h
157 REQUIRED_FILE +=    /usr/include/stdarg.h
158 REQUIRED_FILE +=    /usr/include/stdbool.h
159 REQUIRED_FILE +=    /usr/include/stddef.h
160 REQUIRED_FILE +=    /usr/include/stdio.h
161 REQUIRED_FILE +=    /usr/include/stdlib.h
162 REQUIRED_FILE +=    /usr/include/string.h
163 REQUIRED_FILE +=    /usr/include/strings.h
164 REQUIRED_FILE +=    /usr/include/sys/ioctl.h
165 REQUIRED_FILE +=    /usr/include/sys/mman.h
166 REQUIRED_FILE +=    /usr/include/sys/param.h
167 REQUIRED_FILE +=    /usr/include/sys/stat.h
168 REQUIRED_FILE +=    /usr/include/sys/time.h
169 REQUIRED_FILE +=    /usr/include/sys/types.h
170 REQUIRED_FILE +=    /usr/include/sys/wait.h
171 REQUIRED_FILE +=    /usr/include/termios.h
172 REQUIRED_FILE +=    /usr/include/time.h
173 REQUIRED_FILE +=    /usr/include/unistd.h
174 REQUIRED_FILE +=    /usr/include/varargs.h
175 REQUIRED_FILE +=    /usr/include/wchar.h
176 REQUIRED_FILE +=    /usr/share/lib/make
177
178 include ../../make-rules/depend.mk