components/a2ps/Makefile
author Craig Mohrman <Craig.Mohrman@oracle.com>
Fri, 04 Feb 2011 16:39:42 -0800
changeset 73 ab86dc591780
parent 64 a4b12971cf99
child 75 1f81099246e8
permissions -rw-r--r--
7017417 missing variant for which binary in package manifest
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     1
#
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     2
# CDDL HEADER START
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     3
#
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     7
#
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    11
# and limitations under the License.
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    12
#
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    18
#
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    19
# CDDL HEADER END
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    20
#
59
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    21
# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    22
#
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    24
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    25
COMPONENT_NAME=		a2ps
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    26
COMPONENT_VERSION=	4.13
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    27
IPS_PKG_NAME=		print/lp/filter/a2ps
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    28
COMPONENT_DESCRIPTION=	"GNU Any to PostScript filter"
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    29
COMPONENT_CLASSIFICATION="System/Printing"
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
64
a4b12971cf99 7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 61
diff changeset
    31
COMPONENT_PROJECT_URL=	http://www.gnu.org/software/a2ps/
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC)b.tar.gz
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	sha1:cfc79a3e54115e569f667fa3fd2c2ec16d22b31a
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	http://ftp.gnu.org/gnu/a2ps/$(COMPONENT_ARCHIVE)
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    35
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    36
include ../../make-rules/prep.mk
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    37
include ../../make-rules/configure.mk
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    38
include ../../make-rules/ips.mk
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    39
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    40
CONFIGURE_OPTIONS  +=		--enable-shared
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    41
CONFIGURE_OPTIONS  +=		--disable-static
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    42
CONFIGURE_OPTIONS  +=		--sysconfdir=/etc/gnu
58
d8024c042a00 7011369 gmake complains about fresh userland bits
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 53
diff changeset
    43
CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    44
CONFIGURE_OPTIONS  +=		--with-medium=letter
61
7684fe2a9eb5 7011958 some things lost during move to userland
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 59
diff changeset
    45
CONFIGURE_OPTIONS  +=		CFLAGS="$(CFLAGS)"
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    46
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    47
# because viewpathing isn't quite right in this version of a2ps
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    48
COMPONENT_PREP_ACTION = \
59
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    49
	(cd $(@D) ; ln -s $(SOURCE_DIR)/auxdir/mkinstalldirs)
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    50
COMPONENT_POST_CONFIGURE_ACTION = \
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    51
	(cd $(@D)/doc ; \
59
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    52
	 ln -s $(SOURCE_DIR)/doc/make-authors.pl ; \
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    53
	 ln -s $(SOURCE_DIR)/doc/translators.txt) ; \
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    54
	(cd $(@D)/sheets ; \
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    55
	 for sheet in $(SOURCE_DIR)/sheets/*.ssh ; do ; \
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    56
	     ln -s $$sheet ; \
7500d63edb42 7012375 userland build and proto areas should be outside of unpacked source dirs
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 58
diff changeset
    57
	 done)
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    58
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    59
SFWPROGS =	a2ps card composeglyphs fixnt fixps ogonkify pdiff psmandup \
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    60
		psset texi2dvi4a2ps
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    61
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    62
PROTOETCLPFD = $(PROTO_DIR)/etc/lp/fd
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    63
FILTERDEFS =	a2ps.fd
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    64
PROTOFILTERDEFS = $(FILTERDEFS:%=$(PROTOETCLPFD)/%)
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    65
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    66
$(PROTOFILTERDEFS):	$(PROTOETCLPFD)
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    67
	$(INSTALL) -m 444 $(@F) $(@D)
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    68
64
a4b12971cf99 7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 61
diff changeset
    69
$(PROTOETCLPFD):	$(INSTALL_32)
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    70
	$(MKDIR) $@
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    71
64
a4b12971cf99 7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 61
diff changeset
    72
include ../../make-rules/shared-targets.mk
a4b12971cf99 7014330 has userland lost its mapfile mind?
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 61
diff changeset
    73
44
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    74
# common targets
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    75
build:		$(BUILD_32)
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    76
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    77
install:	$(INSTALL_32) $(PROTOFILTERDEFS) $(PROTOSFWLINKS)
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    78
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    79
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    80
c031e1c884ef add a2ps to the userland gate
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents:
diff changeset
    81
include ../../make-rules/depend.mk