506
|
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 |
|
|
22 |
#
|
|
23 |
# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
|
|
24 |
#
|
|
25 |
|
|
26 |
include $(SRC)/Makefile.master
|
|
27 |
include $(SRC)/Makefile.buildnum
|
|
28 |
|
|
29 |
PRE_POUND= pre\#
|
|
30 |
POUND_SIGN= $(PRE_POUND:pre\%=%)
|
|
31 |
|
|
32 |
#
|
|
33 |
# Tentatively import SVR4 packages which have not yet migrated to
|
|
34 |
# IPS based build.
|
|
35 |
#
|
|
36 |
|
|
37 |
#
|
|
38 |
# Make sure we're getting a consistent execution environment for the
|
|
39 |
# embedded scripts.
|
|
40 |
#
|
|
41 |
SHELL= /usr/bin/ksh93
|
|
42 |
|
|
43 |
IMPORTER=env ROOT=/ ./importer.py
|
|
44 |
|
|
45 |
i386_DEFINES= \
|
|
46 |
ARCH=i386 \
|
|
47 |
ARCH32=i86 \
|
|
48 |
ARCH64=amd64 \
|
|
49 |
i386_ONLY='' \
|
|
50 |
sparc_ONLY=$(POUND_SIGN)
|
|
51 |
|
|
52 |
sparc_DEFINES= \
|
|
53 |
ARCH=sparc \
|
|
54 |
ARCH32=sparcv7 \
|
|
55 |
ARCH64=sparcv9 \
|
|
56 |
i386_ONLY=$(POUND_SIGN) \
|
|
57 |
sparc_ONLY=''
|
|
58 |
|
|
59 |
ARCH_DEFINES=$($(PKGMACH)_DEFINES)
|
|
60 |
|
|
61 |
SVR4DIR1=../../../inputmethod/specs/build.$(PKGMACH)/PKGS
|
|
62 |
SVR4DIR2=PKGS2.$(PKGMACH)
|
|
63 |
SVR4PKGS2=g11nsvc
|
|
64 |
|
|
65 |
IMPLIST=import_list
|
|
66 |
|
|
67 |
REPOD=$(PKGDEST)/repo.import
|
|
68 |
REPO=file\://$(REPOD)
|
|
69 |
|
|
70 |
L10N_PUBLISHER=l10n-nightly
|
|
71 |
REFREPO=http://ipkg.sfbay.sun.com/dev/solaris
|
|
72 |
|
|
73 |
install: all imp
|
|
74 |
all:
|
|
75 |
clean:
|
|
76 |
rm -rf $(SVR4DIR2)
|
|
77 |
clobber: clean
|
|
78 |
rm -rf $(REPOD)
|
|
79 |
|
|
80 |
# workaround: specify @0.5.11-0.152 to enable creating b152 based iso images
|
|
81 |
imp: $(REPO) $(SVR4PKGS2:%=$(SVR4DIR2)/%) FRC
|
|
82 |
$(IMPORTER) -b 0.$(L10N_BUILDNUM) -T \* \
|
|
83 |
$(ARCH_DEFINES:%= -m %) \
|
|
84 |
-R $(REFREPO)@[email protected] -s $(REPO) \
|
|
85 |
-w $(SVR4DIR1) -w $(SVR4DIR2) -I. $(IMPLIST)
|
|
86 |
|
|
87 |
$(SVR4DIR2)/%: $(SVR4DIR2) %.$(PKGMACH).tar
|
|
88 |
(cd $(SVR4DIR2); tar xf ../$(@F).$(PKGMACH).tar)
|
|
89 |
|
|
90 |
$(SVR4DIR2):
|
|
91 |
mkdir -p $@
|
|
92 |
|
|
93 |
$(REPO):
|
|
94 |
rm -rf $(REPOD)
|
|
95 |
pkgrepo create --version 3 $(REPO)
|
|
96 |
pkgrepo set -s $(REPO) publisher/prefix=$(L10N_PUBLISHER)
|
|
97 |
/usr/lib/pkg.depotd -d $(REPOD) --add-content --exit-ready
|
|
98 |
|
|
99 |
FRC:
|