Makefile revision 1351
f743002678eb67b99bbc29fee116b65d9530fec0wrowe###############################################################################
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg#
16f23f109da3b82fdca8695789bec9f06e2e3383humbedooh# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
6029353b43240f5fa7feede018ce0e3ab1600c96covener#
6029353b43240f5fa7feede018ce0e3ab1600c96covener# Permission is hereby granted, free of charge, to any person obtaining a
6029353b43240f5fa7feede018ce0e3ab1600c96covener# copy of this software and associated documentation files (the "Software"),
8861e3760584fe7f451b3519163502a63c406eb3humbedooh# to deal in the Software without restriction, including without limitation
8861e3760584fe7f451b3519163502a63c406eb3humbedooh# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8861e3760584fe7f451b3519163502a63c406eb3humbedooh# and/or sell copies of the Software, and to permit persons to whom the
e1f43cac62f6960a6945e1fb6e3288ef7082ac53rpluem# Software is furnished to do so, subject to the following conditions:
e1f43cac62f6960a6945e1fb6e3288ef7082ac53rpluem#
e1f43cac62f6960a6945e1fb6e3288ef7082ac53rpluem# The above copyright notice and this permission notice (including the next
e1f43cac62f6960a6945e1fb6e3288ef7082ac53rpluem# paragraph) shall be included in all copies or substantial portions of the
f06e7c4b1bce6b6491e5de0b7998d3f5696b293dchrisd# Software.
f06e7c4b1bce6b6491e5de0b7998d3f5696b293dchrisd#
f06e7c4b1bce6b6491e5de0b7998d3f5696b293dchrisd# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
179565be4043d7e5f9161aa75271fa0a001866d9covener# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
179565be4043d7e5f9161aa75271fa0a001866d9covener# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
179565be4043d7e5f9161aa75271fa0a001866d9covener# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
111436a32ba1254291e4883292fb116d15fe8f64covener# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
fce4949fb0b309a5744afcd503c6ed2d35621ee2covener# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
fce4949fb0b309a5744afcd503c6ed2d35621ee2covener# DEALINGS IN THE SOFTWARE.
fce4949fb0b309a5744afcd503c6ed2d35621ee2covener#
fce4949fb0b309a5744afcd503c6ed2d35621ee2covener#
7b7430e701e9a31ce809da7c220bb8dfcf68c86etrawick
7b7430e701e9a31ce809da7c220bb8dfcf68c86etrawick# Package name used in tarballs
7b7430e701e9a31ce809da7c220bb8dfcf68c86etrawickMODULE_NAME=xf86-video-openchrome
ccc20788c1e5fc973f36df634399c89acb70deaejerenkrantz
ccc20788c1e5fc973f36df634399c89acb70deaejerenkrantz# Package metadata
ccc20788c1e5fc973f36df634399c89acb70deaejerenkrantzUPSTREAM = The OpenChrome project
d522f82d7ada07a0cedb8dc6b71eacf3477d7188trawickUPSTREAM_URL = http://www.openchrome.org/
d522f82d7ada07a0cedb8dc6b71eacf3477d7188trawickUPSTREAM_SET = yes
d522f82d7ada07a0cedb8dc6b71eacf3477d7188trawickORACLE_TPNO = 12031
1e1539a1e7d64b1af92636b81aac5aa50ee3163bminfrin
1e1539a1e7d64b1af92636b81aac5aa50ee3163bminfrin# Version number (used in path names)
1e1539a1e7d64b1af92636b81aac5aa50ee3163bminfrinMODULE_VERSION=0.3.2
273e512f20f262e5e2aa8e0e83371d1929fb76adjkaluza
273e512f20f262e5e2aa8e0e83371d1929fb76adjkaluza# Checksums for upstream tarball
273e512f20f262e5e2aa8e0e83371d1929fb76adjkaluzaTARBALL_MD5 = 172509a5a7ab5c89ff09501d733cf5f6
efe780dcf13b2b95effabf897d694d8f23feac74trawickTARBALL_SHA1 = e5be9a8200410b3e3e66349bab4c8acd1ead4402
81849cd8925f6ffaf57412aaaac8a6df0d33cbb6covener
81849cd8925f6ffaf57412aaaac8a6df0d33cbb6covener# Patches to apply to source after unpacking, in order
81849cd8925f6ffaf57412aaaac8a6df0d33cbb6covenerSOURCE_PATCHES = manpage-sections.patch,-p1
c8e4ae58e7b9eb27e5158d6980770d5064c50ba7trawickSOURCE_PATCHES += CVE-2013-1994.patch,-p1
c8e4ae58e7b9eb27e5158d6980770d5064c50ba7trawick
c8e4ae58e7b9eb27e5158d6980770d5064c50ba7trawick# Extra rules to run when unpacking upstream source
c8e4ae58e7b9eb27e5158d6980770d5064c50ba7trawickCLEAN_LINEFEED_TARGET = $(SOURCE_DIR)/.source.clean.done
c8e4ae58e7b9eb27e5158d6980770d5064c50ba7trawickMODULE_ADD_SOURCE_TARGETS = $(CLEAN_LINEFEED_TARGET)
fe83f60b41477b14a37edcfcd1f7f5c5a1ebfe44minfrin
fe83f60b41477b14a37edcfcd1f7f5c5a1ebfe44minfrin# manpage-sections.patch edits configure.ac, so we need to autoreconf
fe83f60b41477b14a37edcfcd1f7f5c5a1ebfe44minfrinAUTORECONF=yes
993d1261a278d7322bccef219101220b7b4fb8c5jkaluza
993d1261a278d7322bccef219101220b7b4fb8c5jkaluza# Man pages to apply Sun footer to & attributes to list
993d1261a278d7322bccef219101220b7b4fb8c5jkaluzaSUNTOUCHED_MANPAGES=man/*.man
3b995de5609b15115a0764e6979ba43071a2988fjimMODULE_STABILITY=Volatile
3b995de5609b15115a0764e6979ba43071a2988fjim
3b995de5609b15115a0764e6979ba43071a2988fjim# Extra flags to pass to configure script
ba050a6f942b9fa0e81ed73437588005c569655ccovener# - Disable DRI since the kernel module isn't ported
ba050a6f942b9fa0e81ed73437588005c569655ccovenerMODULE_CONFIG_OPTS=--disable-dri --disable-kms
ba050a6f942b9fa0e81ed73437588005c569655ccovener
ba050a6f942b9fa0e81ed73437588005c569655ccovener# Libraries/modules to link with
ba050a6f942b9fa0e81ed73437588005c569655ccovenerMODULE_LD_OPTIONS= \
ba050a6f942b9fa0e81ed73437588005c569655ccovener -L$(PROTODIR)$(X11_SERVERMODS_DIR) \
ba050a6f942b9fa0e81ed73437588005c569655ccovener -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
135ddda3a989215d2bedbcf1529bfb269c3eda23niq -L$(PROTODIR)$(MESA_XSERVERMODS_DIR)/extensions \
135ddda3a989215d2bedbcf1529bfb269c3eda23niq -L$(PROTODIR)$(X11_SERVERMODS_DIR)/extensions \
135ddda3a989215d2bedbcf1529bfb269c3eda23niq -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR) \
1122585e1e00bb81e9d0f054bf5c318cec23aa7dminfrin -R$(X11_SERVERMODS_DIR) \
1122585e1e00bb81e9d0f054bf5c318cec23aa7dminfrin -R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
1122585e1e00bb81e9d0f054bf5c318cec23aa7dminfrin -lfb -lint10 -lpciaccess -lpixman-1 -lvbe \
001a44c352f89c9ec332ffd3e0a6927dcd19432chumbedooh -lexa -lvgahw -lshadowfb -lXfont -lm -ldrm -lshadow \
001a44c352f89c9ec332ffd3e0a6927dcd19432chumbedooh -M $(PWD)/mapfile.externs
001a44c352f89c9ec332ffd3e0a6927dcd19432chumbedooh
efe780dcf13b2b95effabf897d694d8f23feac74trawickinclude ../Makefile.inc
793214f67dede32edfd9ee96c664ead04d175cbbjfclere
cc5a4a08dc9783fcbc52ce86f11e01c281a43810minfrin# via_regs.h has ^M's at linefeeds which break Sun compilers
33124689065ade0dfc8c54d8ebb734f9439cb89btrawickclean_linefeeds: $(CLEAN_LINEFEED_TARGET)
33124689065ade0dfc8c54d8ebb734f9439cb89btrawick$(SOURCE_ADD_TARGET): $(CLEAN_LINEFEED_TARGET)
33124689065ade0dfc8c54d8ebb734f9439cb89btrawick$(PATCHED_TARGET): $(CLEAN_LINEFEED_TARGET)
9b0076ddd1103e5fa9c1f9bafde4b06ce244fbaecovener
9b0076ddd1103e5fa9c1f9bafde4b06ce244fbaecovener$(CLEAN_LINEFEED_TARGET): $(SOURCE_INIT_TARGET)
9b0076ddd1103e5fa9c1f9bafde4b06ce244fbaecovener find $(BUILD_DIR) -type f -name '*.[ch]' | \
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza xargs $(PERL) -i -p -e 's{\r\n}{\n}g'
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza touch $(CLEAN_LINEFEED_TARGET)
249d09d51808cb7981af99762c3b3736ca126cd5jkaluza