author | Norm Jacobs <Norm.Jacobs@Oracle.COM> |
Thu, 19 Mar 2015 20:44:31 -0700 | |
branch | s11-update |
changeset 3996 | 20c0f21bbe1e |
parent 3661 | 47545fb8aed4 |
permissions | -rw-r--r-- |
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 |
# |
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
21 |
# Copyright (c) 2011, 2015, 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-db-engine |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
26 |
COMPONENT_VERSION= 3.0-20080903 |
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:
609
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:
609
diff
changeset
|
30 |
sha256:668f2020eb136359523090cc17151e6aad0c56bce0e4ae91217a9eba19eec917 |
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/ |
2434
6c9bb5cf5610
15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents:
800
diff
changeset
|
33 |
COMPONENT_BUGDB= utility/foomatic |
335
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
34 |
|
3661
47545fb8aed4
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
2434
diff
changeset
|
35 |
TPNO= 6399 |
47545fb8aed4
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents:
2434
diff
changeset
|
36 |
|
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
37 |
include $(WS_MAKE_RULES)/prep.mk |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
38 |
include $(WS_MAKE_RULES)/configure.mk |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
39 |
include $(WS_MAKE_RULES)/ips.mk |
335
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
40 |
|
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
41 |
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
42 |
CONFIGURE_OPTIONS += PERL=$(PERL) |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
43 |
CONFIGURE_OPTIONS += FILEUTIL=/bin/true |
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 |
# the build system does not support building outside of the source tree |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
46 |
COMPONENT_PRE_CONFIGURE_ACTION = $(CLONEY) $(SOURCE_DIR) $(@D) ; |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
47 |
|
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
48 |
# setup perl build |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
49 |
COMPONENT_PRE_CONFIGURE_ACTION += cd $(@D)/lib ; $(PERL) Makefile.PL |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
50 |
|
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
51 |
# install perl modules |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
52 |
COMPONENT_PRE_INSTALL_ACTION = \ |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
53 |
( cd $(@D)/lib ; $(GMAKE) install_vendor DESTDIR=$(PROTO_DIR) ) |
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 |
# the perl .packlist contains the path to the file as built rather than |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
56 |
# as installed. Fix to be installed path, ie remove PROTO_DIR. |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
57 |
VENDORARCH= $(shell $(PERL) -e 'use Config; print $$Config{vendorarch}') |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
58 |
PACKLIST= $(VENDORARCH)/auto/Foomatic/.packlist |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
59 |
COMPONENT_POST_INSTALL_ACTION = \ |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
60 |
sed -e "s/$(subst /,\\/,$(PROTO_DIR))//g" $(PROTO_DIR)/$(PACKLIST) \ |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
61 |
>> $(PROTO_DIR)/$(PACKLIST).fixed ; \ |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
62 |
$(MV) $(PROTO_DIR)/$(PACKLIST).fixed $(PROTO_DIR)/$(PACKLIST) |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
63 |
|
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
64 |
|
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
65 |
# common targets |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
66 |
build: $(BUILD_32) |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
67 |
|
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
68 |
install: $(INSTALL_32) |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
69 |
|
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
70 |
test: $(NO_TESTS) |
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
71 |
|
223d5bf98b72
7049357 Move foomatic-* stuff to Userland.
Vladimir Marek <Vladimir.Marek@oracle.com>
parents:
diff
changeset
|
72 |
|
3996
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
73 |
REQUIRED_PACKAGES += library/libxml2 |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
74 |
REQUIRED_PACKAGES += runtime/perl-512 |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
75 |
REQUIRED_PACKAGES += shell/bash |
20c0f21bbe1e
15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
3661
diff
changeset
|
76 |
REQUIRED_PACKAGES += system/library |