components/a2ps/Makefile
changeset 44 c031e1c884ef
child 53 e398cb2c4b45
equal deleted inserted replaced
43:9f5ebe30300c 44:c031e1c884ef
       
     1 #
       
     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 #
       
    21 # Copyright (c) 2010, Oracle and/or it's affiliates.  All rights reserved.
       
    22 #
       
    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  +=		--prefix=/usr
       
    41 CONFIGURE_OPTIONS  +=		--enable-shared
       
    42 CONFIGURE_OPTIONS  +=		--disable-static
       
    43 CONFIGURE_OPTIONS  +=		--sysconfdir=/etc/gnu
       
    44 CONFIGURE_OPTIONS  +=		--mandir=/usr/share/man
       
    45 CONFIGURE_OPTIONS  +=		--infodir=/usr/share/info
       
    46 CONFIGURE_OPTIONS  +=		--with-medium=letter
       
    47 
       
    48 # because viewpathing isn't quite right in this version of a2ps
       
    49 COMPONENT_PREP_ACTION = \
       
    50 	(cd $(@D) ; ln -s auxdir/mkinstalldirs)
       
    51 COMPONENT_POST_CONFIGURE_ACTION = \
       
    52 	(cd $(@D)/doc ; \
       
    53 	 ln -s ../../doc/make-authors.pl ; \
       
    54 	 ln -s ../../doc/translators.txt)
       
    55 
       
    56 PKGMOGRIFY_TRANSFORMS +=        $(WS_TOP)/transforms/libtool-drop
       
    57 
       
    58 SFWPROGS =	a2ps card composeglyphs fixnt fixps ogonkify pdiff psmandup \
       
    59 		psset texi2dvi4a2ps
       
    60 PROTOSFWLINKS = $(SFWPROGS:%=$(PROTOSFWBIN)/%)
       
    61 
       
    62 $(PROTOSFWLINKS):	$(PROTOSFWBIN)
       
    63 	$(RM) $@ ; $(SYMLINK) ../../bin/$(@F) $@
       
    64 
       
    65 PROTOETCLPFD = $(PROTO_DIR)/etc/lp/fd
       
    66 FILTERDEFS =	a2ps.fd
       
    67 PROTOFILTERDEFS = $(FILTERDEFS:%=$(PROTOETCLPFD)/%)
       
    68 
       
    69 $(PROTOFILTERDEFS):	$(PROTOETCLPFD)
       
    70 	$(INSTALL) -m 444 $(@F) $(@D)
       
    71 
       
    72 $(PROTOSFWBIN) $(PROTOETCLPFD):	$(INSTALL_32)
       
    73 	$(MKDIR) $@
       
    74 
       
    75 # common targets
       
    76 build:		$(BUILD_32)
       
    77 
       
    78 install:	$(INSTALL_32) $(PROTOFILTERDEFS) $(PROTOSFWLINKS)
       
    79 
       
    80 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    81 
       
    82 REQUIRED_TOOL +=	$(CCC)
       
    83 REQUIRED_TOOL +=	$(CC)
       
    84 REQUIRED_TOOL +=	/sbin/uname
       
    85 REQUIRED_TOOL +=	/usr/bin/$(MACH64)/ld
       
    86 REQUIRED_TOOL +=	/usr/bin/$(MACH64)/nm
       
    87 REQUIRED_TOOL +=	/usr/bin/$(MACH64)/sort
       
    88 REQUIRED_TOOL +=	/usr/bin/basename
       
    89 REQUIRED_TOOL +=	/usr/bin/bash
       
    90 REQUIRED_TOOL +=	/usr/bin/cat
       
    91 REQUIRED_TOOL +=	/usr/bin/chmod
       
    92 REQUIRED_TOOL +=	/usr/bin/cmp
       
    93 REQUIRED_TOOL +=	/usr/bin/cp
       
    94 REQUIRED_TOOL +=	/usr/bin/date
       
    95 REQUIRED_TOOL +=	/usr/bin/echo
       
    96 REQUIRED_TOOL +=	/usr/bin/egrep
       
    97 REQUIRED_TOOL +=	/usr/bin/emacs
       
    98 REQUIRED_TOOL +=	/usr/bin/env
       
    99 REQUIRED_TOOL +=	/usr/bin/expr
       
   100 REQUIRED_TOOL +=	/usr/bin/fgrep
       
   101 REQUIRED_TOOL +=	/usr/bin/file
       
   102 REQUIRED_TOOL +=	/usr/bin/flex
       
   103 REQUIRED_TOOL +=	/usr/bin/gfind
       
   104 REQUIRED_TOOL +=	/usr/bin/ggrep
       
   105 REQUIRED_TOOL +=	/usr/bin/ginstall
       
   106 REQUIRED_TOOL +=	/usr/bin/gmake
       
   107 REQUIRED_TOOL +=	/usr/bin/gpatch
       
   108 REQUIRED_TOOL +=	/usr/bin/grep
       
   109 REQUIRED_TOOL +=	/usr/bin/gsed
       
   110 REQUIRED_TOOL +=	/usr/bin/gtar
       
   111 REQUIRED_TOOL +=	/usr/bin/gzip
       
   112 REQUIRED_TOOL +=	/usr/bin/hostname
       
   113 REQUIRED_TOOL +=	/usr/bin/ksh93
       
   114 REQUIRED_TOOL +=	/usr/bin/imake
       
   115 REQUIRED_TOOL +=	/usr/bin/install-info
       
   116 REQUIRED_TOOL +=	/usr/bin/ld
       
   117 REQUIRED_TOOL +=	/usr/bin/ln
       
   118 REQUIRED_TOOL +=	/usr/bin/ls
       
   119 REQUIRED_TOOL +=	/usr/bin/make
       
   120 REQUIRED_TOOL +=	/usr/bin/mkdir
       
   121 REQUIRED_TOOL +=	/usr/bin/msgfmt
       
   122 REQUIRED_TOOL +=	/usr/bin/mv
       
   123 REQUIRED_TOOL +=	/usr/bin/nm
       
   124 REQUIRED_TOOL +=	/usr/bin/psselect
       
   125 REQUIRED_TOOL +=	/usr/bin/rm
       
   126 REQUIRED_TOOL +=	/usr/bin/sed
       
   127 REQUIRED_TOOL +=	/usr/bin/sleep
       
   128 REQUIRED_TOOL +=	/usr/bin/sort
       
   129 REQUIRED_TOOL +=	/usr/bin/touch
       
   130 REQUIRED_TOOL +=	/usr/bin/tr
       
   131 REQUIRED_TOOL +=	/usr/bin/uniq
       
   132 REQUIRED_TOOL +=	/usr/bin/xgettext
       
   133 REQUIRED_TOOL +=	/usr/bin/xmkmf
       
   134 REQUIRED_TOOL +=	/usr/gnu/bin/echo
       
   135 REQUIRED_TOOL +=	/usr/gnu/bin/m4
       
   136 REQUIRED_TOOL +=	/usr/gnu/bin/pwd
       
   137 REQUIRED_TOOL +=	/usr/gnu/bin/sort
       
   138 REQUIRED_TOOL +=	/usr/gnu/bin/uname
       
   139 REQUIRED_TOOL +=	/usr/lib/cpp
       
   140 REQUIRED_TOOL +=	/usr/perl5/bin/perl
       
   141 
       
   142 REQUIRED_FILE +=	/lib/libc.so
       
   143 REQUIRED_FILE +=	/lib/libm.so
       
   144 REQUIRED_FILE +=	/usr/include/alloca.h
       
   145 REQUIRED_FILE +=	/usr/include/assert.h
       
   146 REQUIRED_FILE +=	/usr/include/ctype.h
       
   147 REQUIRED_FILE +=	/usr/include/dirent.h
       
   148 REQUIRED_FILE +=	/usr/include/errno.h
       
   149 REQUIRED_FILE +=	/usr/include/fcntl.h
       
   150 REQUIRED_FILE +=	/usr/include/fnmatch.h
       
   151 REQUIRED_FILE +=	/usr/include/inttypes.h
       
   152 REQUIRED_FILE +=	/usr/include/libintl.h
       
   153 REQUIRED_FILE +=	/usr/include/limits.h
       
   154 REQUIRED_FILE +=	/usr/include/locale.h
       
   155 REQUIRED_FILE +=	/usr/include/malloc.h
       
   156 REQUIRED_FILE +=	/usr/include/math.h
       
   157 REQUIRED_FILE +=	/usr/include/memory.h
       
   158 REQUIRED_FILE +=	/usr/include/nl_types.h
       
   159 REQUIRED_FILE +=	/usr/include/pwd.h
       
   160 REQUIRED_FILE +=	/usr/include/signal.h
       
   161 REQUIRED_FILE +=	/usr/include/stdarg.h
       
   162 REQUIRED_FILE +=	/usr/include/stdbool.h
       
   163 REQUIRED_FILE +=	/usr/include/stddef.h
       
   164 REQUIRED_FILE +=	/usr/include/stdio.h
       
   165 REQUIRED_FILE +=	/usr/include/stdlib.h
       
   166 REQUIRED_FILE +=	/usr/include/string.h
       
   167 REQUIRED_FILE +=	/usr/include/strings.h
       
   168 REQUIRED_FILE +=	/usr/include/sys/ioctl.h
       
   169 REQUIRED_FILE +=	/usr/include/sys/mman.h
       
   170 REQUIRED_FILE +=	/usr/include/sys/param.h
       
   171 REQUIRED_FILE +=	/usr/include/sys/stat.h
       
   172 REQUIRED_FILE +=	/usr/include/sys/time.h
       
   173 REQUIRED_FILE +=	/usr/include/sys/types.h
       
   174 REQUIRED_FILE +=	/usr/include/sys/wait.h
       
   175 REQUIRED_FILE +=	/usr/include/termios.h
       
   176 REQUIRED_FILE +=	/usr/include/time.h
       
   177 REQUIRED_FILE +=	/usr/include/unistd.h
       
   178 REQUIRED_FILE +=	/usr/include/varargs.h
       
   179 REQUIRED_FILE +=	/usr/include/wchar.h
       
   180 REQUIRED_FILE +=	/usr/share/lib/make
       
   181 
       
   182 include ../../make-rules/depend.mk