author | Alan Coopersmith <Alan.Coopersmith@Oracle.COM> |
Tue, 15 Apr 2014 22:53:33 -0700 | |
changeset 1447 | 46a79f5639d6 |
parent 1426 | a3f99705098d |
child 1456 | c800ec17944c |
permissions | -rw-r--r-- |
1356
73c3eb360de2
16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1333
diff
changeset
|
1 |
############################################################################### |
606
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
2 |
# |
1447
46a79f5639d6
18596606 xorg-video-openchrome package needs license updates for TPNO 12031
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1426
diff
changeset
|
3 |
# Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved. |
606
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
4 |
# |
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
5 |
# Permission is hereby granted, free of charge, to any person obtaining a |
919
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
6 |
# copy of this software and associated documentation files (the "Software"), |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
7 |
# to deal in the Software without restriction, including without limitation |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
8 |
# the rights to use, copy, modify, merge, publish, distribute, sublicense, |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
9 |
# and/or sell copies of the Software, and to permit persons to whom the |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
10 |
# Software is furnished to do so, subject to the following conditions: |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
11 |
# |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
12 |
# The above copyright notice and this permission notice (including the next |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
13 |
# paragraph) shall be included in all copies or substantial portions of the |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
14 |
# Software. |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
15 |
# |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
16 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
17 |
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
18 |
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
19 |
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
20 |
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
21 |
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
22 |
# DEALINGS IN THE SOFTWARE. |
606
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
23 |
# |
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
24 |
# |
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
25 |
|
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
26 |
# Package name used in tarballs |
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
27 |
MODULE_NAME=xf86-video-openchrome |
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
28 |
|
970
272328fe1b4a
6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
965
diff
changeset
|
29 |
# Package metadata |
272328fe1b4a
6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
965
diff
changeset
|
30 |
UPSTREAM = The OpenChrome project |
272328fe1b4a
6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
965
diff
changeset
|
31 |
UPSTREAM_URL = http://www.openchrome.org/ |
272328fe1b4a
6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
965
diff
changeset
|
32 |
UPSTREAM_SET = yes |
1356
73c3eb360de2
16167547 Update copyright & license display & metadata in X packages
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1333
diff
changeset
|
33 |
ORACLE_TPNO = 12031 |
1447
46a79f5639d6
18596606 xorg-video-openchrome package needs license updates for TPNO 12031
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1426
diff
changeset
|
34 |
ORACLE_TPNO_SET = yes |
970
272328fe1b4a
6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
965
diff
changeset
|
35 |
|
606
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
36 |
# Version number (used in path names) |
1366
62beb605c20c
16609027 Update to the latest community release: Xorg 1.14.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1356
diff
changeset
|
37 |
MODULE_VERSION=0.3.2 |
606
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
38 |
|
911
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
39 |
# Checksums for upstream tarball |
1366
62beb605c20c
16609027 Update to the latest community release: Xorg 1.14.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1356
diff
changeset
|
40 |
TARBALL_MD5 = 172509a5a7ab5c89ff09501d733cf5f6 |
62beb605c20c
16609027 Update to the latest community release: Xorg 1.14.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1356
diff
changeset
|
41 |
TARBALL_SHA1 = e5be9a8200410b3e3e66349bab4c8acd1ead4402 |
911
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
851
diff
changeset
|
42 |
|
606
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
43 |
# Patches to apply to source after unpacking, in order |
947
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
943
diff
changeset
|
44 |
SOURCE_PATCHES = manpage-sections.patch,-p1 |
1377
74e8a5844513
16673783 problem in X11/LIBRARIES
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1366
diff
changeset
|
45 |
SOURCE_PATCHES += CVE-2013-1994.patch,-p1 |
1425
d2b9d2006251
17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1377
diff
changeset
|
46 |
SOURCE_PATCHES += ldflags.patch,-p1 |
947
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
943
diff
changeset
|
47 |
|
1333
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
48 |
# Extra rules to run when unpacking upstream source |
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
49 |
CLEAN_LINEFEED_TARGET = $(SOURCE_DIR)/.source.clean.done |
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
50 |
MODULE_ADD_SOURCE_TARGETS = $(CLEAN_LINEFEED_TARGET) |
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
51 |
|
947
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
943
diff
changeset
|
52 |
# manpage-sections.patch edits configure.ac, so we need to autoreconf |
ef9da9d336f5
6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
943
diff
changeset
|
53 |
AUTORECONF=yes |
606
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
54 |
|
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
55 |
# Man pages to apply Sun footer to & attributes to list |
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
56 |
SUNTOUCHED_MANPAGES=man/*.man |
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
57 |
MODULE_STABILITY=Volatile |
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
58 |
|
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
59 |
# Extra flags to pass to configure script |
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
60 |
# - Disable DRI since the kernel module isn't ported |
1333
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
61 |
MODULE_CONFIG_OPTS=--disable-dri --disable-kms |
606
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
62 |
|
1425
d2b9d2006251
17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1377
diff
changeset
|
63 |
# Instead of allowing the default MODTYPE_LD_SHARED_OPTIONS to link all |
d2b9d2006251
17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1377
diff
changeset
|
64 |
# the libraries against the Xorg server binary, ldflags.patch adds |
d2b9d2006251
17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1377
diff
changeset
|
65 |
# $(openchrome_drv_la_LDFLAGS_add) to the link of just openchrome_drv.so, |
d2b9d2006251
17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1377
diff
changeset
|
66 |
# but not to the client side XvMC libs. |
d2b9d2006251
17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1377
diff
changeset
|
67 |
XORG_EXTERNS_IN_LD_SHARED_OPTIONS=no |
d2b9d2006251
17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1377
diff
changeset
|
68 |
openchrome_drv_la_LDFLAGS_add = \ |
1097
243d7ed7a10c
6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1088
diff
changeset
|
69 |
-L$(PROTODIR)$(X11_SERVERMODS_DIR) \ |
606
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
70 |
-L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \ |
1333
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
71 |
-L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR) \ |
1097
243d7ed7a10c
6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1088
diff
changeset
|
72 |
-R$(X11_SERVERMODS_DIR) \ |
606
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
73 |
-R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \ |
1426
a3f99705098d
17915870 clean up check_rtime & ld guidance warnings in X gate (workaround linker bug 17976802)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1425
diff
changeset
|
74 |
$(XORG_EXTERNS_FLAG) -M $(PWD)/mapfile.externs \ |
1088
1c99106ccbe0
6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
970
diff
changeset
|
75 |
-lfb -lint10 -lpciaccess -lpixman-1 -lvbe \ |
1426
a3f99705098d
17915870 clean up check_rtime & ld guidance warnings in X gate (workaround linker bug 17976802)
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1425
diff
changeset
|
76 |
-lexa -lvgahw -lm -ldrm -lshadow |
1425
d2b9d2006251
17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1377
diff
changeset
|
77 |
MODULE_BUILD_ENV = \ |
d2b9d2006251
17915870 clean up check_rtime & ld guidance warnings in X gate
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
1377
diff
changeset
|
78 |
openchrome_drv_la_LDFLAGS_add='$(openchrome_drv_la_LDFLAGS_add)' |
606
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
79 |
|
068c11b419c9
6582489 X11R7.4: Xorg server 1.5.3, Mesa 7.2, and associated driver updates
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff
changeset
|
80 |
include ../Makefile.inc |
1333
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
81 |
|
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
82 |
# via_regs.h has ^M's at linefeeds which break Sun compilers |
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
83 |
clean_linefeeds: $(CLEAN_LINEFEED_TARGET) |
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
84 |
$(SOURCE_ADD_TARGET): $(CLEAN_LINEFEED_TARGET) |
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
85 |
$(PATCHED_TARGET): $(CLEAN_LINEFEED_TARGET) |
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
86 |
|
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
87 |
$(CLEAN_LINEFEED_TARGET): $(SOURCE_INIT_TARGET) |
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
88 |
find $(BUILD_DIR) -type f -name '*.[ch]' | \ |
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
89 |
xargs $(PERL) -i -p -e 's{\r\n}{\n}g' |
988018ca2b99
14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents:
1265
diff
changeset
|
90 |
touch $(CLEAN_LINEFEED_TARGET) |