open-src/lib/libxcb/Makefile
author ravi kumar <ravi.n.kumar@oracle.com>
Wed, 12 Apr 2017 06:57:07 +0000
changeset 1705 76aff95e6534
parent 1610 77a2e608a1ff
permissions -rw-r--r--
19154747 X application crashed with Assertion failed: xcb_xlib_threads_sequence_lost

###############################################################################
#
# xcb - Lighter weight X11 client libraries
#
# Copyright (c) 2010, 2017, 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.11

# Checksums for upstream tarball
TARBALL_MD5   = 5a873ebd383d1a60612dd6ec6b42c781
TARBALL_SHA1  = 8343b417d7eeb2a2c6b6c4a87a03a4fd0fc65c46
TARBALL_SHA256= 03635d70045b9ede90778e67516135828a57de87ac508f987024f43c03620ff7

# 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 += manpage.patch
SOURCE_PATCHES += 19154747.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= man/xcb-examples.man man/xcb-requests.man
MODULE_STABILITY=Volatile
MODULE_MTLEVEL=Safe
MODULE_MTLEVEL_SET=yes
LIB_MAN_SUFFIX=3xcb

MODULE_LD_OPTIONS = $(ZDISCARD_UNUSED_DEP) -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-devel-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
MANDIR = $(PROTODIR)$(MODULE_MAN_DIR)/man3xcb

# Need to apply suntouch changes to man pages generated during build
install_solaris_exts: $(INSTALL_DEPS)
	$(PERL) $(TOP)/open-src/common/suntouch-manpages.pl \
		$(SUNTOUCH_MAN_FLAGS) $(BUILD_DIR)/src/man/*.3xcb
	mkdir -p $(MANDIR)
	ginstall -m 0444 $(SOURCE_DIR)/man/xcb-examples.man \
		$(MANDIR)/xcb-examples.3xcb
	ginstall -m 0444 $(SOURCE_DIR)/man/xcb-requests.man \
		$(MANDIR)/xcb-requests.3xcb
	ginstall -m 0444 $(BUILD_DIR)/src/man/*.3xcb $(MANDIR)/