From: Eric Anholt Date: Tue, 12 Jun 2012 19:13:32 +0000 (-0700) Subject: automake: Move .pc installation to automake. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=39785488e6a3f6beeb58372b88d49274a76d02f4;p=mesa.git automake: Move .pc installation to automake. --- diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am index b877b5d50d1..63350426388 100644 --- a/src/mesa/Makefile.am +++ b/src/mesa/Makefile.am @@ -27,3 +27,11 @@ install-exec-local: clean-local: $(MAKE) -f Makefile.old clean + +pkgconfigdir = $(libdir)/pkgconfig + +if HAVE_OSMESA_DRIVER +pkgconfig_DATA = osmesa.pc +else +pkgconfig_DATA = gl.pc +endif diff --git a/src/mesa/Makefile.old b/src/mesa/Makefile.old index c500a8c6849..7c855531b0b 100644 --- a/src/mesa/Makefile.old +++ b/src/mesa/Makefile.old @@ -156,8 +156,8 @@ install: default $(DRICORE_INSTALL_TARGET) else \ $(MAKE) -f Makefile.old install-osmesa || exit 1 ; \ fi ;; \ - dri) $(MAKE) -f Makefile.old install-libgl-pc install-dri || exit 1 ;; \ - *) $(MAKE) -f Makefile.old install-libgl-pc || exit 1 ;; \ + dri) $(MAKE) -f Makefile.old install-headers install-dri || exit 1 ;; \ + *) $(MAKE) -f Makefile.old install-headers || exit 1 ;; \ esac ; \ done @@ -166,17 +166,9 @@ install-headers: $(INSTALL) -m 644 $(TOP)/include/GL/*.h \ $(DESTDIR)$(INSTALL_INC_DIR)/GL -install-libgl-pc: install-headers - $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR) - $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig - $(INSTALL) -m 644 gl.pc $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig - install-osmesa: default - $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR) - $(INSTALL) -d $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig $(MINSTALL) $(TOP)/$(LIB_DIR)/$(OSMESA_LIB_GLOB) \ $(DESTDIR)$(INSTALL_LIB_DIR) - $(INSTALL) -m 644 osmesa.pc $(DESTDIR)$(INSTALL_LIB_DIR)/pkgconfig install-dri: default cd drivers/dri && $(MAKE) install