<p>On Jun 23, 2012 7:47 AM, "Laurent Carlier" <<a href="mailto:lordheavym@gmail.com">lordheavym@gmail.com</a>> wrote:<br>
><br>
> This also currently fix the installation of libOSmesa.<br>
> ---<br>
> <a href="http://configure.ac">configure.ac</a> | 1 +<br>
> src/mesa/drivers/osmesa/Makefile | 51 ------------------------------------<br>
> src/mesa/drivers/osmesa/Makefile.am | 50 +++++++++++++++++++++++++++++++++++<br>
> src/mesa/drivers/osmesa/Makefile.old | 51 ++++++++++++++++++++++++++++++++++++<br>
> 4 files changed, 102 insertions(+), 51 deletions(-)<br>
> delete mode 100644 src/mesa/drivers/osmesa/Makefile<br>
> create mode 100644 src/mesa/drivers/osmesa/Makefile.am<br>
> create mode 100644 src/mesa/drivers/osmesa/Makefile.old<br>
><br>
> diff --git a/<a href="http://configure.ac">configure.ac</a> b/<a href="http://configure.ac">configure.ac</a><br>
> index 46265a2..0b4a6b7 100644<br>
> --- a/<a href="http://configure.ac">configure.ac</a><br>
> +++ b/<a href="http://configure.ac">configure.ac</a><br>
> @@ -2189,6 +2189,7 @@ AC_CONFIG_FILES([configs/current<br>
> src/mesa/drivers/dri/radeon/Makefile<br>
> src/mesa/drivers/dri/swrast/Makefile<br>
> src/mesa/drivers/x11/Makefile<br>
> + src/mesa/drivers/osmesa/Makefile<br>
> src/mesa/gl.pc<br>
> src/mesa/osmesa.pc])<br>
><br>
> diff --git a/src/mesa/drivers/osmesa/Makefile b/src/mesa/drivers/osmesa/Makefile<br>
> deleted file mode 100644<br>
> index 39ab09a..0000000<br>
> --- a/src/mesa/drivers/osmesa/Makefile<br>
> +++ /dev/null<br>
> @@ -1,51 +0,0 @@<br>
> -# src/mesa/drivers/osmesa/Makefile for libOSMesa.so<br>
> -<br>
> -# Note that we may generate libOSMesa.so or libOSMesa16.so or libOSMesa32.so<br>
> -# with this Makefile<br>
> -<br>
> -<br>
> -TOP = ../../../..<br>
> -<br>
> -include $(TOP)/configs/current<br>
> -<br>
> -<br>
> -<br>
> -SOURCES = osmesa.c<br>
> -<br>
> -OBJECTS = $(SOURCES:.c=.o)<br>
> -<br>
> -INCLUDE_DIRS = \<br>
> - -I$(TOP)/include \<br>
> - -I$(TOP)/src/mapi \<br>
> - -I$(TOP)/src/mesa \<br>
> - -I$(TOP)/src/mesa/main<br>
> -<br>
> -CORE_MESA = \<br>
> - $(TOP)/src/mesa/libmesa.a \<br>
> - $(TOP)/src/mapi/glapi/libglapi.a \<br>
> - $(TOP)/src/glsl/libglsl.a<br>
> -<br>
> -.c.o:<br>
> - $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@<br>
> -<br>
> -<br>
> -default: $(TOP)/$(LIB_DIR)/$(OSMESA_LIB_NAME)<br>
> -<br>
> -<br>
> -# libOSMesa can be used in conjuction with libGL or with all other Mesa<br>
> -# sources. We can also build libOSMesa16/libOSMesa32 by setting<br>
> -# -DCHAN_BITS=16/32.<br>
> -$(TOP)/$(LIB_DIR)/$(OSMESA_LIB_NAME): $(OBJECTS) $(CORE_MESA)<br>
> - $(MKLIB) -o $(OSMESA_LIB) -linker '$(CXX)' -ldflags '$(LDFLAGS)' \<br>
> - -major $(MESA_MAJOR) -minor $(MESA_MINOR) -patch $(MESA_TINY) \<br>
> - -install $(TOP)/$(LIB_DIR) -cplusplus $(MKLIB_OPTIONS) \<br>
> - -id $(INSTALL_LIB_DIR)/lib$(OSMESA_LIB).$(MESA_MAJOR).dylib \<br>
> - $(OSMESA_LIB_DEPS) $(OBJECTS) $(CORE_MESA)<br>
> -<br>
> -<br>
> -<br>
> -clean:<br>
> - -rm -f *.o *~<br>
> -<br>
> -<br>
> -# XXX todo install rule?<br>
> diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am<br>
> new file mode 100644<br>
> index 0000000..6542722<br>
> --- /dev/null<br>
> +++ b/src/mesa/drivers/osmesa/Makefile.am<br>
> @@ -0,0 +1,50 @@<br>
> +<br>
> +<br>
> +# Copyright © 2012 Matt Turner <<a href="mailto:mattst88@gmail.com">mattst88@gmail.com</a>><br>
> +#<br>
> +# Permission is hereby granted, free of charge, to any person obtaining a<br>
> +# copy of this software and associated documentation files (the "Software"),<br>
> +# to deal in the Software without restriction, including without limitation<br>
> +# the rights to use, copy, modify, merge, publish, distribute, sublicense,<br>
> +# and/or sell copies of the Software, and to permit persons to whom the<br>
> +# Software is furnished to do so, subject to the following conditions:<br>
> +#<br>
> +# The above copyright notice and this permission notice (including the next<br>
> +# paragraph) shall be included in all copies or substantial portions of the<br>
> +# Software.<br>
> +#<br>
> +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR<br>
> +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,<br>
> +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL<br>
> +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER<br>
> +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING<br>
> +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS<br>
> +# IN THE SOFTWARE.<br>
> +<br>
> +# Hack to make some of the non-automake variables work.<br>
> +TOP=$(top_builddir)<br>
> +<br>
> +AM_CFLAGS = \<br>
> + -I$(top_srcdir)/include \<br>
> + -I$(top_srcdir)/src/mapi \<br>
> + -I$(top_srcdir)/src/mesa/ \<br>
> + $(DEFINES) \<br>
> + $(API_DEFINES)<br>
> +<br>
> +if HAVE_OSMESA_DRIVER<br>
> +lib_LTLIBRARIES = lib@OSMESA_LIB@.la<br>
> +endif<br>
> +<br>
> +lib@OSMESA_LIB@_la_SOURCES = osmesa.c<br>
> +<br>
> +lib@OSMESA_LIB@_la_LDFLAGS = -module -avoid-version -shared</p>
<p>The rest of it looks pretty reasonable but here you're dropping the osmesa version number. Previously it was using the mesa version.</p>
<p>The only other there thing about osmesa is that there ate many ways to build and link it. This might all be handled in configure but it would be worth investigating a bit.</p>
<p>Dan</p>