Makefile revision 1196
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein###############################################################################
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews# FreeGLUT 2.6.0 Makefile
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Permission is hereby granted, free of charge, to any person obtaining a
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# copy of this software and associated documentation files (the "Software"),
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# 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:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# 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
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark 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)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Checksums for upstream tarball
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARBALL_SHA1 = 68306c4486c13d005a4e4d54035e0c0b1bdc220b
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ARC cases that covered this module
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Package metadata
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Download site for source
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSOURCE_URL = $(SF_DOWNLOADS_URL)/freeglut/freeglut/$(SOURCE_TARBALL_NAME)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Patches to apply to source after unpacking, in order
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Source tarball
fdd80e9a55c70b36a3bf3e409b86897301c44ff8Automatic UpdaterSOURCE_TARBALL_NAME = freeglut-$(MODULE_VERSION).tar.gz
82d13321f4dcc79a9aec992c7a1c4aaff8983adaAutomatic Updater# 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
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Command line options to GNU autoconf configure script
fdd80e9a55c70b36a3bf3e409b86897301c44ff8Automatic UpdaterMODULE_CONFIG_OPTS += --x-libraries=/usr/lib$(ARCHLIBSUBDIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# FreeGLUT really wants to know that we are POSIX friendly
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ignore some unneeded dependencies that upstream includes:
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# unreferenced object=libXext.so.0; unused dependency of libglut.so.3.9.0
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# unreferenced object=libXxf86vm.so.1; unused dependency of libglut.so.3.9.0
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# unreferenced object=libXi.so.5; unused dependency of libglut.so.3.9.0
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Additional targets to install
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater# FreeGLUT's $(VERSION_INFO) breaks delibtoolize.pl
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce ln -sf ../libglut.so.3.9.0 libglut.so.3 ; \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ln -sf ../../$(SUBDIR64)/libglut.so.3.9.0 libglut.so.3 ; \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein ln -sf ../../$(SUBDIR64)/libglut.so.3.9.0 libglut.so ; \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinFREEGLUT_DOC=$(PROTODIR)$(MODULE_DOC_DIR)/freeglut_user_interface.html