Makefile revision 1351
###############################################################################
#
# xcb - Lighter weight X11 client libraries
#
# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice (including the next
# paragraph) shall be included in all copies or substantial portions of the
# Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
#
# Package name used in tarballs
MODULE_NAME=libxcb
# Version number (used in path names)
MODULE_VERSION=1.9
# Checksums for upstream tarball
TARBALL_MD5 = 2b05856e9d1cb37836aae7406f2f4ce2
TARBALL_SHA1 = ad2fb95eeec41ba3d39502a4f7460c3b64fdf061
# ARC cases that covered this module
MODULE_ARC_CASES = PSARC/2010/109
# Package metadata
MODULE_DESC = the XCB family of X11 client libraries
UPSTREAM_PROJECT = xcb
UPSTREAM_PROJECT_SET = yes
# Patches to apply to source after unpacking, in order
SOURCE_PATCHES = Makefile.am.0.patch,-p1
SOURCE_PATCHES += Makefile.am.4.patch,-p1
SOURCE_PATCHES += 16702043.patch
SOURCE_PATCHES += CVE-2013-2064.patch,-p1
# Regenerate Makefile.in's from Makefile.am's after patching them
AUTORECONF=yes
# Library name (used for specfiles/mapfiles)
LIBNAME=xcb
# Man pages to apply Sun footer to & attributes to list
SUNTOUCHED_MANPAGES=src/man/*
MODULE_STABILITY=Volatile
LIB_MAN_SUFFIX=3xcb
MODULE_LD_OPTIONS = -z ignore -lc
LD_LIBRARY_PATH=$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR)
# Command line options to GNU autoconf configure script
MODULE_CONFIG_OPTS = $(MODTYPE_CONFIG_OPTS) \
--disable-libtool-lock \
--enable-build-docs=no \
--enable-composite \
--enable-damage \
--enable-dpms \
--enable-dri2 \
--enable-glx \
--enable-randr \
--enable-record \
--enable-render \
--enable-resource \
--enable-screensaver \
--enable-shape \
--enable-shm \
--enable-sync \
--enable-xevie \
--enable-xfixes \
--enable-xfree86-dri \
--enable-xinerama \
--enable-xinput \
--enable-xprint \
--disable-selinux \
--enable-xtest \
--enable-xv \
--enable-xvmc \
--with-queue-size=32768 \
--with-pic
# Work around libtool's interference
DELIBTOOLIZE=yes
# pkg-config files that need to have -R added
FIX_PC_FILES=*.pc.in
# Additional rules beyond what upstream provides
MODULE_ADD_INSTALL_TARGETS=install_solaris_exts
include ../Makefile.inc
# Additional files we need to install
CP = cp -pf
MANDIR = $(PROTODIR)$(X11_MAN_DIR)/man3xcb
install_solaris_exts: $(INSTALL_DEPS)
mkdir -p $(MANDIR)
$(CP) $(SOURCE_DIR)/src/man/xcb-examples.3 $(MANDIR)/xcb-examples.3xcb
$(CP) $(SOURCE_DIR)/src/man/xcb-requests.3 $(MANDIR)/xcb-requests.3xcb