Makefile revision 1042
280a8a0544b4aeb52414d20e8c6e6c5b1108562eTinderbox User###############################################################################
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# FreeGLUT 2.6.0 Makefile
19558a04decde0e7261d489d92d04ad88104217bTinderbox User# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
969eaf7df8ac651946f76b6631ff5db568c11ef6Tinderbox User# copy of this software and associated documentation files (the "Software"),
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# to deal in the Software without restriction, including without limitation
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# the rights to use, copy, modify, merge, publish, distribute, sublicense,
f4ee48be3994797a8332b86c101db4d7b54799ceTinderbox User# and/or sell copies of the Software, and to permit persons to whom the
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User# Software is furnished to do so, subject to the following conditions:
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# The above copyright notice and this permission notice (including the next
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# paragraph) shall be included in all copies or substantial portions of the
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark Andrews# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# DEALINGS IN THE SOFTWARE.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Package name used in tarballs
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# Version number (used in path names)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Checksums for upstream tarball
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserTARBALL_MD5 = 39f0f2de89f399529d2b981188082218
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsTARBALL_SHA1 = 68306c4486c13d005a4e4d54035e0c0b1bdc220b
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt# ARC cases that covered this module
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Package metadata
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User# Download site for source
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsSOURCE_URL = $(SF_DOWNLOADS_URL)/freeglut/freeglut/$(SOURCE_TARBALL_NAME)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Patches to apply to source after unpacking, in order
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Source tarball
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsSOURCE_TARBALL_NAME = freeglut-$(MODULE_VERSION).tar.gz
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Library name (used for specfiles/mapfiles)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Man pages to apply Sun footer to & attributes to list
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan HuntMODULE_LD_OPTIONS = -L$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsMODULE_LD_OPTIONS += -z combreloc -z redlocsym -z ignore
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# We want GNU cp
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# And GNU sed
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# We must build with GNU make
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Command line options to GNU autoconf configure script
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews# -xF is needed for mapfile reordering to work
7cc0a5d21ef046bfd630c4769943d896a7d7472cTinderbox User# FreeGLUT really wants to know that we are POSIX friendly
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_CPPFLAGS += -I$(PROTODIR)/usr/X11/include \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Add -lGL and -lGLU to LDFLAGS
549c517e2ecad52bb1d32f08920e29d4e8cda71eTinderbox UserMODULE_LDFLAGS = -L$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR)
8f4e6ea383aa9a953c0adb5be6c4d8dc8dbd5c4aWitold KrecickiMODULE_LDFLAGS += -z combreloc -z redlocsym -z ignore
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# We must use GNU make
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson CPPFLAGS="$(MODULE_CPPFLAGS) $(CPPFLAGS)" \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User CFLAGS="$(MODULE_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)" \
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt LD="$(CC) $(CFLAGS) $(LDFLAGS) $(MODULE_LDFLAGS)" \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews CPP="$(CC) -E $(MODULE_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)" \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Freeglut needs libtool
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User# But we don't want autoreconf
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews ln -sf ../libglut.so.3.9.0 libglut.so.3 ; \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews ln -sf ../../$(SUBDIR64)/libglut.so.3.9.0 libglut.so.3 ; \
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews ln -sf ../../$(SUBDIR64)/libglut.so.3.9.0 libglut.so ; \