1391N/A###############################################################################
1391N/A#
1630N/A# Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
1391N/A#
1391N/A# Permission is hereby granted, free of charge, to any person obtaining a
1391N/A# copy of this software and associated documentation files (the "Software"),
1391N/A# to deal in the Software without restriction, including without limitation
1391N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
1391N/A# and/or sell copies of the Software, and to permit persons to whom the
1391N/A# Software is furnished to do so, subject to the following conditions:
1391N/A#
1391N/A# The above copyright notice and this permission notice (including the next
1391N/A# paragraph) shall be included in all copies or substantial portions of the
1391N/A# Software.
1391N/A#
1391N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1391N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1391N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
1391N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1391N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1391N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
1391N/A# DEALINGS IN THE SOFTWARE.
1391N/A#
1391N/A#
1391N/A
1391N/A# Package name used in tarballs
1391N/AMODULE_NAME=glu
1391N/A
1391N/A# Package metadata
1391N/AUPSTREAM = The Mesa 3-D Graphics Library
1391N/AUPSTREAM_URL = http://mesa3d.org/
1391N/AUPSTREAM_SET = yes
1391N/A
1391N/AMODULE_LICENSE = Mesa License (Mixed: MIT, LGPLv2, others)
1391N/AMODULE_LICENSE_SET = yes
1391N/AMODULE_LICENSE_PREPEND = $(GPL_CHOICE_FILE)
1391N/AMODULE_DESC = the Mesa 3-D Graphics Libraries
1391N/AORACLE_TPNO = 9926
1391N/A
1391N/A# ARC cases that covered this module
1391N/A# LSARC/2005/109 MESA, Open Source OpenGL clone
1391N/AMODULE_ARC_CASES = LSARC/2005/109
1391N/A
1391N/A# Version number (used in path names)
1391N/AMODULE_VERSION=9.0.0
1391N/A
1391N/A# Checksums for upstream tarball
1391N/ATARBALL_MD5 = be9249132ff49275461cf92039083030
1391N/ATARBALL_SHA1 = c2814bbaf1e60e28a75ec80f4646047c0da742bd
1391N/A
1391N/A# Download site for source
1391N/ASOURCE_URL=ftp://ftp.freedesktop.org/pub/mesa/glu/$(SOURCE_TARBALL_NAME)
1391N/ASOURCE_URL_SET=yes
1391N/AGIT_URL=$(FDO_GIT_URL)/mesa/glu
1391N/AGIT_URL_SET=yes
1391N/A
1391N/A# Patches to apply to source after unpacking, in order
1425N/ASOURCE_PATCHES=
1425N/A
1425N/A# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
1425N/ADELIBTOOLIZE_FLAGS_sparc = -P
1425N/ADELIBTOOLIZE_FLAGS_i386 =
1425N/ADELIBTOOLIZE_FLAGS = $(DELIBTOOLIZE_FLAGS_$(MACH))
1391N/A
1418N/A# pkg-config files to update
1418N/AFIX_PC_FILES=glu.pc.in
1418N/A
1479N/A# Need to find libdrm in protodir at build time, since libGL links to it
1479N/AMODULE_LDFLAGS= -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)
1391N/A
1391N/A# Override LDFLAGS passed to configure to not include CFLAGS, since that
1391N/A# breaks building libGLU with Sun Studio C++ compiler
1391N/AMODULE_CONFIG_ENV = LDFLAGS="$(DEFAULT_CONFIG_LDFLAGS) $(ARCH_FLAGS) $(MODTYPE_LDFLAGS) $(MODULE_CFLAGS) $(MODULE_LDFLAGS)"
1391N/A
1391N/A# Add proto area to path to find makedepend
1391N/AMODULE_BUILD_ENV = PATH="$(PROTODIR)/$(X11_BIN_DIR):$(PATH)"
1391N/AMODULE_CONFIG_ENV += $(MODULE_BUILD_ENV)
1391N/A
1391N/A# Need to use GNU Make to build
1391N/AMODULE_MAKE=$(GNUMAKE)
1391N/AMODULE_MAKE_SET=yes
1391N/A
1422N/A# Need to build with gcc
1391N/AMODULE_COMPILER=gcc
1391N/AMODULE_COMPILER_SET=yes
1391N/A
1630N/A# Cos of 23185711 - disable parfait temporarily
1630N/AUSE_PARFAIT=no
1630N/A
1391N/A### Include common rulesets
1391N/Ainclude ../Makefile.inc
1391N/A
1391N/AHEADERS_TO_MOVE = glu.h glu_mangle.h
1391N/AHEADERS_TO_DIRECT_LINK = glu.h
1425N/ALIBRARY_TO_LINK = libGLU.so.1
1391N/A
1391N/A# Run just once after all other install steps are done for both 32/64-bit
1391N/Ainstall: install_ogl_layout
1391N/A
1391N/Ainstall_ogl_layout:
1425N/A mv -f $(PROTODIR)/usr/include/GL/glu.h \
1425N/A $(PROTODIR)/usr/include/GL/glu_mangle.h \
1425N/A $(PROTODIR)/usr/include/mesa/
1391N/A ln -s $(HEADERS_TO_DIRECT_LINK:%=../mesa/%) \
1391N/A $(PROTODIR)/usr/include/GL
1391N/A mkdir -p $(PROTODIR)/usr/lib/GL/$(SUBDIR64) \
1391N/A $(PROTODIR)/usr/lib/mesa/$(SUBDIR64)
1425N/A mv -f $(LIBRARY_TO_LINK:%=$(PROTODIR)/usr/lib/%) \
1391N/A $(PROTODIR)/usr/lib/mesa/
1425N/A mv -f $(LIBRARY_TO_LINK:%=$(PROTODIR)/usr/lib/$(SUBDIR64)/%) \
1391N/A $(PROTODIR)/usr/lib/mesa/$(SUBDIR64)/
1425N/A -rm -f $(PROTODIR)/usr/lib/mesa/libGLU.so
1391N/A ln -s libGLU.so.1 $(PROTODIR)/usr/lib/mesa/libGLU.so
1425N/A -rm -f $(PROTODIR)/usr/lib/mesa/$(SUBDIR64)/libGLU.so
1391N/A ln -s libGLU.so.1 $(PROTODIR)/usr/lib/mesa/$(SUBDIR64)/libGLU.so
1425N/A (cd $(PROTODIR)/usr/lib/GL; rm -f $(LIBRARY_TO_LINK) ; \
1425N/A ln -s $(LIBRARY_TO_LINK:%=../mesa/%) .)
1425N/A -rm -f $(PROTODIR)/usr/lib/GL/libGLU.so
1391N/A ln -s libGLU.so.1 $(PROTODIR)/usr/lib/GL/libGLU.so
1425N/A (cd $(PROTODIR)/usr/lib/GL/$(SUBDIR64); rm -f $(LIBRARY_TO_LINK) ; \
1425N/A ln -s $(LIBRARY_TO_LINK:%=../../mesa/$(SUBDIR64)/%) .)
1425N/A -rm -f $(PROTODIR)/usr/lib/GL/$(SUBDIR64)/libGLU.so
1391N/A ln -s libGLU.so.1 $(PROTODIR)/usr/lib/GL/$(SUBDIR64)/libGLU.so
1425N/A (cd $(PROTODIR)/usr/lib; rm -f $(LIBRARY_TO_LINK) ; \
1425N/A ln -s $(LIBRARY_TO_LINK:%=GL/%) .)
1425N/A -rm -f $(PROTODIR)/usr/lib/libGLU.so
1391N/A ln -s libGLU.so.1 $(PROTODIR)/usr/lib/libGLU.so
1425N/A (cd $(PROTODIR)/usr/lib/$(SUBDIR64); rm -f $(LIBRARY_TO_LINK) ; \
1425N/A ln -s $(LIBRARY_TO_LINK:%=../GL/$(SUBDIR64)/%) .)
1425N/A -rm -f $(PROTODIR)/usr/lib/$(SUBDIR64)/libGLU.so
1391N/A ln -s libGLU.so.1 $(PROTODIR)/usr/lib/$(SUBDIR64)/libGLU.so
1425N/A (cd $(PROTODIR)/usr/X11/lib; rm -f $(LIBRARY_TO_LINK) ; \
1425N/A ln -s $(LIBRARY_TO_LINK:%=GL/%) .)
1425N/A -rm -f $(PROTODIR)/usr/X11/lib/libGLU.so
1391N/A ln -s libGLU.so.1 $(PROTODIR)/usr/X11/lib/libGLU.so
1425N/A (cd $(PROTODIR)/usr/X11/lib/$(SUBDIR64); rm -f $(LIBRARY_TO_LINK) ; \
1425N/A ln -s $(LIBRARY_TO_LINK:%=../GL/$(SUBDIR64)/%) .)
1425N/A -rm -f $(PROTODIR)/usr/X11/lib/$(SUBDIR64)/libGLU.so
1391N/A ln -s libGLU.so.1 $(PROTODIR)/usr/X11/lib/$(SUBDIR64)/libGLU.so