Makefile revision 1634
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj#
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj#
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# Permission is hereby granted, free of charge, to any person obtaining a
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# copy of this software and associated documentation files (the "Software"),
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# to deal in the Software without restriction, including without limitation
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# the rights to use, copy, modify, merge, publish, distribute, sublicense,
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# and/or sell copies of the Software, and to permit persons to whom the
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# Software is furnished to do so, subject to the following conditions:
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj#
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# The above copyright notice and this permission notice (including the next
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# paragraph) shall be included in all copies or substantial portions of the
5cf507fca7719ae9280d0a5199e024e920f1284dAlex Valavanis# Software.
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj#
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# DEALINGS IN THE SOFTWARE.
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj#
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj#
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# Package name used in tarballs
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtjMODULE_NAME=libdrm
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# Package metadata
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtjUPSTREAM = Direct Rendering Infrastructure project
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtjUPSTREAM_URL = http://dri.freedesktop.org/
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtjUPSTREAM_SET = yes
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# update to 2.4.67 covered by X mass TPNO
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtjORACLE_TPNO = 22887
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# Version number (used in path names)
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtjMODULE_VERSION=2.4.67
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj
e4a9f366dbcb54f76b8c42869fa6873808132357gouldtj# Checksums for upstream tarball
18023a6d3838bec98725b5a745bd29350bb9e337buliabyakTARBALL_MD5 = b844c6af34e613ebf52f80b3cd8d7055
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtjTARBALL_SHA1 = 21d43437219ddd1e409fb4b7d77254cd129e8075
57e8d5fd57a890842b51a13207e222fcf953816cJazzyNicoTARBALL_SHA256 = ee5b71e1113be37544d0752681c12f040c01f782e2933df7d7bc21fd0d10cebe
57e8d5fd57a890842b51a13207e222fcf953816cJazzyNico
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# Library name (used for specfiles/mapfiles)
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtjLIBNAME=drm
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# Download site for source
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtjSOURCE_URL=http://dri.freedesktop.org/libdrm/$(SOURCE_TARBALL_NAME)
18023a6d3838bec98725b5a745bd29350bb9e337buliabyakSOURCE_URL_SET=yes
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtjGIT_URL=$(FDO_GIT_URL)/mesa/drm
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtjGIT_URL_SET=yes
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# Patches to apply to source after unpacking, in order
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtjSOURCE_PATCHES += solaris-drm-port.patch
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtjSOURCE_PATCHES += atomic.patch
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj
77f2a5f29601711a1177eef5a01855e9cdb30b34gouldtj# Need to use GNU Make to build
MODULE_MAKE=$(GNUMAKE)
MODULE_MAKE_SET=yes
# Need to build with gcc
MODULE_COMPILER=gcc
MODULE_COMPILER_SET=yes
# Command line options to GNU autoconf configure script
MODULE_CONFIG_OPTS = --enable-libkms --disable-nouveau \
--disable-amdgpu
# Cos of 23185711 - disable parfait temporarily
USE_PARFAIT = no
AUTORECONF=yes
# Man pages to apply Sun footer to & attributes to list
#SUNTOUCHED_MANPAGES=*.man
MODULE_STABILITY = Volatile
LIB_MAN_SUFFIX = 3
MODULE_MTLEVEL=Unknown
MODULE_MTLEVEL_SET=yes
MODULE_PKGCONFIG_MAN=libdrm
MODULE_PKGCONFIG_MAN_SET=yes
# pkg-config files that need to be updated
FIX_PC_FILES=libdrm.pc.in intel/libdrm_intel.pc.in libkms/libkms.pc.in \
radeon/libdrm_radeon.pc.in
# Where to install files
MODULE_ADD_LIB_SUBDIR = $(X11_SERVERLIBS_SUBDIR)
MODULE_LDFLAGS = -R $(MODULE_FULLARCH_LIB_DIR)
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 $@
install-gen: install_fixed_manpages
# Need to apply suntouch changes to man pages generated during build
MANDIR = $(PROTODIR)$(MODULE_MAN_DIR)
install_fixed_manpages: default_install
$(PERL) $(TOP)/open-src/common/suntouch-manpages.pl \
$(SUNTOUCH_MAN_FLAGS) $(BUILD_DIR)/man/*.{3,7}
ginstall -m 0444 $(BUILD_DIR)/man/*.3 $(MANDIR)/man3
ginstall -m 0444 $(BUILD_DIR)/man/*.7 $(MANDIR)/man7