Makefile revision 1339
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync###############################################################################
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# efb driver for Sun XVR-100 & XVR-300 boards (based on ATI Radeon)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Permission is hereby granted, free of charge, to any person obtaining a
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# copy of this software and associated documentation files (the "Software"),
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# to deal in the Software without restriction, including without limitation
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# the rights to use, copy, modify, merge, publish, distribute, sublicense,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# and/or sell copies of the Software, and to permit persons to whom the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Software is furnished to do so, subject to the following conditions:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# The above copyright notice and this permission notice (including the next
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# paragraph) shall be included in all copies or substantial portions of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Software.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# DEALINGS IN THE SOFTWARE.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync#
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Package name used in tarballs
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncMODULE_NAME=xf86-video-ati
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Version number (used in path names)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncMODULE_VERSION=6.8.0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Dates to show in Oracle copyright notice in pkg license file
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Earliest & latest of the copyrights in the Oracle files in this pkg
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncORACLE_COPYRIGHT_YEARS = 2008, 2009
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncMODULE_LICENSE_DESC = portions of the ATI Radeon graphics driver from X.Org
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Checksums for upstream tarball
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncTARBALL_MD5 = 3c97c7925ebf4162eeb3463e23adc0e3
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncTARBALL_SHA1 = b6974237b6ae9b45b32fc37f31a3fee7358230d3
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Patches to apply to source after unpacking, in order
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSOURCE_PATCHES = \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync RAC-API-removal.patch,-p1 \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync no-modes.patch,-p1 \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync sparc-efb.patch,-p1 \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync pciTag.patch
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Need to regenerate configure after patching Makefile.am in sparc-efb.patch
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncAUTORECONF=yes
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# pkg(5) name we deliver the files in (override default)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncMODULE_PKGTAIL=xorg-video-efb
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncMODULE_PKGTAIL_SET=yes
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Man pages to apply Sun footer to & attributes to list
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncSUNTOUCHED_MANPAGES=man/*.man
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncMODULE_STABILITY=Volatile
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncDELIBTOOLIZE_FLAGS = -P
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Extra flags to pass to configure script
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncMODULE_CONFIG_OPTS=--disable-dri
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Merge in additional sources from sun-src directory
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncADDITIONAL_SOURCE_DIR=sun-src
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Extra rules to run when unpacking upstream source
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncCLEAN_LINEFEED_TARGET = $(SOURCE_DIR)/.source.clean.done
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncMODULE_ADD_SOURCE_TARGETS = $(CLEAN_LINEFEED_TARGET)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncXF86_VIDEO_ATI_SRC = $(PWD:efb=xf86-video-ati)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# Libraries/modules to link with
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncMODULE_LD_OPTIONS= \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -L$(PROTODIR)$(X11_SERVERMODS_DIR) \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -L$(PROTODIR)$(X11_SERVERMODS_DIR)/extensions \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -L$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR) \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -R$(X11_SERVERMODS_DIR) \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -R$(X11_SERVERMODS_DIR)/extensions \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -R$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -R$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR) \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -lexa -lfb -lint10 -lvbe -lvgahw -lxaa -lshadow \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -lpciaccess -lpixman-1 -ldrm -ldri -lglx -lm \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -M $(XF86_VIDEO_ATI_SRC)/mapfile-bt829_drv-external \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -M $(XF86_VIDEO_ATI_SRC)/mapfile-fi1236_drv-external \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -M $(XF86_VIDEO_ATI_SRC)/mapfile-msp3430_drv-external \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -M $(XF86_VIDEO_ATI_SRC)/mapfile-tda9885_drv-external \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -M $(XF86_VIDEO_ATI_SRC)/mapfile-uda1380_drv-external \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync -M drv.mapfile
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncinclude ../Makefile.inc
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync# ATI's atombios code has ^M's at linefeeds which break Sun compilers
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncclean_linefeeds: $(CLEAN_LINEFEED_TARGET)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync$(SOURCE_ADD_TARGET): $(CLEAN_LINEFEED_TARGET)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync$(PATCHED_TARGET): $(CLEAN_LINEFEED_TARGET)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync$(CLEAN_LINEFEED_TARGET): $(SOURCE_INIT_TARGET)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync find $(BUILD_DIR) -type f -name '*.[ch]' | \
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync xargs $(PERL) -i -p -e 's{\r\n}{\n}g'
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync touch $(CLEAN_LINEFEED_TARGET)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync