Makefile revision 59
44N/A#
44N/A# CDDL HEADER START
44N/A#
44N/A# The contents of this file are subject to the terms of the
44N/A# Common Development and Distribution License (the "License").
44N/A# You may not use this file except in compliance with the License.
44N/A#
44N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
44N/A# or http://www.opensolaris.org/os/licensing.
44N/A# See the License for the specific language governing permissions
44N/A# and limitations under the License.
44N/A#
44N/A# When distributing Covered Code, include this CDDL HEADER in each
44N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
44N/A# If applicable, add the following below this CDDL HEADER, with the
44N/A# fields enclosed by brackets "[]" replaced with your own identifying
44N/A# information: Portions Copyright [yyyy] [name of copyright owner]
44N/A#
44N/A# CDDL HEADER END
44N/A#
75N/A# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
75N/A#
59N/Ainclude ../../make-rules/shared-macros.mk
44N/A
75N/ACOMPONENT_NAME= a2ps
44N/ACOMPONENT_VERSION= 4.13
44N/AIPS_PKG_NAME= print/lp/filter/a2ps
44N/ACOMPONENT_DESCRIPTION= "GNU Any to PostScript filter"
491N/ACOMPONENT_CLASSIFICATION="System/Printing"
44N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
491N/ACOMPONENT_PROJECT_URL= http://http.gnu.org/software/a2ps/
491N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)b.tar.gz
44N/ACOMPONENT_ARCHIVE_HASH= sha1:cfc79a3e54115e569f667fa3fd2c2ec16d22b31a
44N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/a2ps/$(COMPONENT_ARCHIVE)
44N/A
44N/Ainclude ../../make-rules/prep.mk
44N/Ainclude ../../make-rules/configure.mk
44N/Ainclude ../../make-rules/ips.mk
44N/A
44N/ACONFIGURE_OPTIONS += --enable-shared
44N/ACONFIGURE_OPTIONS += --disable-static
58N/ACONFIGURE_OPTIONS += --sysconfdir=/etc/gnu
44N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
61N/ACONFIGURE_OPTIONS += --with-medium=letter
44N/A
44N/A# because viewpathing isn't quite right in this version of a2ps
44N/ACOMPONENT_PREP_ACTION = \
59N/A (cd $(@D) ; ln -s $(SOURCE_DIR)/auxdir/mkinstalldirs)
44N/ACOMPONENT_POST_CONFIGURE_ACTION = \
44N/A (cd $(@D)/doc ; \
59N/A ln -s $(SOURCE_DIR)/doc/make-authors.pl ; \
59N/A ln -s $(SOURCE_DIR)/doc/translators.txt) ; \
59N/A (cd $(@D)/sheets ; \
177N/A for sheet in $(SOURCE_DIR)/sheets/*.ssh ; do ; \
59N/A ln -s $$sheet ; \
59N/A done)
44N/A
44N/ASFWPROGS = a2ps card composeglyphs fixnt fixps ogonkify pdiff psmandup \
44N/A psset texi2dvi4a2ps
44N/APROTOSFWLINKS = $(SFWPROGS:%=$(PROTOSFWBIN)/%)
181N/A
44N/A$(PROTOSFWLINKS): $(PROTOSFWBIN)
181N/A $(RM) $@ ; $(SYMLINK) ../../bin/$(@F) $@
83N/A
44N/APROTOETCLPFD = $(PROTO_DIR)/etc/lp/fd
44N/AFILTERDEFS = a2ps.fd
44N/APROTOFILTERDEFS = $(FILTERDEFS:%=$(PROTOETCLPFD)/%)
$(PROTOFILTERDEFS): $(PROTOETCLPFD)
$(INSTALL) -m 444 $(@F) $(@D)
$(PROTOSFWBIN) $(PROTOETCLPFD): $(INSTALL_32)
$(MKDIR) $@
# common targets
build: $(BUILD_32)
install: $(INSTALL_32) $(PROTOFILTERDEFS) $(PROTOSFWLINKS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
REQUIRED_TOOL += $(CCC)
REQUIRED_TOOL += $(CC)
REQUIRED_TOOL += /sbin/uname
REQUIRED_TOOL += /usr/bin/$(MACH64)/ld
REQUIRED_TOOL += /usr/bin/$(MACH64)/nm
REQUIRED_TOOL += /usr/bin/$(MACH64)/sort
REQUIRED_TOOL += /usr/bin/basename
REQUIRED_TOOL += /usr/bin/bash
REQUIRED_TOOL += /usr/bin/cat
REQUIRED_TOOL += /usr/bin/chmod
REQUIRED_TOOL += /usr/bin/cmp
REQUIRED_TOOL += /usr/bin/cp
REQUIRED_TOOL += /usr/bin/date
REQUIRED_TOOL += /usr/bin/echo
REQUIRED_TOOL += /usr/bin/egrep
REQUIRED_TOOL += /usr/bin/emacs
REQUIRED_TOOL += /usr/bin/env
REQUIRED_TOOL += /usr/bin/expr
REQUIRED_TOOL += /usr/bin/fgrep
REQUIRED_TOOL += /usr/bin/file
REQUIRED_TOOL += /usr/bin/flex
REQUIRED_TOOL += /usr/bin/gfind
REQUIRED_TOOL += /usr/bin/ggrep
REQUIRED_TOOL += /usr/bin/ginstall
REQUIRED_TOOL += /usr/bin/gmake
REQUIRED_TOOL += /usr/bin/gpatch
REQUIRED_TOOL += /usr/bin/grep
REQUIRED_TOOL += /usr/bin/gsed
REQUIRED_TOOL += /usr/bin/gtar
REQUIRED_TOOL += /usr/bin/gzip
REQUIRED_TOOL += /usr/bin/hostname
REQUIRED_TOOL += /usr/bin/ksh93
REQUIRED_TOOL += /usr/bin/imake
REQUIRED_TOOL += /usr/bin/install-info
REQUIRED_TOOL += /usr/bin/ld
REQUIRED_TOOL += /usr/bin/ln
REQUIRED_TOOL += /usr/bin/ls
REQUIRED_TOOL += /usr/bin/make
REQUIRED_TOOL += /usr/bin/mkdir
REQUIRED_TOOL += /usr/bin/msgfmt
REQUIRED_TOOL += /usr/bin/mv
REQUIRED_TOOL += /usr/bin/nm
REQUIRED_TOOL += /usr/bin/psselect
REQUIRED_TOOL += /usr/bin/rm
REQUIRED_TOOL += /usr/bin/sed
REQUIRED_TOOL += /usr/bin/sleep
REQUIRED_TOOL += /usr/bin/sort
REQUIRED_TOOL += /usr/bin/touch
REQUIRED_TOOL += /usr/bin/tr
REQUIRED_TOOL += /usr/bin/uniq
REQUIRED_TOOL += /usr/bin/xgettext
REQUIRED_TOOL += /usr/bin/xmkmf
REQUIRED_TOOL += /usr/gnu/bin/echo
REQUIRED_TOOL += /usr/gnu/bin/m4
REQUIRED_TOOL += /usr/gnu/bin/pwd
REQUIRED_TOOL += /usr/gnu/bin/sort
REQUIRED_TOOL += /usr/gnu/bin/uname
REQUIRED_TOOL += /usr/lib/cpp
REQUIRED_TOOL += /usr/perl5/bin/perl
REQUIRED_FILE += /lib/libc.so
REQUIRED_FILE += /lib/libm.so
REQUIRED_FILE += /usr/include/alloca.h
REQUIRED_FILE += /usr/include/assert.h
REQUIRED_FILE += /usr/include/ctype.h
REQUIRED_FILE += /usr/include/dirent.h
REQUIRED_FILE += /usr/include/errno.h
REQUIRED_FILE += /usr/include/fcntl.h
REQUIRED_FILE += /usr/include/fnmatch.h
REQUIRED_FILE += /usr/include/inttypes.h
REQUIRED_FILE += /usr/include/libintl.h
REQUIRED_FILE += /usr/include/limits.h
REQUIRED_FILE += /usr/include/locale.h
REQUIRED_FILE += /usr/include/malloc.h
REQUIRED_FILE += /usr/include/math.h
REQUIRED_FILE += /usr/include/memory.h
REQUIRED_FILE += /usr/include/nl_types.h
REQUIRED_FILE += /usr/include/pwd.h
REQUIRED_FILE += /usr/include/signal.h
REQUIRED_FILE += /usr/include/stdarg.h
REQUIRED_FILE += /usr/include/stdbool.h
REQUIRED_FILE += /usr/include/stddef.h
REQUIRED_FILE += /usr/include/stdio.h
REQUIRED_FILE += /usr/include/stdlib.h
REQUIRED_FILE += /usr/include/string.h
REQUIRED_FILE += /usr/include/strings.h
REQUIRED_FILE += /usr/include/sys/ioctl.h
REQUIRED_FILE += /usr/include/sys/mman.h
REQUIRED_FILE += /usr/include/sys/param.h
REQUIRED_FILE += /usr/include/sys/stat.h
REQUIRED_FILE += /usr/include/sys/time.h
REQUIRED_FILE += /usr/include/sys/types.h
REQUIRED_FILE += /usr/include/sys/wait.h
REQUIRED_FILE += /usr/include/termios.h
REQUIRED_FILE += /usr/include/time.h
REQUIRED_FILE += /usr/include/unistd.h
REQUIRED_FILE += /usr/include/varargs.h
REQUIRED_FILE += /usr/include/wchar.h
REQUIRED_FILE += /usr/share/lib/make
include ../../make-rules/depend.mk