Makefile revision 1447
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews###############################################################################
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater# Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# Permission is hereby granted, free of charge, to any person obtaining a
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# copy of this software and associated documentation files (the "Software"),
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# to deal in the Software without restriction, including without limitation
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# the rights to use, copy, modify, merge, publish, distribute, sublicense,
2ec4ab21838e218863d052ebfa3e106e04f50820Evan Hunt# and/or sell copies of the Software, and to permit persons to whom the
ea854b585041ad19f70f7af15e08144ef2c2bd1bMark Andrews# Software is furnished to do so, subject to the following conditions:
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# The above copyright notice and this permission notice (including the next
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# paragraph) shall be included in all copies or substantial portions of the
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
58be84825d7f5de30e50eb7206b37227ecd8055bAutomatic Updater# DEALINGS IN THE SOFTWARE.
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater# Package name used in tarballs
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Package metadata
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterMODULE_LICENSE = Mesa License (Mixed: MIT, LGPLv2, others)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterMODULE_LICENSE_PREPEND = $(GPL_CHOICE_FILE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE_DESC = the Mesa 3-D Graphics Libraries
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# ARC cases that covered this module
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# LSARC/2005/109 MESA, Open Source OpenGL clone
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Version number (used in path names)
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater# Checksums for upstream tarball
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic UpdaterTARBALL_MD5 = be9249132ff49275461cf92039083030
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntTARBALL_SHA1 = c2814bbaf1e60e28a75ec80f4646047c0da742bd
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Download site for source
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterSOURCE_URL=ftp://ftp.freedesktop.org/pub/mesa/glu/$(SOURCE_TARBALL_NAME)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Patches to apply to source after unpacking, in order
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Use -KPIC instead of -Kpic because we have too many symbols on SPARC
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsDELIBTOOLIZE_FLAGS = $(DELIBTOOLIZE_FLAGS_$(MACH))
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# pkg-config files to update
129090f0f6f91753b4a085ab635e28549fd018adAutomatic Updater# Need to find libdrm in protodir at build time, since libGL links to it
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_LDFLAGS= -L$(PROTODIR)$(X11_SERVERLIBS_DIR)$(ARCHLIBSUBDIR)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Override LDFLAGS passed to configure to not include CFLAGS, since that
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic Updater# breaks building libGLU with Sun Studio C++ compiler
80faf1588895fd26490f82f95a7a1b771df1c324Automatic UpdaterMODULE_CONFIG_ENV = LDFLAGS="$(DEFAULT_CONFIG_LDFLAGS) $(ARCH_FLAGS) $(MODTYPE_LDFLAGS) $(MODULE_CFLAGS) $(MODULE_LDFLAGS)"
1a06700908f5a1d9f4a8d51285a0fd971e2f9117Automatic Updater# Add proto area to path to find makedepend
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsMODULE_BUILD_ENV = PATH="$(PROTODIR)/$(X11_BIN_DIR):$(PATH)"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Need to use GNU Make to build
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Need to build with gcc
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Tell Sun compiler to not apply optimizations that increase binary sizes
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Without this flag, Studio 12 binaries are almost 2x bigger (CR 6808868)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#MODULE_CFLAGS = -xspace
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater### Include common rulesets
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# Run just once after all other install steps are done for both 32/64-bit
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater ln -s $(HEADERS_TO_DIRECT_LINK:%=../mesa/%) \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater mkdir -p $(PROTODIR)/usr/lib/GL/$(SUBDIR64) \
995eaa289ba9709c64ef89b3776e53c36adc0010Automatic Updater mv -f $(LIBRARY_TO_LINK:%=$(PROTODIR)/usr/lib/%) \
418cc932318b1d67f88a36904d88d8a5a0a2ba09Automatic Updater mv -f $(LIBRARY_TO_LINK:%=$(PROTODIR)/usr/lib/$(SUBDIR64)/%) \
0977f3f39ef6728516be7976452b9122c8f5607aAutomatic Updater ln -s libGLU.so.1 $(PROTODIR)/usr/lib/mesa/libGLU.so
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater -rm -f $(PROTODIR)/usr/lib/mesa/$(SUBDIR64)/libGLU.so
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ln -s libGLU.so.1 $(PROTODIR)/usr/lib/mesa/$(SUBDIR64)/libGLU.so
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater (cd $(PROTODIR)/usr/lib/GL; rm -f $(LIBRARY_TO_LINK) ; \
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater ln -s libGLU.so.1 $(PROTODIR)/usr/lib/GL/libGLU.so
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater (cd $(PROTODIR)/usr/lib/GL/$(SUBDIR64); rm -f $(LIBRARY_TO_LINK) ; \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater ln -s $(LIBRARY_TO_LINK:%=../../mesa/$(SUBDIR64)/%) .)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater -rm -f $(PROTODIR)/usr/lib/GL/$(SUBDIR64)/libGLU.so
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater ln -s libGLU.so.1 $(PROTODIR)/usr/lib/GL/$(SUBDIR64)/libGLU.so
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater (cd $(PROTODIR)/usr/lib; rm -f $(LIBRARY_TO_LINK) ; \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson ln -s libGLU.so.1 $(PROTODIR)/usr/lib/libGLU.so
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater (cd $(PROTODIR)/usr/lib/$(SUBDIR64); rm -f $(LIBRARY_TO_LINK) ; \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews ln -s $(LIBRARY_TO_LINK:%=../GL/$(SUBDIR64)/%) .)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson -rm -f $(PROTODIR)/usr/lib/$(SUBDIR64)/libGLU.so
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater ln -s libGLU.so.1 $(PROTODIR)/usr/lib/$(SUBDIR64)/libGLU.so
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater (cd $(PROTODIR)/usr/X11/lib; rm -f $(LIBRARY_TO_LINK) ; \
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater ln -s libGLU.so.1 $(PROTODIR)/usr/X11/lib/libGLU.so
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater (cd $(PROTODIR)/usr/X11/lib/$(SUBDIR64); rm -f $(LIBRARY_TO_LINK) ; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater ln -s $(LIBRARY_TO_LINK:%=../GL/$(SUBDIR64)/%) .)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson -rm -f $(PROTODIR)/usr/X11/lib/$(SUBDIR64)/libGLU.so