Makefile revision 1196
460N/A###############################################################################
460N/A#
460N/A# FreeGLUT 2.6.0 Makefile
460N/A#
460N/A# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
460N/A#
460N/A# Permission is hereby granted, free of charge, to any person obtaining a
460N/A# copy of this software and associated documentation files (the "Software"),
460N/A# to deal in the Software without restriction, including without limitation
460N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
460N/A# and/or sell copies of the Software, and to permit persons to whom the
460N/A# Software is furnished to do so, subject to the following conditions:
460N/A#
460N/A# The above copyright notice and this permission notice (including the next
460N/A# paragraph) shall be included in all copies or substantial portions of the
460N/A# Software.
460N/A#
460N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
460N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
460N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
460N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
460N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
5649N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
460N/A# DEALINGS IN THE SOFTWARE.
5680N/A#
460N/A
460N/A# Package name used in tarballs
5649N/AMODULE_NAME=freeglut
783N/A
1244N/A# Version number (used in path names)
1472N/AMODULE_VERSION=2.6.0
618N/A
1244N/A# Checksums for upstream tarball
844N/ATARBALL_MD5 = 39f0f2de89f399529d2b981188082218
1472N/ATARBALL_SHA1 = 68306c4486c13d005a4e4d54035e0c0b1bdc220b
460N/A
1258N/A# ARC cases that covered this module
460N/AMODULE_ARC_CASES = LSARC/2010/016
5680N/A
460N/A# Package metadata
460N/AUPSTREAM = The FreeGLUT Project
460N/AUPSTREAM_URL = http://freeglut.sourceforge.net/
1472N/AUPSTREAM_SET = yes
1472N/A
1472N/A# Download site for source
1472N/ASOURCE_URL = $(SF_DOWNLOADS_URL)/freeglut/freeglut/$(SOURCE_TARBALL_NAME)
1472N/ASOURCE_URL_SET = yes
1472N/A
1472N/A# Patches to apply to source after unpacking, in order
1472N/ASOURCE_PATCHES =
460N/A
460N/A# Source tarball
460N/ASOURCE_TARBALL_NAME = freeglut-$(MODULE_VERSION).tar.gz
460N/ASOURCE_TARBALL_NAME_SET=yes
460N/ASOURCE_UNCOMPRESS=gzcat
1472N/A
1472N/A# Library name (used for specfiles/mapfiles)
1472N/ALIBNAME=glut
1472N/A
1472N/A# Man pages to apply Sun footer to & attributes to list
460N/ASUNTOUCHED_MANPAGES=
460N/AMODULE_STABILITY=Uncommitted
460N/ALIB_MAN_SUFFIX=
460N/A
5680N/A# We must build with GNU make
460N/AMODULE_MAKE=$(GNUMAKE)
460N/AMODULE_MAKE_SET=yes
460N/A
460N/A# Command line options to GNU autoconf configure script
460N/AMODULE_CONFIG_OPTS = --x-includes=/usr/include
5649N/AMODULE_CONFIG_OPTS += --x-libraries=/usr/lib$(ARCHLIBSUBDIR)
5649N/A
5680N/A# FreeGLUT really wants to know that we are POSIX friendly
5680N/AMODULE_CPPFLAGS = -D__posix__ -D__unix__
460N/A
460N/A# ignore some unneeded dependencies that upstream includes:
460N/A# unreferenced object=libXext.so.0; unused dependency of libglut.so.3.9.0
460N/A# unreferenced object=libXxf86vm.so.1; unused dependency of libglut.so.3.9.0
460N/A# unreferenced object=libXi.so.5; unused dependency of libglut.so.3.9.0
460N/AMODULE_LD_OPTIONS = -z ignore
5680N/A
460N/A# Additional targets to install
460N/AMODULE_ADD_INSTALL_TARGETS = install_doc
460N/A
460N/Ainclude ../Makefile.inc
460N/A
3701N/A# FreeGLUT's $(VERSION_INFO) breaks delibtoolize.pl
3701N/ADELIBTOOLIZE=no
460N/A
460N/Ainstall: install_extra_symlinks
1522N/A
1522N/Ainstall_extra_symlinks:
1522N/A ( cd $(PROTODIR)/usr/lib/GL ; \
5680N/A ln -sf ../libglut.so.3.9.0 libglut.so.3 ; \
5680N/A ln -sf ../libglut.so.3.9.0 libglut.so ; \
4337N/A cd - )
1472N/A ( cd $(PROTODIR)/usr/lib/GL/$(SUBDIR64) ; \
460N/A ln -sf ../../$(SUBDIR64)/libglut.so.3.9.0 libglut.so.3 ; \
460N/A ln -sf ../../$(SUBDIR64)/libglut.so.3.9.0 libglut.so ; \
460N/A cd - )
3817N/A
3817N/AFREEGLUT_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 $@