Makefile revision 1179
70N/A#
70N/A# Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
286N/A#
70N/A# Permission is hereby granted, free of charge, to any person obtaining a
70N/A# copy of this software and associated documentation files (the "Software"),
70N/A# to deal in the Software without restriction, including without limitation
70N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
70N/A# and/or sell copies of the Software, and to permit persons to whom the
70N/A# Software is furnished to do so, subject to the following conditions:
70N/A#
70N/A# The above copyright notice and this permission notice (including the next
70N/A# paragraph) shall be included in all copies or substantial portions of the
70N/A# Software.
70N/A#
70N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
70N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
70N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
70N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
70N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
70N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
70N/A# DEALINGS IN THE SOFTWARE.
70N/A#
70N/A#
70N/A
70N/A# Package name used in tarballs
70N/AMODULE_NAME=libdrm
70N/A
70N/A# Package metadata
70N/AUPSTREAM = Direct Rendering Infrastructure project
70N/AUPSTREAM_URL = http://dri.freedesktop.org/
435N/AUPSTREAM_SET = yes
70N/A
70N/A# Version number (used in path names)
70N/AMODULE_VERSION=2.4.25
359N/A
359N/A# Checksums for upstream tarball
359N/ATARBALL_MD5 = f53dc4c72109b17908e4113c3b8addfe
98N/ATARBALL_SHA1 = b950f29cd1c4bb9f1c98a926486a47256b0a4194
321N/A
321N/A# Library name (used for specfiles/mapfiles)
213N/ALIBNAME=drm
304N/A
425N/A# Download site for source
425N/ASOURCE_URL=http://dri.freedesktop.org/libdrm/$(SOURCE_TARBALL_NAME)
325N/ASOURCE_URL_SET=yes
320N/AGIT_URL=$(FDO_GIT_URL)/mesa/drm
332N/AGIT_URL_SET=yes
231N/A
98N/A# Patches to apply to source after unpacking, in order
347N/ASOURCE_PATCHES = \
346N/A solaris-drm-port.patch atomic.patch
425N/A
324N/A# Need to use GNU Make to build
347N/AMODULE_MAKE=$(GNUMAKE)
310N/AMODULE_MAKE_SET=yes
316N/A
290N/AMODULE_BUILD_MAKEFLAGS = libkms_la_LIBADD=../libdrm.so.2
332N/A
332N/A# Command line options to GNU autoconf configure script
332N/AMODULE_CONFIG_OPTS = --disable-radeon --enable-libkms
210N/A
128N/A# Man pages to apply Sun footer to & attributes to list
414N/A#SUNTOUCHED_MANPAGES=*.man
326N/A#MODULE_STABILITY=Volatile
335N/A#LIB_MAN_SUFFIX=3drm
425N/A
370N/A# pkg-config files that need to have -R added
70N/AFIX_PC_FILES=libdrm.pc.in intel/libdrm_intel.pc.in libkms/libkms.pc.in
400N/A
294N/A# Where to install files
435N/AMODULE_ADD_LIB_SUBDIR = $(X11_SERVERLIBS_SUBDIR)
98N/AMODULE_PKGCONFIG_DIR = $(PKGCONFIG_DIR)
434N/AMODULE_PKGCONFIG_DIR_SET = yes
277N/A
433N/Ainclude ../Makefile.inc
356N/A
289N/Ainstall: $(PROTODIR)/usr/include/drm
326N/A
290N/A$(PROTODIR)/usr/include/drm:
424N/A @rm -f $@
286N/A ln -s libdrm $@
90N/A
295N/A# Upstream seems to install in $(X11_SERVERLIBS_SUBDIR)/pkgconfig no matter
70N/A# what, so just move them afterwards
299N/APC_FILES = libdrm.pc libdrm_intel.pc libkms.pc
262N/AMOVED_PC_FILES = $(PC_FILES:%=$(PROTODIR)/$(PKGCONFIG_DIR)/%)
277N/AXSERVER_PC_DIR = $(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)/pkgconfig
332N/A
332N/Ainstall-gen: $(MOVED_PC_FILES)
70N/A
70N/A$(PROTODIR)/$(PKGCONFIG_DIR)/%.pc: $(PROTODIR)/$(XSERVER_PC_DIR)/%.pc
319N/A -rm -f $@
280N/A mv $< $@
319N/A
359N/A$(PC_FILES:%=$(PROTODIR)/$(XSERVER_PC_DIR)/%): default_install
418N/A