components/foomatic/fppd/Makefile
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Fri, 27 Apr 2012 13:23:29 -0700
changeset 800 2ad056ed89ec
parent 762 d87f60e41094
child 1058 34d7aaa03423
permissions -rw-r--r--
7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile 7164671 BUILD_TOOLS should point to on11update-tools now
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
335
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     1
#
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     3
#
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     7
#
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    12
#
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    18
#
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    20
#
762
d87f60e41094 7159589 Adjust foomatic/fppd action to remove gzip -rf usage
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    21
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
335
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    22
#
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    23
include ../../../make-rules/shared-macros.mk
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    24
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		foomatic-filters-ppds
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION=	20080818
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    28
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 762
diff changeset
    29
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 762
diff changeset
    30
    sha256:906e1ea87ddb7cf0fd27f21c1b077f87644b402f1b7a66d4049a72b68e5eeb05
335
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_URL=	$(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE)
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 335
diff changeset
    32
COMPONENT_PROJECT_URL=	http://www.linuxfoundation.org/collaborate/workgroups/openprinting/database/foomatic/
335
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    33
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    34
include ../../../make-rules/prep.mk
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    35
include ../../../make-rules/ips.mk
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    36
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    37
CACHE_FILE=$(PROTOUSRLIBDIR)/lp/caches/SUNWfoomatic.cache
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    38
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    39
$(SOURCE_DIR)/.built: $(SOURCE_DIR)/.prep $(COMPONENT_DIR)/nolicense $(COMPONENT_DIR)/supportedonly.sh
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    40
	$(MKDIR) $(BUILD_DIR)
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    41
	$(SHELL) $(COMPONENT_DIR)/supportedonly.sh $(BUILD_DIR) \
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    42
		$(SOURCE_DIR)/share/ppd $(CACHE_FILE) $(COMPONENT_DIR)/nolicense
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    43
	$(TOUCH) [email protected]
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    44
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    45
# move tree of .ppd-s to proto and gzip it
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    46
$(SOURCE_DIR)/.installed: $(SOURCE_DIR)/.built
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    47
	$(MKDIR) $(PROTOUSRSHAREDIR)/ppd
762
d87f60e41094 7159589 Adjust foomatic/fppd action to remove gzip -rf usage
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    48
	/usr/bin/find $(SOURCE_DIR)/share/ppd -name "*.ppd" -exec gzip {} +
335
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    49
	$(CLONEY) $(SOURCE_DIR)/share/ppd $(PROTOUSRSHAREDIR)/ppd/SUNWfoomatic
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    50
	$(TOUCH) [email protected]
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    51
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    52
# common targets
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    53
build:	$(SOURCE_DIR)/.built
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    54
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    55
install:	$(SOURCE_DIR)/.installed
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    56
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    57
test:	$(NO_TESTS)
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    58
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    59
clean::
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    60
	$(RM) -r $(BUILD_DIR)
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    61
223d5bf98b72 7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff changeset
    62
include ../../../make-rules/depend.mk