Makefile revision 1029
542N/A###############################################################################
542N/A#
810N/A# FreeGLUT 2.6.0 Makefile
810N/A#
542N/A# Copyright 2010, Oracle and/or its affiliates. All rights reserved.
542N/A#
542N/A# Permission is hereby granted, free of charge, to any person obtaining a
542N/A# copy of this software and associated documentation files (the
542N/A# "Software"), to deal in the Software without restriction, including
542N/A# without limitation the rights to use, copy, modify, merge, publish,
542N/A# distribute, and/or sell copies of the Software, and to permit persons
542N/A# to whom the Software is furnished to do so, provided that the above
542N/A# copyright notice(s) and this permission notice appear in all copies of
542N/A# the Software and that both the above copyright notice(s) and this
542N/A# permission notice appear in supporting documentation.
542N/A#
542N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
542N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
542N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
542N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
542N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
542N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
542N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
542N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
542N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
542N/A#
542N/A# Except as contained in this notice, the name of a copyright holder
542N/A# shall not be used in advertising or otherwise to promote the sale, use
542N/A# or other dealings in this Software without prior written authorization
542N/A# of the copyright holder.
542N/A#
542N/A
542N/A# Package name used in tarballs
542N/AMODULE_NAME=freeglut
542N/A
542N/A# Version number (used in path names)
542N/AMODULE_VERSION=2.6.0
542N/A
542N/A# Checksums for upstream tarball
810N/ATARBALL_MD5 = 39f0f2de89f399529d2b981188082218
542N/ATARBALL_SHA1 = 68306c4486c13d005a4e4d54035e0c0b1bdc220b
810N/A
810N/A# ARC cases that covered this module
810N/AMODULE_ARC_CASES = LSARC/2010/016
542N/A
851N/A# Package metadata
542N/AUPSTREAM = The FreeGLUT Project
542N/AUPSTREAM_URL = http://freeglut.sourceforge.net/
542N/AUPSTREAM_SET = yes
542N/A
542N/A# Download site for source
542N/ASOURCE_URL = http://sourceforge.net/projects/freeglut/files/freeglut/$(SOURCE_TARBALL_NAME)
542N/ASOURCE_URL_SET = yes
542N/A
542N/A# Patches to apply to source after unpacking, in order
542N/ASOURCE_PATCHES = Makefile.in.0.patch
542N/A
542N/A# Source tarball
851N/ASOURCE_TARBALL_NAME = freeglut-$(MODULE_VERSION).tar.gz
851N/ASOURCE_TARBALL_NAME_SET=yes
851N/ASOURCE_UNCOMPRESS=gzcat
542N/A
851N/A# Library name (used for specfiles/mapfiles)
542N/ALIBNAME=glut
851N/A
542N/A# Man pages to apply Sun footer to & attributes to list
SUNTOUCHED_MANPAGES=
MODULE_STABILITY=Uncommitted
LIB_MAN_SUFFIX=
MODULE_LD_OPTIONS = -L$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR)
MODULE_LD_OPTIONS += -lGL -lGLU
MODULE_LD_OPTIONS += -z combreloc -z redlocsym -z ignore
# We want GNU cp
GNUCP=/usr/gnu/bin/cp
# And GNU sed
GSED=/usr/gnu/bin/sed
# We must build with GNU make
MODULE_MAKE=$(GNUMAKE)
MODULE_MAKE_SET=yes
# Command line options to GNU autoconf configure script
MODULE_CONFIG_OPTS = $(MODTYPE_CONFIG_OPTS) \
--enable-shared \
--disable-static \
--disable-libtool-lock \
--x-includes=/usr/include \
--x-libraries=/usr/lib$(ARCHLIBSUBDIR) \
--with-x \
--with-pic
# -xF is needed for mapfile reordering to work
MODULE_CFLAGS = -xF -D__posix__ -D__unix__
# FreeGLUT really wants to know that we are POSIX friendly
MODULE_CPPFLAGS = -D__posix__ -D__unix__
MODULE_CPPFLAGS += -I$(PROTODIR)/usr/X11/include \
-I$(PROTODIR)/usr/X11/include/X11
# Add -lGL and -lGLU to LDFLAGS
MODULE_LDFLAGS = -L$(PROTODIR)/usr/lib$(ARCHLIBSUBDIR)
MODULE_LDFLAGS += -lGL -lGLU
MODULE_LDFLAGS += -z combreloc -z redlocsym -z ignore
# We must use GNU make
MODULE_ENV = \
SHELL="/bin/bash" \
MAKESHELL="/bin/bash" \
CONFIG_SHELL="/bin/bash" \
PROTODIR="$(PROTODIR)" \
CC="$(CC)" \
CPPFLAGS="$(MODULE_CPPFLAGS) $(CPPFLAGS)" \
CFLAGS="$(MODULE_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)" \
LDFLAGS="$(LDFLAGS) $(MODULE_LDFLAGS)" \
LD="$(CC) $(CFLAGS) $(LDFLAGS) $(MODULE_LDFLAGS)" \
CPP="$(CC) -E $(MODULE_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)" \
CXXCPP="$(CXX) -E $(CXXFLAGS)" \
MAKEFLAGS= \
MAKE="$(GNUMAKE)" \
CPPROG="$(GNUCP)"
MODULE_CONFIG_ENV = $(MODULE_ENV)
MODULE_BUILD_ENV = $(MODULE_ENV)
include ../Makefile.inc
# Freeglut needs libtool
DELIBTOOLIZE=no
# But we don't want autoreconf
AUTORECONF=no