open-src/driver/xf86-video-openchrome/Makefile
author Niveditha Rau <Niveditha.Rau@Oracle.COM>
Mon, 05 Nov 2012 16:17:08 -0800
changeset 1333 988018ca2b99
parent 1265 0b5cc5c013e4
child 1356 73c3eb360de2
permissions -rw-r--r--
14850206 update to Xorg 1.13.0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
     1
#
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
# xf86-video-openchrome Makefile
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
     3
#
1265
0b5cc5c013e4 7083537 Xorg 1.12 & associated module updates
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1097
diff changeset
     4
# Copyright (c) 2009, 2012, 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
     5
#
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
     6
# 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
     7
# 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
     8
# 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
     9
# 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
    10
# 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
    11
# 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
    12
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    13
# 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
    14
# 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
    15
# Software.
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    16
#
425233ae7236 6931307 Standardize Sun copyright & license notices in X gate on current format
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 911
diff changeset
    17
# 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
    18
# 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
    19
# 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
    20
# 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
    21
# 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
    22
# 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
    23
# 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
    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
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
# 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
    28
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
    29
970
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 965
diff changeset
    30
# Package metadata
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 965
diff changeset
    31
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
    32
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
    33
UPSTREAM_SET    = yes
272328fe1b4a 6941932 X should be able to build IPS packages natively
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 965
diff changeset
    34
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
    35
# Version number (used in path names)
1333
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    36
MODULE_VERSION=0.3.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
    37
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    38
# Checksums for upstream tarball
1333
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    39
TARBALL_MD5  = 4f488b7bd4d34d17d5cbcdc0fe8e659d
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    40
TARBALL_SHA1 = 89e56dcfe851345f72c61a95b4fa5ab6ad7e0d83
911
a3e7e197651c 6929667 Automate downloading and verification of tarballs used to build X gate
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 851
diff changeset
    41
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
    42
# 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
    43
SOURCE_PATCHES = manpage-sections.patch,-p1
ef9da9d336f5 6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    44
1333
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    45
# 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
    46
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
    47
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
    48
947
ef9da9d336f5 6950022 X man page cleanups
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 943
diff changeset
    49
# 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
    50
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
    51
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
    52
# 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
    53
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
    54
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
    55
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
# 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
    57
# - 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
    58
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
    59
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
# Libraries/modules to link with
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
    61
MODULE_LD_OPTIONS= \
1097
243d7ed7a10c 6991718 Removal of 32-bit X servers [PSARC/2010/382]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 1088
diff changeset
    62
	-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
    63
	-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
    64
        -L$(PROTODIR)$(MESA_XSERVERMODS_DIR)/extensions \
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    65
        -L$(PROTODIR)$(X11_SERVERMODS_DIR)/extensions \
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    66
        -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
    67
	-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
    68
	-R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
1088
1c99106ccbe0 6983602 Xorg 1.9 integration [PSARC/2011/008]
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents: 970
diff changeset
    69
	-lfb -lint10 -lpciaccess -lpixman-1 -lvbe \
1333
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    70
	-lexa -lvgahw -lshadowfb -lXfont -lm -ldrm -lshadow \
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    71
	-M $(PWD)/mapfile.externs
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
    72
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
include ../Makefile.inc
1333
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    74
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    75
# 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
    76
clean_linefeeds: $(CLEAN_LINEFEED_TARGET)
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    77
$(SOURCE_ADD_TARGET): $(CLEAN_LINEFEED_TARGET)
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    78
$(PATCHED_TARGET): $(CLEAN_LINEFEED_TARGET)
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    79
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    80
$(CLEAN_LINEFEED_TARGET): $(SOURCE_INIT_TARGET)
988018ca2b99 14850206 update to Xorg 1.13.0
Niveditha Rau <Niveditha.Rau@Oracle.COM>
parents: 1265
diff changeset
    81
	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
    82
		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
    83
	touch $(CLEAN_LINEFEED_TARGET)