Makefile revision 1134
c330021bf3f45cbf187fa644781e67f7e470a58awrowe###############################################################################
b9b0788ea79de3ee230ccb0abf93a0c2c08f6287lars#
c330021bf3f45cbf187fa644781e67f7e470a58awrowe# efb Makefile
c330021bf3f45cbf187fa644781e67f7e470a58awrowe#
c330021bf3f45cbf187fa644781e67f7e470a58awrowe# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
c330021bf3f45cbf187fa644781e67f7e470a58awrowe#
2a6c49cfaef5979a5a06098f3ce987cd76769409manoj# Permission is hereby granted, free of charge, to any person obtaining a
af4c982a7cf4515f124935f99a329744035fc699slive# copy of this software and associated documentation files (the "Software"),
af4c982a7cf4515f124935f99a329744035fc699slive# to deal in the Software without restriction, including without limitation
af4c982a7cf4515f124935f99a329744035fc699slive# the rights to use, copy, modify, merge, publish, distribute, sublicense,
af4c982a7cf4515f124935f99a329744035fc699slive# and/or sell copies of the Software, and to permit persons to whom the
af4c982a7cf4515f124935f99a329744035fc699slive# Software is furnished to do so, subject to the following conditions:
af4c982a7cf4515f124935f99a329744035fc699slive#
af4c982a7cf4515f124935f99a329744035fc699slive# The above copyright notice and this permission notice (including the next
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe# paragraph) shall be included in all copies or substantial portions of the
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe# Software.
abdf88f96a56cf5c242d3195c493dbb8a7355d03wrowe#
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
10270f6f94b2069d0d357805c140a9897449b9ccianh# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4b62424416882687387923b3130b96241503cbe0jerenkrantz# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5ca8e11fadb6f7a8d9d0367c1800205c99d4bcd6jerenkrantz# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45b0e1c775c1cfed6473c9e5304179ccb9609f53stoddard# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
dbec4658981e4f9127e8676457c28d42932be7cdtrawick# DEALINGS IN THE SOFTWARE.
1b7e9aeb9867a1c94e24e8ae491d2dfcd0d225e3jerenkrantz#
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz#
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick# Package name used in tarballs
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawickMODULE_NAME=xf86-video-ati
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick
c95a8116bde20ab75f2e54d0e867bdf2e13643c3jim# Version number (used in path names)
7718f3d5b4da70eb063877f5300ee361435910f4ndMODULE_VERSION=6.8.0
13402b2193f52031b2acfbee2b0965e02f3f29b4wrowe
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick# Checksums for upstream tarball
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawickTARBALL_MD5 = 3c97c7925ebf4162eeb3463e23adc0e3
418f39e60a288f855ec033b566744489c3bbbf39trawickTARBALL_SHA1 = b6974237b6ae9b45b32fc37f31a3fee7358230d3
cc22a72861c58dda7f3768613aec864e4c4e0353striker
f95a0b59eb24c631f15bd83e20c6cf823c432d83trawick# Patches to apply to source after unpacking, in order
ddafc111b94558ef4e2d7357ceda623315566ce3sliveSOURCE_PATCHES = \
ddafc111b94558ef4e2d7357ceda623315566ce3slive RAC-API-removal.patch,-p1 \
7718f3d5b4da70eb063877f5300ee361435910f4nd no-modes.patch,-p1 \
ddafc111b94558ef4e2d7357ceda623315566ce3slive sparc-efb.patch,-p1
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbb# Need to regenerate configure after patching Makefile.am in sparc-efb.patch
bca5b27d271b6e1690134a83963424b9825d93bdstrikerAUTORECONF=yes
bca5b27d271b6e1690134a83963424b9825d93bdstriker
7718f3d5b4da70eb063877f5300ee361435910f4nd# pkg(5) name we deliver the files in (override default)
13402b2193f52031b2acfbee2b0965e02f3f29b4wroweMODULE_PKGTAIL=xorg-efb
13402b2193f52031b2acfbee2b0965e02f3f29b4wroweMODULE_PKGTAIL_SET=yes
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim# Man pages to apply Sun footer to & attributes to list
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjimSUNTOUCHED_MANPAGES=man/*.man
93f189f1198f539d3cfa75a15b23dcde60ee35ffrbbMODULE_STABILITY=Volatile
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzDELIBTOOLIZE_FLAGS = -P
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# Extra flags to pass to configure script
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantzMODULE_CONFIG_OPTS=--disable-dri
b9b0788ea79de3ee230ccb0abf93a0c2c08f6287lars
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# Merge in additional sources from sun-src directory
7718f3d5b4da70eb063877f5300ee361435910f4ndADDITIONAL_SOURCE_DIR=sun-src
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim# Extra rules to run when unpacking upstream source
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjimCLEAN_LINEFEED_TARGET = $(SOURCE_DIR)/.source.clean.done
7718f3d5b4da70eb063877f5300ee361435910f4ndMODULE_ADD_SOURCE_TARGETS = $(CLEAN_LINEFEED_TARGET)
b9b0788ea79de3ee230ccb0abf93a0c2c08f6287lars
b9b0788ea79de3ee230ccb0abf93a0c2c08f6287larsXF86_VIDEO_ATI_SRC = $(PWD:efb=xf86-video-ati)
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz# Libraries/modules to link with
7718f3d5b4da70eb063877f5300ee361435910f4ndMODULE_LD_OPTIONS= \
1af5c0e25a649bb298e25ddfa5418fa18bdcb107aaron -L$(PROTODIR)$(X11_SERVERMODS_DIR) \
38d2c5d41cdb5eb28668d0290b59f8c76ae2a4bfjim -L$(PROTODIR)$(X11_SERVERMODS_DIR)/extensions \
82455c2e3b6991846fbcbf0c9e41f57dbc681217brianp -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
f4cb04eb78da02a38fcdd87489dc7b660107d55fjerenkrantz -L$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR) \
1b3f48fd6b1ccb8745f908e40156c5a85ca3c347jerenkrantz -R$(X11_SERVERMODS_DIR) \
b05930e6008f69bd323abe0c10f81f40ffd27983brianp -R$(X11_SERVERMODS_DIR)/extensions \
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz -R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz -R$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR) \
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz -lexa -lfb -lint10 -lvbe -lvgahw -lxaa -lshadow \
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz -lpciaccess -lpixman-1 -ldrm -ldri -lglx -lm \
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz -M $(XF86_VIDEO_ATI_SRC)/mapfile-bt829_drv-external \
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz -M $(XF86_VIDEO_ATI_SRC)/mapfile-fi1236_drv-external \
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz -M $(XF86_VIDEO_ATI_SRC)/mapfile-msp3430_drv-external \
016f2545c9375ec7fc5e9cb70aa1ae0cace83c98jerenkrantz -M $(XF86_VIDEO_ATI_SRC)/mapfile-tda9885_drv-external \
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe -M $(XF86_VIDEO_ATI_SRC)/mapfile-uda1380_drv-external \
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe -M drv.mapfile
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe
f610c7c704235bc327dbe9b62982f5b3f8e30a77wroweinclude ../Makefile.inc
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe
b3b4e853e4958357ee2d50e2fe41effecfde9eedwrowe# ATI's atombios code has ^M's at linefeeds which break Sun compilers
f610c7c704235bc327dbe9b62982f5b3f8e30a77wroweclean_linefeeds: $(CLEAN_LINEFEED_TARGET)
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe$(SOURCE_ADD_TARGET): $(CLEAN_LINEFEED_TARGET)
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe$(PATCHED_TARGET): $(CLEAN_LINEFEED_TARGET)
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe$(CLEAN_LINEFEED_TARGET): $(SOURCE_INIT_TARGET)
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe find $(BUILD_DIR) -type f -name '*.[ch]' | \
6362fd5c48f6b2193f5d356a9747172101b24e91jerenkrantz xargs perl -i -p -e 's{\r\n}{\n}g'
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe touch $(CLEAN_LINEFEED_TARGET)
f610c7c704235bc327dbe9b62982f5b3f8e30a77wrowe