Makefile revision 1552
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews###############################################################################
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
71cef386fae61275b03e203825680b39fedaa8c6Tinderbox User# FreeGLUT 2.8.1 Makefile
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
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:
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
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# Software.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
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#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Package name used in tarballs
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_NAME=freeglut
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Version number (used in path names)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_VERSION=2.8.1
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Checksums for upstream tarball
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTARBALL_MD5 = 918ffbddcffbac83c218bc52355b6d5a
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTARBALL_SHA1 = 7330b622481e2226c0c9f6d2e72febe96b03f9c4
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTARBALL_SHA256 = dde46626a62a1cd9cf48a11951cdd592e7067c345cffe193a149dfd47aef999a
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# ARC cases that covered this module
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntMODULE_ARC_CASES = LSARC/2010/016
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# PSARC/2015/247 FreeGLUT 2.8.1
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_ARC_CASES += PSARC/2015/247
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# Package metadata
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinUPSTREAM = The FreeGLUT Project
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntUPSTREAM_URL = http://freeglut.sourceforge.net/
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinUPSTREAM_SET = yes
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinORACLE_TPNO = 22885
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Download site for source
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSOURCE_URL = $(SF_DOWNLOADS_URL)/freeglut/freeglut/$(MODULE_VERSION)/$(SOURCE_TARBALL_NAME)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSOURCE_URL_SET = yes
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Patches to apply to source after unpacking, in order
9c6a5d1f22f972232d7a9fd5c5fa64f10bacbdffAutomatic UpdaterSOURCE_PATCHES =
aa1905addf2f33d90aa020080e4e77a8651e829aTinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Source tarball
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntSOURCE_TARBALL_NAME = freeglut-$(MODULE_VERSION).tar.gz
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntSOURCE_TARBALL_NAME_SET=yes
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Library name (used for specfiles/mapfiles)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLIBNAME=glut
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Man pages to apply Sun footer to & attributes to list
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinSUNTOUCHED_MANPAGES=
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinMODULE_STABILITY=Uncommitted
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLIB_MAN_SUFFIX=
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# We must build with GNU make
aa1905addf2f33d90aa020080e4e77a8651e829aTinderbox UserMODULE_MAKE=$(GNUMAKE)
aa1905addf2f33d90aa020080e4e77a8651e829aTinderbox UserMODULE_MAKE_SET=yes
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
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
aa1905addf2f33d90aa020080e4e77a8651e829aTinderbox User# FreeGLUT really wants to know that we are POSIX friendly
aa1905addf2f33d90aa020080e4e77a8651e829aTinderbox UserMODULE_CPPFLAGS = -D__posix__ -D__unix__
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
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)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
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
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_LD_OPTIONS = $(ZDISCARD_UNUSED_DEP)
77dccf2a5d9327d16b4374a135cdb99bdd48620eAutomatic Updater
77dccf2a5d9327d16b4374a135cdb99bdd48620eAutomatic Updater# Additional targets to install
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsMODULE_ADD_INSTALL_TARGETS = install_doc
47012ae6dbf18a2503d7b33c1c9583dc38625cb7Mark Andrews
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updaterinclude ../Makefile.inc
ac93437301f55ed69bf85883a497a75598c628f9Automatic Updater
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# FreeGLUT's $(VERSION_INFO) breaks delibtoolize.pl
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceDELIBTOOLIZE=no
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luceinstall: install_extra_symlinks
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luceinstall_extra_symlinks:
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce ( cd $(PROTODIR)/usr/lib/GL ; \
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce ln -sf ../libglut.so.3.9.0 libglut.so.3 ; \
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce ln -sf ../libglut.so.3.9.0 libglut.so ; \
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce cd - )
47012ae6dbf18a2503d7b33c1c9583dc38625cb7Mark Andrews ( cd $(PROTODIR)/usr/lib/GL/$(SUBDIR64) ; \
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 Luce cd - )
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric Luce
f293a69bcd1c1dd7bdac8f4102fc2398b9e475c8Eric LuceFREEGLUT_DOC=$(PROTODIR)$(MODULE_DOC_DIR)/freeglut_user_interface.html
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininstall_doc: $(FREEGLUT_DOC)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(FREEGLUT_DOC): $(INSTALL_DEPS)
aa1905addf2f33d90aa020080e4e77a8651e829aTinderbox User $(INSTALL_SCRIPT) -c -m 0444 \
aa1905addf2f33d90aa020080e4e77a8651e829aTinderbox User $(SOURCE_DIR)/doc/freeglut_user_interface.html $@
aa1905addf2f33d90aa020080e4e77a8651e829aTinderbox User
aa1905addf2f33d90aa020080e4e77a8651e829aTinderbox User