author | Alasdair Lumsden <alasdairrr@gmail.com> |
Mon, 15 Aug 2011 19:04:02 +0000 | |
branch | oi_151a |
changeset 569 | 660c4109f92b |
parent 512 | e43c8b0277d5 |
permissions | -rw-r--r-- |
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 |
||
511
d75c7ca362e2
pkg_import/Makefile: set PKGMACH=$(MACH) as in pkg/Makefile
jenda
parents:
510
diff
changeset
|
45 |
PKGMACH= $(MACH) |
d75c7ca362e2
pkg_import/Makefile: set PKGMACH=$(MACH) as in pkg/Makefile
jenda
parents:
510
diff
changeset
|
46 |
|
506 | 47 |
i386_DEFINES= \ |
48 |
ARCH=i386 \ |
|
49 |
ARCH32=i86 \ |
|
50 |
ARCH64=amd64 \ |
|
51 |
i386_ONLY='' \ |
|
52 |
sparc_ONLY=$(POUND_SIGN) |
|
53 |
||
54 |
sparc_DEFINES= \ |
|
55 |
ARCH=sparc \ |
|
56 |
ARCH32=sparcv7 \ |
|
57 |
ARCH64=sparcv9 \ |
|
58 |
i386_ONLY=$(POUND_SIGN) \ |
|
59 |
sparc_ONLY='' |
|
60 |
||
61 |
ARCH_DEFINES=$($(PKGMACH)_DEFINES) |
|
62 |
||
510
4edc1f3604a1
7008493 fonts and scim added after initial installation may not be recognized
asano
parents:
506
diff
changeset
|
63 |
GLOBAL_CHATTRS= gnome variants |
4edc1f3604a1
7008493 fonts and scim added after initial installation may not be recognized
asano
parents:
506
diff
changeset
|
64 |
|
506 | 65 |
SVR4DIR1=../../../inputmethod/specs/build.$(PKGMACH)/PKGS |
66 |
SVR4DIR2=PKGS2.$(PKGMACH) |
|
512
e43c8b0277d5
pkg_merge/mergearch.sh: add SVR4DIR3 (used by jffmake)
jenda
parents:
511
diff
changeset
|
67 |
SVR4DIR3=../../g11n-inputmethod/specs/build.$(PKGMACH)/PKGS |
506 | 68 |
SVR4PKGS2=g11nsvc |
69 |
||
70 |
IMPLIST=import_list |
|
71 |
||
72 |
REPOD=$(PKGDEST)/repo.import |
|
73 |
REPO=file\://$(REPOD) |
|
74 |
||
75 |
L10N_PUBLISHER=l10n-nightly |
|
76 |
REFREPO=http://ipkg.sfbay.sun.com/dev/solaris |
|
77 |
||
78 |
install: all imp |
|
79 |
all: |
|
80 |
clean: |
|
81 |
rm -rf $(SVR4DIR2) |
|
82 |
clobber: clean |
|
83 |
rm -rf $(REPOD) |
|
84 |
||
85 |
# workaround: specify @0.5.11-0.152 to enable creating b152 based iso images |
|
86 |
imp: $(REPO) $(SVR4PKGS2:%=$(SVR4DIR2)/%) FRC |
|
87 |
$(IMPORTER) -b 0.$(L10N_BUILDNUM) -T \* \ |
|
510
4edc1f3604a1
7008493 fonts and scim added after initial installation may not be recognized
asano
parents:
506
diff
changeset
|
88 |
$(GLOBAL_CHATTRS:%= -G %) $(ARCH_DEFINES:%= -m %) \ |
506 | 89 |
-R $(REFREPO)@[email protected] -s $(REPO) \ |
512
e43c8b0277d5
pkg_merge/mergearch.sh: add SVR4DIR3 (used by jffmake)
jenda
parents:
511
diff
changeset
|
90 |
-w $(SVR4DIR1) -w $(SVR4DIR2) -w $(SVR4DIR3) -I. $(IMPLIST) |
506 | 91 |
|
92 |
$(SVR4DIR2)/%: $(SVR4DIR2) %.$(PKGMACH).tar |
|
93 |
(cd $(SVR4DIR2); tar xf ../$(@F).$(PKGMACH).tar) |
|
94 |
||
95 |
$(SVR4DIR2): |
|
96 |
mkdir -p $@ |
|
97 |
||
98 |
$(REPO): |
|
99 |
rm -rf $(REPOD) |
|
100 |
pkgrepo create --version 3 $(REPO) |
|
101 |
pkgrepo set -s $(REPO) publisher/prefix=$(L10N_PUBLISHER) |
|
102 |
/usr/lib/pkg.depotd -d $(REPOD) --add-content --exit-ready |
|
103 |
||
104 |
FRC: |