author | Alan Coopersmith <Alan.Coopersmith@Oracle.COM> |
Wed, 07 Apr 2010 15:57:52 -0700 | |
changeset 935 | f812f9863e75 |
parent 919 | 425233ae7236 |
child 957 | c2f4cfc53173 |
permissions | -rw-r--r-- |
257
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
1 |
############################################################################### |
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
2 |
# |
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
3 |
# xf86-video-radeonhd Makefile |
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
4 |
# |
935
f812f9863e75
6941861 Collected X gate build fixes
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
919
diff
changeset
|
5 |
# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. |
257
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
6 |
# |
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
7 |
# 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
|
8 |
# 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
|
9 |
# 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
|
10 |
# 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
|
11 |
# 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
|
12 |
# 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
|
13 |
# |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
14 |
# 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
|
15 |
# 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
|
16 |
# Software. |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
17 |
# |
425233ae7236
6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
911
diff
changeset
|
18 |
# 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
|
19 |
# 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
|
20 |
# 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
|
21 |
# 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
|
22 |
# 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
|
23 |
# 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
|
24 |
# DEALINGS IN THE SOFTWARE. |
257
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
25 |
# |
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
26 |
# |
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
27 |
|
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
28 |
# Package name used in tarballs |
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
399
diff
changeset
|
29 |
MODULE_NAME=xf86-video-radeonhd |
257
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
30 |
|
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
31 |
# Version number (used in path names) |
851
d428083dbbdd
6905171 X11R7.5 / Xorg 1.7.3 integration
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
705
diff
changeset
|
32 |
MODULE_VERSION=1.3.0 |
257
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
33 |
|
911
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
907
diff
changeset
|
34 |
# Checksums for upstream tarball |
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
907
diff
changeset
|
35 |
TARBALL_MD5 = 7b6641aa9d836f1621b9b220ad6771b8 |
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
907
diff
changeset
|
36 |
TARBALL_SHA1 = 4cdcdbcdc6ec7cd4caa19afdbfc34a8bec461f56 |
a3e7e197651c
6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
907
diff
changeset
|
37 |
|
257
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
38 |
# Patches to apply to source after unpacking, in order |
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
39 |
SOURCE_PATCHES= |
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
40 |
|
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
41 |
# Man pages to apply Sun footer to & attributes to list |
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
42 |
SUNTOUCHED_MANPAGES=man/*.man |
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
399
diff
changeset
|
43 |
SUN_PACKAGE=SUNWxorg-graphics-ddx |
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
399
diff
changeset
|
44 |
MODULE_STABILITY=Volatile |
257
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
45 |
|
705
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
606
diff
changeset
|
46 |
MODULE_CPPFLAGS= -DXF86DRI |
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
606
diff
changeset
|
47 |
|
257
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
48 |
# Libraries/modules to link with |
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
399
diff
changeset
|
49 |
MODULE_LD_OPTIONS= \ |
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
399
diff
changeset
|
50 |
-L$(PROTODIR)$(X11_SERVERMODS_DIR)$(SERVERMOD_subdir) \ |
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
399
diff
changeset
|
51 |
-L$(PROTODIR)$(X11_SERVERMODS_DIR)$(SERVERMOD_subdir)/extensions \ |
257
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
52 |
-L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \ |
493
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
399
diff
changeset
|
53 |
-R$(X11_SERVERMODS_DIR)$(SERVERMOD_subdir) \ |
f43507b5737d
6735203 open-src Makefile cleanup & enhancements
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
399
diff
changeset
|
54 |
-R$(X11_SERVERMODS_DIR)/extensions$(SERVERMOD_subdir) \ |
257
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
55 |
-R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \ |
705
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
606
diff
changeset
|
56 |
-lfb -lshadow -lxaa -lexa -ldri -lglx |
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
606
diff
changeset
|
57 |
|
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
606
diff
changeset
|
58 |
# AtomBios code won't build with Sun compiler |
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
606
diff
changeset
|
59 |
MODULE_COMPILER=gcc |
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
606
diff
changeset
|
60 |
MODULE_COMPILER_SET=yes |
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
606
diff
changeset
|
61 |
|
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
606
diff
changeset
|
62 |
MODULE_ADD_SOURCE_TARGETS=clean_linefeeds |
257
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
63 |
|
258e599d0802
6636734 Include the radeonhd opensrc driver
Niveditha Rau <Niveditha.Rau@Sun.COM>
parents:
diff
changeset
|
64 |
include ../Makefile.inc |
705
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
606
diff
changeset
|
65 |
|
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
606
diff
changeset
|
66 |
# ATI's atombios code has ^M's at linefeeds which break Sun compilers |
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
606
diff
changeset
|
67 |
clean_linefeeds: default_source |
24ca414edbff
6826940 Xorg server 1.6.1, Mesa 7.4.1, and associated module upgrades [PSARC 2009/292]
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
606
diff
changeset
|
68 |
find $(BUILD_DIR) -type f -name '*.[ch]' | \ |
935
f812f9863e75
6941861 Collected X gate build fixes
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
919
diff
changeset
|
69 |
xargs $(PERL) -i -p -e 's{\r\n}{\n}g' |