Makefile revision 1123
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead###############################################################################
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead#
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# xcb 1.7 Makefile
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead#
d52c2baf590c5f2da0c47f8df27e8b641e6ca32bLubos Kosco# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead#
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# Permission is hereby granted, free of charge, to any person obtaining a
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# copy of this software and associated documentation files (the "Software"),
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# to deal in the Software without restriction, including without limitation
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# the rights to use, copy, modify, merge, publish, distribute, sublicense,
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# and/or sell copies of the Software, and to permit persons to whom the
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# Software is furnished to do so, subject to the following conditions:
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead#
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# The above copyright notice and this permission notice (including the next
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# paragraph) shall be included in all copies or substantial portions of the
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# Software.
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead#
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# DEALINGS IN THE SOFTWARE.
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead#
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# Package name used in tarballs
3155e2f2ec2ffa6e5e98f61f2deb990078ac9881Chris EldredgeMODULE_NAME=libxcb
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# Version number (used in path names)
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadMODULE_VERSION=1.7
3155e2f2ec2ffa6e5e98f61f2deb990078ac9881Chris Eldredge
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# Checksums for upstream tarball
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadTARBALL_MD5 = 925699df361b99491165ebc12068056b
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadTARBALL_SHA1 = 7540f0587907bce421914f0ddb813810cb2f36f8
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# ARC cases that covered this module
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadMODULE_ARC_CASES = PSARC/2010/109
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# Package metadata
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadUPSTREAM_PROJECT = xcb
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadUPSTREAM_PROJECT_SET = yes
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# Patches to apply to source after unpacking, in order
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadSOURCE_PATCHES = \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead tsol-sockets.patch,-p1 \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead unix-sockets.patch,-p1 \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead Makefile.am.0.patch \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead configure.1.patch \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead aclocal.m4.2.patch \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead xcb_conn.c.3.patch \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead Makefile.am.4.patch
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# Library name (used for specfiles/mapfiles)
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadLIBNAME=xcb
3155e2f2ec2ffa6e5e98f61f2deb990078ac9881Chris Eldredge
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# Man pages to apply Sun footer to & attributes to list
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadSUNTOUCHED_MANPAGES=
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadMODULE_STABILITY=Uncommitted
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadLIB_MAN_SUFFIX=
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadMODULE_LD_OPTIONS = -z ignore -lc
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadLD_LIBRARY_PATH=$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR)
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# We need Python
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadPYTHON_VERSION=2.6
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadPYTHON=/usr/bin/python$(PYTHON_VERSION)
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadPYTHON_PATH=$(PROTODIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages:$(PROTODIR)/usr/lib/python$(PYTHON_VERSION)/site-packages:/usr/lib/python$(PYTHON_VERSION)/site-packages:/usr/lib/python$(PYTHON_VERSION)/vendor-packages
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadPYTHONPATH=$(PYTHON_PATH)
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# We want GNU cp
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadGNUCP=/usr/gnu/bin/cp
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead# Command line options to GNU autoconf configure script
900f57f08857f08b0f9d0edcace811aed617ad7bScott HalsteadMODULE_CONFIG_OPTS = $(MODTYPE_CONFIG_OPTS) \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --disable-libtool-lock \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-build-docs=no \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-composite \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-damage \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-dpms \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-dri2 \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-glx \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-randr \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-record \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-render \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-resource \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-screensaver \
1c377666fe7591e06614ee1340bb31d831b60c59Knut Anders Hatlen --enable-shape \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-shm \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-sync \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-xevie \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-xfixes \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --enable-xfree86-dri \
900f57f08857f08b0f9d0edcace811aed617ad7bScott Halstead --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
MODULE_CPPFLAGS = -I$(PROTODIR)/usr/include/X11 \
-I$(PROTODIR)/usr/include
# pkg-config files that need to have -R added
FIX_PC_FILES=*.pc.in
include ../Makefile.inc
# Regenerate Makefile.in's from Makefile.am's after patching them
AUTORECONF=yes
AUTORECONF_FLAGS = -vif
# We need PYTHON and PYTHONPATH in our environment
MODULE_BUILD_ENV = PYTHON="$(PYTHON)" \
PYTHONPATH="$(PYTHON_PATH)" \
PROTODIR="$(PROTODIR)" \
CC="$(CC)" \
CFLAGS="$(CFLAGS)" \
CPPFLAGS="$(CPPFLAGS)" \
LDFLAGS="$(LDFLAGS)" \
LD_OPTIONS="$(MODULE_LD_OPTIONS)" \
LD="$(CC) $(CFLAGS) $(LDFLAGS)" \
LD_LIBRARY_PATH="$(LD_LIBRARY_PATH)" \
LD_OPTIONS="$(MODULE_LD_OPTIONS)"