Move installing osmesa.pc to drivers/osmesa
authorJon TURNEY <jon.turney@dronecode.org.uk>
Thu, 26 Jul 2012 10:07:37 +0000 (11:07 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Tue, 31 Jul 2012 11:48:33 +0000 (12:48 +0100)
Move installing osmesa.pc to drivers/osmesa, where it belongs better

This also restores the installation of gl.pc if we are building osmesa at the
same time as libGL, which was broken in commit 39785488 when the .pc
installation was converted to automake

v2:
Remove HAVE_OSMESA_DRIVER automake conditional, it's now pointless as we
will only be building in the drivers/osmesa directory if the condition it
checked was true.

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Eric Anholt <eric@anholt.net>
configure.ac
src/mesa/Makefile.am
src/mesa/drivers/osmesa/Makefile.am
src/mesa/drivers/osmesa/osmesa.pc.in [new file with mode: 0644]
src/mesa/osmesa.pc.in [deleted file]

index 47b918720181f24916c4247c6b131fba48b96ccf..b01b1921bd07ab17a7b10cfd3a8f59ebd05173a4 100644 (file)
@@ -2118,7 +2118,6 @@ AC_SUBST([GALLIUM_MAKE_DIRS])
 
 AM_CONDITIONAL(HAVE_X11_DRIVER, echo "$DRIVER_DIRS" | grep 'x11' >/dev/null 2>&1)
 AM_CONDITIONAL(HAVE_DRI_DRIVER, echo "$DRIVER_DIRS" | grep 'dri' >/dev/null 2>&1)
-AM_CONDITIONAL(HAVE_OSMESA_DRIVER, echo "$DRIVER_DIRS" | grep 'osmesa' >/dev/null 2>&1)
 
 AM_CONDITIONAL(HAVE_X86_ASM, echo "$DEFINES" | grep 'X86_ASM' >/dev/null 2>&1)
 AM_CONDITIONAL(HAVE_X86_64_ASM, echo "$DEFINES" | grep 'X86_64_ASM' >/dev/null 2>&1)
@@ -2186,7 +2185,7 @@ AC_CONFIG_FILES([configs/current
                src/mesa/drivers/osmesa/Makefile
                src/mesa/drivers/x11/Makefile
                src/mesa/gl.pc
-               src/mesa/osmesa.pc])
+               src/mesa/drivers/osmesa/osmesa.pc])
 
 dnl Sort the dirs alphabetically
 GALLIUM_TARGET_DIRS=`echo $GALLIUM_TARGET_DIRS|tr " " "\n"|sort -u|tr "\n" " "`
index 2ec57ea912ba54ca6dc630e632e3ae69260fe148..bb70ed6ea36544ec8ea710495e4285d729437c08 100644 (file)
@@ -140,12 +140,7 @@ all-local: libmesa.la libmesagallium.la
 CLEANFILES += libmesa.a libmesagallium.a
 
 pkgconfigdir = $(libdir)/pkgconfig
-
-if HAVE_OSMESA_DRIVER
-pkgconfig_DATA = osmesa.pc
-else
 pkgconfig_DATA = gl.pc
-endif
 
 # Emacs tags
 tags:
index 59ee62a7a66eef71be25080979f0f51d2019074f..dbee925dd7963a81ed231d8b19539d52fc10bbdb 100644 (file)
@@ -31,9 +31,7 @@ AM_CFLAGS = \
        $(DEFINES) \
        $(API_DEFINES)
 
-if HAVE_OSMESA_DRIVER
 lib_LTLIBRARIES = lib@OSMESA_LIB@.la
-endif
 
 lib@OSMESA_LIB@_la_SOURCES = osmesa.c
 
@@ -47,3 +45,6 @@ lib@OSMESA_LIB@_la_LIBADD = \
 all-local: lib@OSMESA_LIB@.la
        $(MKDIR_P) $(top_builddir)/$(LIB_DIR);
        ln -f .libs/lib@OSMESA_LIB@.so $(top_builddir)/$(LIB_DIR)/lib@OSMESA_LIB@.so;
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = osmesa.pc
diff --git a/src/mesa/drivers/osmesa/osmesa.pc.in b/src/mesa/drivers/osmesa/osmesa.pc.in
new file mode 100644 (file)
index 0000000..307255f
--- /dev/null
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=@libdir@
+includedir=@includedir@
+
+Name: osmesa
+Description: Mesa Off-screen Rendering library
+Requires: @OSMESA_PC_REQ@
+Version: @PACKAGE_VERSION@
+Libs: -L${libdir} -l@OSMESA_LIB@
+Libs.private: @OSMESA_PC_LIB_PRIV@
+Cflags: -I${includedir}
diff --git a/src/mesa/osmesa.pc.in b/src/mesa/osmesa.pc.in
deleted file mode 100644 (file)
index 307255f..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-prefix=@prefix@
-exec_prefix=${prefix}
-libdir=@libdir@
-includedir=@includedir@
-
-Name: osmesa
-Description: Mesa Off-screen Rendering library
-Requires: @OSMESA_PC_REQ@
-Version: @PACKAGE_VERSION@
-Libs: -L${libdir} -l@OSMESA_LIB@
-Libs.private: @OSMESA_PC_LIB_PRIV@
-Cflags: -I${includedir}