Makefile revision 1552
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews###############################################################################
71cef386fae61275b03e203825680b39fedaa8c6Tinderbox User# FreeGLUT 2.8.1 Makefile
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Permission is hereby granted, free of charge, to any person obtaining a
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# copy of this software and associated documentation files (the "Software"),
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# to deal in the Software without restriction, including without limitation
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# the rights to use, copy, modify, merge, publish, distribute, sublicense,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and/or sell copies of the Software, and to permit persons to whom the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Software is furnished to do so, subject to the following conditions:
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# The above copyright notice and this permission notice (including the next
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# paragraph) shall be included in all copies or substantial portions of the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
71c66a876ecca77923638d3f94cc0783152b2f03Mark Andrews# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# DEALINGS IN THE SOFTWARE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Package name used in tarballs
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Version number (used in path names)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Checksums for upstream tarball
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTARBALL_MD5 = 918ffbddcffbac83c218bc52355b6d5a
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTARBALL_SHA1 = 7330b622481e2226c0c9f6d2e72febe96b03f9c4
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARBALL_SHA256 = dde46626a62a1cd9cf48a11951cdd592e7067c345cffe193a149dfd47aef999a
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# ARC cases that covered this module
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# PSARC/2015/247 FreeGLUT 2.8.1
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# Package metadata
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Download site for source
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSOURCE_URL = $(SF_DOWNLOADS_URL)/freeglut/freeglut/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Patches to apply to source after unpacking, in order
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Source tarball
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntSOURCE_TARBALL_NAME = freeglut-$(MODULE_VERSION).tar.gz
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Library name (used for specfiles/mapfiles)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Man pages to apply Sun footer to & attributes to list
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# We must build with GNU make
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Command line options to GNU autoconf configure script
aa1905addf2f33d90aa020080e4e77a8651e829aTinderbox UserMODULE_CONFIG_OPTS = --x-includes=/usr/include
aa1905addf2f33d90aa020080e4e77a8651e829aTinderbox UserMODULE_CONFIG_OPTS += --x-libraries=/usr/lib$(ARCHLIBSUBDIR)
aa1905addf2f33d90aa020080e4e77a8651e829aTinderbox User# FreeGLUT really wants to know that we are POSIX friendly
aa1905addf2f33d90aa020080e4e77a8651e829aTinderbox User# Need to find libdrm in protodir at build time, since libGL links to it
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_LDFLAGS= -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ignore some unneeded dependencies that upstream includes:
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater# unreferenced object=libXext.so.0; unused dependency of libglut.so.3.9.0
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater# unreferenced object=libXxf86vm.so.1; unused dependency of libglut.so.3.9.0
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater# unreferenced object=libXi.so.5; unused dependency of libglut.so.3.9.0
77dccf2a5d9327d16b4374a135cdb99bdd48620eAutomatic Updater# Additional targets to install
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# FreeGLUT's $(VERSION_INFO) breaks delibtoolize.pl
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce ln -sf ../libglut.so.3.9.0 libglut.so.3 ; \
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce ln -sf ../../$(SUBDIR64)/libglut.so.3.9.0 libglut.so.3 ; \
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce ln -sf ../../$(SUBDIR64)/libglut.so.3.9.0 libglut.so ; \
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceFREEGLUT_DOC=$(PROTODIR)$(MODULE_DOC_DIR)/freeglut_user_interface.html