Makefile revision 1397
963N/A###############################################################################
963N/A#
1196N/A# Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
963N/A#
963N/A# Permission is hereby granted, free of charge, to any person obtaining a
963N/A# copy of this software and associated documentation files (the "Software"),
963N/A# to deal in the Software without restriction, including without limitation
963N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
963N/A# and/or sell copies of the Software, and to permit persons to whom the
963N/A# Software is furnished to do so, subject to the following conditions:
963N/A#
963N/A# The above copyright notice and this permission notice (including the next
963N/A# paragraph) shall be included in all copies or substantial portions of the
963N/A# Software.
963N/A#
963N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
963N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
963N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
963N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
963N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
963N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
963N/A# DEALINGS IN THE SOFTWARE.
963N/A#
963N/A#
963N/A
963N/A# Package name used in tarballs
963N/AMODULE_NAME=xf86-video-openchrome
963N/A
963N/A# Package metadata
963N/AUPSTREAM = The OpenChrome project
963N/AUPSTREAM_URL = http://www.openchrome.org/
970N/AUPSTREAM_SET = yes
970N/AORACLE_TPNO = 12031
970N/AORACLE_TPNO_SET = yes
970N/A
970N/A# Version number (used in path names)
970N/AMODULE_VERSION=0.3.2
970N/A
970N/A# Checksums for upstream tarball
970N/ATARBALL_MD5 = 172509a5a7ab5c89ff09501d733cf5f6
970N/ATARBALL_SHA1 = e5be9a8200410b3e3e66349bab4c8acd1ead4402
970N/A
970N/A# Patches to apply to source after unpacking, in order
970N/ASOURCE_PATCHES = manpage-sections.patch,-p1
970N/ASOURCE_PATCHES += CVE-2013-1994.patch,-p1
963N/A
963N/A# Extra rules to run when unpacking upstream source
963N/ACLEAN_LINEFEED_TARGET = $(SOURCE_DIR)/.source.clean.done
963N/AMODULE_ADD_SOURCE_TARGETS = $(CLEAN_LINEFEED_TARGET)
963N/A
963N/A# manpage-sections.patch edits configure.ac, so we need to autoreconf
963N/AAUTORECONF=yes
963N/A
963N/A# Man pages to apply Sun footer to & attributes to list
963N/ASUNTOUCHED_MANPAGES=man/*.man
963N/AMODULE_STABILITY=Volatile
963N/A
963N/A# Extra flags to pass to configure script
963N/A# - Disable DRI since the kernel module isn't ported
963N/AMODULE_CONFIG_OPTS=--disable-dri --disable-kms
963N/A
963N/A# Libraries/modules to link with
963N/AMODULE_LD_OPTIONS= \
963N/A -L$(PROTODIR)$(X11_SERVERMODS_DIR) \
963N/A -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
963N/A -L$(PROTODIR)$(MESA_XSERVERMODS_DIR)/extensions \
963N/A -L$(PROTODIR)$(X11_SERVERMODS_DIR)/extensions \
963N/A -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR) \
963N/A -R$(X11_SERVERMODS_DIR) \
963N/A -R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
963N/A -lfb -lint10 -lpciaccess -lpixman-1 -lvbe \
963N/A -lexa -lvgahw -lshadowfb -lXfont -lm -ldrm -lshadow \
963N/A -M $(PWD)/mapfile.externs
963N/A
963N/Ainclude ../Makefile.inc
963N/A
963N/A# via_regs.h has ^M's at linefeeds which break Sun compilers
963N/Aclean_linefeeds: $(CLEAN_LINEFEED_TARGET)
963N/A$(SOURCE_ADD_TARGET): $(CLEAN_LINEFEED_TARGET)
963N/A$(PATCHED_TARGET): $(CLEAN_LINEFEED_TARGET)
963N/A
989N/A$(CLEAN_LINEFEED_TARGET): $(SOURCE_INIT_TARGET)
992N/A find $(BUILD_DIR) -type f -name '*.[ch]' | \
992N/A xargs $(PERL) -i -p -e 's{\r\n}{\n}g'
992N/A touch $(CLEAN_LINEFEED_TARGET)
992N/A