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