Makefile revision 1422
18N/A###############################################################################
18N/A#
18N/A# Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved.
18N/A#
18N/A# Permission is hereby granted, free of charge, to any person obtaining a
18N/A# copy of this software and associated documentation files (the "Software"),
18N/A# to deal in the Software without restriction, including without limitation
18N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
18N/A# and/or sell copies of the Software, and to permit persons to whom the
18N/A# Software is furnished to do so, subject to the following conditions:
18N/A#
18N/A# The above copyright notice and this permission notice (including the next
18N/A# paragraph) shall be included in all copies or substantial portions of the
18N/A# Software.
18N/A#
18N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
58N/A# DEALINGS IN THE SOFTWARE.
18N/A#
18N/A
18N/A# Package name used in tarballs
18N/AMODULE_NAME=mesa-demos
18N/A
18N/A# Package metadata
18N/AUPSTREAM = The Mesa 3-D Graphics Library
18N/AUPSTREAM_URL = http://mesa3d.org/
18N/AUPSTREAM_SET = yes
18N/AMODULE_DESC = the Mesa 3-D Graphics demo applications
42N/AORACLE_TPNO = 9926
42N/A
135N/A# pkg(5) name we deliver the files in (override default)
18N/AMODULE_PKGNAME=x11/demo/mesa-demos
136N/AMODULE_PKGNAME_SET=yes
136N/A
136N/A# Version number (used in path names)
136N/AMODULE_VERSION=8.1.0
136N/A
136N/A# Checksums for upstream tarball
136N/ATARBALL_MD5 = 9df33ba69a26bbfbc7c8148602e59542
136N/ATARBALL_SHA1 = c970ebd5aaae561b5fb499985bef004e11b72501
136N/A
135N/A# Download site for source
58N/ASOURCE_URL=ftp://ftp.freedesktop.org/pub/mesa/demos/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
18N/ASOURCE_URL_SET=yes
18N/A
18N/A# Binaries built in tree
18N/ADEMOS_DIR=$(BUILD_DIR)/src/xdemos
18N/AGLXGEARS_BIN=$(DEMOS_DIR)/glxgears
18N/AGLXINFO_BIN=$(DEMOS_DIR)/glxinfo
137N/A
137N/A# Override some configure checks for libraries we don't need in the subset
137N/A# we build & ship - have to set them to be non-empty strings though or
137N/A# configure will fail.
137N/AMODULE_CONFIG_ENV = \
137N/A GLEW_CFLAGS="-I-have-no-GLEW-" GLEW_LIBS="-I-have-no-GLEW-"
18N/A
18N/A# What to build
18N/ABUILD_TARGETS= $(GLXGEARS_BIN) $(GLXINFO_BIN) $(MODTYPE_ADD_BUILD_TARGETS)
18N/ABUILD_TARGETS_SET=yes
58N/ABUILD_TYPES_SET=yes
18N/ABUILD_TYPES=32 64
135N/A
135N/A# What to install
135N/AINSTALL_TARGETS= install_demos install_man
136N/AINSTALL_TARGETS_SET=yes
136N/A
135N/A# Compatibility links from /usr/X11/bin to /usr/bin
135N/AMODULE_X11_BINCOMPAT_LINKS = glxinfo
135N/A
135N/A### Include common rulesets
135N/Ainclude ../Makefile.inc
135N/A
135N/A### Rules specific to this directory:
135N/A
135N/A# Only care about building X demos
135N/ADEMO_LDFLAGS=$(PROG_LDFLAGS) -L$(PROTODIR)$(X11_LIB_DIR)$(ARCHLIBSUBDIR) \
135N/A -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR) -z ignore
135N/A
135N/A# Flags passed on make command line when building
135N/AMODULE_BUILD_MAKEFLAGS = LDFLAGS="$(DEMO_LDFLAGS)"
137N/A
135N/A# Build Mesa demos
135N/A$(GLXGEARS_BIN): $(UNPACK_TARGET) $(CONFIGURE_TARGETS)
135N/A (cd $(DEMOS_DIR) && \
135N/A $(MODULE_MAKE) $(MAKEFLAGS) $(DEFAULT_BUILD_MAKEFLAGS) glxgears )
136N/A
136N/A$(GLXINFO_BIN): $(UNPACK_TARGET) $(CONFIGURE_TARGETS)
135N/A (cd $(DEMOS_DIR) && \
135N/A $(MODULE_MAKE) $(MAKEFLAGS) $(DEFAULT_BUILD_MAKEFLAGS) glxinfo )
135N/A
135N/A# For testing - we don't ship the rest of these
42N/Aall-xdemos_gen: $(UNPACK_TARGET) $(CONFIGURE_TARGETS)
18N/A (cd $(DEMOS_DIR) && \
18N/A $(MODULE_MAKE) $(MAKEFLAGS) $(DEFAULT_BUILD_MAKEFLAGS))
42N/A
42N/Aall-xdemos:
136N/A $(MAKE) $(MAKEFLAGS) $(BUILD_64_FLAGS) all-xdemos_gen
136N/A
18N/ADESTDIR=$(PROTODIR)
18N/A
212N/Ainstall_demos: $(INSTALL_DEPS)
212N/A mkdir -p $(DESTDIR)$(MODULE_PREFIX)/bin
212N/A cp -pf $(GLXGEARS_BIN) $(GLXINFO_BIN) $(DESTDIR)$(MODULE_PREFIX)/bin$(ARCHLIBSUBDIR)
212N/A
212N/Ainstall_man:
18N/A mkdir -p $(DESTDIR)$(MODULE_PREFIX)/share/man/man1
42N/A cp -pf glxgears.1 glxinfo.1 $(DESTDIR)$(MODULE_PREFIX)/share/man/man1
18N/A
42N/A
18N/A