Makefile revision 1196
32N/A###############################################################################
32N/A#
911N/A# FreeGLUT 2.6.0 Makefile
851N/A#
32N/A# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
32N/A#
32N/A# Permission is hereby granted, free of charge, to any person obtaining a
32N/A# copy of this software and associated documentation files (the "Software"),
32N/A# to deal in the Software without restriction, including without limitation
32N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
32N/A# and/or sell copies of the Software, and to permit persons to whom the
32N/A# Software is furnished to do so, subject to the following conditions:
32N/A#
32N/A# The above copyright notice and this permission notice (including the next
32N/A# paragraph) shall be included in all copies or substantial portions of the
32N/A# Software.
32N/A#
32N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
32N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
32N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
32N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
32N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
32N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
32N/A# DEALINGS IN THE SOFTWARE.
32N/A#
32N/A
32N/A# Package name used in tarballs
32N/AMODULE_NAME=freeglut
32N/A
32N/A# Version number (used in path names)
32N/AMODULE_VERSION=2.6.0
32N/A
32N/A# Checksums for upstream tarball
493N/ATARBALL_MD5 = 39f0f2de89f399529d2b981188082218
32N/ATARBALL_SHA1 = 68306c4486c13d005a4e4d54035e0c0b1bdc220b
32N/A
851N/A# ARC cases that covered this module
32N/AMODULE_ARC_CASES = LSARC/2010/016
911N/A
911N/A# Package metadata
911N/AUPSTREAM = The FreeGLUT Project
911N/AUPSTREAM_URL = http://freeglut.sourceforge.net/
32N/AUPSTREAM_SET = yes
32N/A
32N/A# Download site for source
32N/ASOURCE_URL = $(SF_DOWNLOADS_URL)/freeglut/freeglut/$(SOURCE_TARBALL_NAME)
32N/ASOURCE_URL_SET = yes
# Patches to apply to source after unpacking, in order
SOURCE_PATCHES =
# Source tarball
SOURCE_TARBALL_NAME = freeglut-$(MODULE_VERSION).tar.gz
SOURCE_TARBALL_NAME_SET=yes
SOURCE_UNCOMPRESS=gzcat
# Library name (used for specfiles/mapfiles)
LIBNAME=glut
# Man pages to apply Sun footer to & attributes to list
SUNTOUCHED_MANPAGES=
MODULE_STABILITY=Uncommitted
LIB_MAN_SUFFIX=
# We must build with GNU make
MODULE_MAKE=$(GNUMAKE)
MODULE_MAKE_SET=yes
# Command line options to GNU autoconf configure script
MODULE_CONFIG_OPTS = --x-includes=/usr/include
MODULE_CONFIG_OPTS += --x-libraries=/usr/lib$(ARCHLIBSUBDIR)
# FreeGLUT really wants to know that we are POSIX friendly
MODULE_CPPFLAGS = -D__posix__ -D__unix__
# ignore some unneeded dependencies that upstream includes:
# unreferenced object=libXext.so.0; unused dependency of libglut.so.3.9.0
# unreferenced object=libXxf86vm.so.1; unused dependency of libglut.so.3.9.0
# unreferenced object=libXi.so.5; unused dependency of libglut.so.3.9.0
MODULE_LD_OPTIONS = -z ignore
# Additional targets to install
MODULE_ADD_INSTALL_TARGETS = install_doc
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 - )
FREEGLUT_DOC=$(PROTODIR)$(MODULE_DOC_DIR)/freeglut_user_interface.html
install_doc: $(FREEGLUT_DOC)
$(FREEGLUT_DOC): $(INSTALL_DEPS)
$(INSTALL_SCRIPT) -c -m 0444 \
$(SOURCE_DIR)/doc/freeglut_user_interface.html $@