summaryrefslogtreecommitdiffstats
path: root/src/glu
diff options
context:
space:
mode:
authorDan Nicholson <[email protected]>2008-11-24 11:01:57 -0800
committerDan Nicholson <[email protected]>2008-12-14 08:47:03 -0800
commit71e208bafe9ca5e1c189fae3f251cc84034e5959 (patch)
treed265a82d8f8d300f6b8e51e1db1eebf268910c8a /src/glu
parenta42342cd90c19d8c29093e91d07d7efab5b5d25a (diff)
Add more package metadata to the pkg-config files
The pkg-config files have been filled in more thoroughly to allow users to use mesa more effectively. By adding metadata to Requires.private, Libs.private and Cflags, we can ensure that all the libraries and headers will be found in all situations. However, the full substitutions are only done when using the configure script. This also fixes the glu pkg-config file to account for using GL or OSMesa. Fixes bug 18161.
Diffstat (limited to 'src/glu')
-rw-r--r--src/glu/Makefile7
-rw-r--r--src/glu/glu.pc.in8
2 files changed, 11 insertions, 4 deletions
diff --git a/src/glu/Makefile b/src/glu/Makefile
index b025a90b675..4351d235996 100644
--- a/src/glu/Makefile
+++ b/src/glu/Makefile
@@ -18,7 +18,12 @@ pcedit = sed \
-e 's,@INSTALL_DIR@,$(INSTALL_DIR),' \
-e 's,@INSTALL_LIB_DIR@,$(INSTALL_LIB_DIR),' \
-e 's,@INSTALL_INC_DIR@,$(INSTALL_INC_DIR),' \
- -e 's,@VERSION@,$(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY),'
+ -e 's,@VERSION@,$(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY),' \
+ -e 's,@GLU_PC_REQ@,$(GLU_PC_REQ),' \
+ -e 's,@GLU_PC_REQ_PRIV@,$(GLU_PC_REQ_PRIV),' \
+ -e 's,@GLU_PC_LIB@,$(GLU_PC_LIB),' \
+ -e 's,@GLU_PC_LIB_PRIV@,$(GLU_PC_LIB_PRIV),' \
+ -e 's,@GLU_PC_CFLAGS@,$(GLU_PC_CFLAGS),'
glu.pc: glu.pc.in
$(pcedit) $< > $@
diff --git a/src/glu/glu.pc.in b/src/glu/glu.pc.in
index 8606b9b222c..2c9bd955b81 100644
--- a/src/glu/glu.pc.in
+++ b/src/glu/glu.pc.in
@@ -5,7 +5,9 @@ includedir=@INSTALL_INC_DIR@
Name: glu
Description: Mesa OpenGL Utility library
-Requires: gl
+Requires: @GLU_PC_REQ@
+Requires.private: @GLU_PC_REQ_PRIV@
Version: @VERSION@
-Libs: -L${libdir} -lGLU
-Cflags: -I${includedir}
+Libs: -L${libdir} -lGLU @GLU_PC_LIB@
+Libs.private: @GLU_PC_LIB_PRIV@
+Cflags: -I${includedir} @GLU_PC_CFLAGS@