Makefile revision 1176
1123N/A###############################################################################
1123N/A#
1123N/A# FreeGLUT 2.6.0 Makefile
1123N/A#
1123N/A# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
1123N/A#
1123N/A# Permission is hereby granted, free of charge, to any person obtaining a
1123N/A# copy of this software and associated documentation files (the "Software"),
1123N/A# to deal in the Software without restriction, including without limitation
1123N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1123N/A# and/or sell copies of the Software, and to permit persons to whom the
1123N/A# Software is furnished to do so, subject to the following conditions:
1123N/A#
1123N/A# The above copyright notice and this permission notice (including the next
1123N/A# paragraph) shall be included in all copies or substantial portions of the
1123N/A# Software.
1123N/A#
1123N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1123N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1123N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1123N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1123N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1123N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1123N/A# DEALINGS IN THE SOFTWARE.
1123N/A#
1123N/A
1123N/A# Package name used in tarballs
1123N/AMODULE_NAME=freeglut
1123N/A
1123N/A# Version number (used in path names)
1123N/AMODULE_VERSION=2.6.0
1123N/A
1123N/A# Checksums for upstream tarball
1123N/ATARBALL_MD5 = 39f0f2de89f399529d2b981188082218
1123N/ATARBALL_SHA1 = 68306c4486c13d005a4e4d54035e0c0b1bdc220b
1123N/A
1123N/A# ARC cases that covered this module
1123N/AMODULE_ARC_CASES = LSARC/2010/016
1123N/A
1123N/A# Package metadata
1123N/AUPSTREAM = The FreeGLUT Project
1123N/AUPSTREAM_URL = http://freeglut.sourceforge.net/
1123N/AUPSTREAM_SET = yes
1123N/A
1123N/A# Download site for source
1123N/ASOURCE_URL = $(SF_DOWNLOADS_URL)/freeglut/freeglut/$(SOURCE_TARBALL_NAME)
1123N/ASOURCE_URL_SET = yes
1123N/A
1123N/A# Patches to apply to source after unpacking, in order
1123N/ASOURCE_PATCHES = Makefile.in.0.patch
1123N/A
1123N/A# Source tarball
1123N/ASOURCE_TARBALL_NAME = freeglut-$(MODULE_VERSION).tar.gz
1123N/ASOURCE_TARBALL_NAME_SET=yes
1123N/ASOURCE_UNCOMPRESS=gzcat
1123N/A
1123N/A# Library name (used for specfiles/mapfiles)
1123N/ALIBNAME=glut
1123N/A
1123N/A# Man pages to apply Sun footer to & attributes to list
1123N/ASUNTOUCHED_MANPAGES=
1123N/AMODULE_STABILITY=Uncommitted
LIB_MAN_SUFFIX=
# We must build with GNU make
MODULE_MAKE=$(GNUMAKE)
MODULE_MAKE_SET=yes
# FreeGLUT really wants to know that we are POSIX friendly
MODULE_CPPFLAGS = -D__posix__ -D__unix__
include ../Makefile.inc
# FreeGLUT's $(VERSION_INFO) breaks delibtoolize.pl
DELIBTOOLIZE=no
install: install_extra_symlinks
install_extra_symlinks:
( cd $(PROTODIR)/usr/lib/GL ; \
ln -sf ../libglut.so.3.9.0 libglut.so.3 ; \
ln -sf ../libglut.so.3.9.0 libglut.so ; \
cd - )
( cd $(PROTODIR)/usr/lib/GL/$(SUBDIR64) ; \
ln -sf ../../$(SUBDIR64)/libglut.so.3.9.0 libglut.so.3 ; \
ln -sf ../../$(SUBDIR64)/libglut.so.3.9.0 libglut.so ; \
cd - )