Use variable library name in pkg-config output.
Previously the pkg-config output files would contain e.g. `-lGL' and `-lGLU', even if the user modified their configuration to build libraries with different names. This modifies the pkg-config inputs, and corresponding makery, so that modifying the output library name will cause the appropriate updated name to appear in the pkg-config `-l' option. Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
This commit is contained in:
@@ -22,7 +22,8 @@ pcedit = sed \
|
||||
-e 's,@GLU_PC_REQ@,$(GLU_PC_REQ),' \
|
||||
-e 's,@GLU_PC_REQ_PRIV@,$(GLU_PC_REQ_PRIV),' \
|
||||
-e 's,@GLU_PC_LIB_PRIV@,$(GLU_PC_LIB_PRIV),' \
|
||||
-e 's,@GLU_PC_CFLAGS@,$(GLU_PC_CFLAGS),'
|
||||
-e 's,@GLU_PC_CFLAGS@,$(GLU_PC_CFLAGS),' \
|
||||
-e 's,@GLU_LIB@,$(GLU_LIB),'
|
||||
glu.pc: glu.pc.in
|
||||
$(pcedit) $< > $@
|
||||
|
||||
|
@@ -8,6 +8,6 @@ Description: Mesa OpenGL Utility library
|
||||
Requires: @GLU_PC_REQ@
|
||||
Requires.private: @GLU_PC_REQ_PRIV@
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -lGLU
|
||||
Libs: -L${libdir} -l@GLU_LIB@
|
||||
Libs.private: @GLU_PC_LIB_PRIV@
|
||||
Cflags: -I${includedir} @GLU_PC_CFLAGS@
|
||||
|
@@ -107,7 +107,8 @@ pcedit = sed \
|
||||
-e 's,@VERSION@,$(GLUT_MAJOR).$(GLUT_MINOR).$(GLUT_TINY),' \
|
||||
-e 's,@GLUT_PC_REQ_PRIV@,$(GLUT_PC_REQ_PRIV),' \
|
||||
-e 's,@GLUT_PC_LIB_PRIV@,$(GLUT_PC_LIB_PRIV),' \
|
||||
-e 's,@GLUT_PC_CFLAGS@,$(GLUT_PC_CFLAGS),'
|
||||
-e 's,@GLUT_PC_CFLAGS@,$(GLUT_PC_CFLAGS),' \
|
||||
-e 's,@GLUT_LIB@,$(GLUT_LIB),'
|
||||
glut.pc: glut.pc.in
|
||||
$(pcedit) $< > $@
|
||||
|
||||
|
@@ -8,6 +8,6 @@ Description: Mesa OpenGL Utility Toolkit library
|
||||
Requires: gl glu
|
||||
Requires.private: @GLUT_PC_REQ_PRIV@
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -lglut
|
||||
Libs: -L${libdir} -l@GLUT_LIB@
|
||||
Libs.private: @GLUT_PC_LIB_PRIV@
|
||||
Cflags: -I${includedir} @GLUT_PC_CFLAGS@
|
||||
|
@@ -81,7 +81,8 @@ pcedit = sed \
|
||||
-e 's,@VERSION@,$(GLUT_MAJOR).$(GLUT_MINOR).$(GLUT_TINY),' \
|
||||
-e 's,@GLUT_PC_REQ_PRIV@,$(GLUT_PC_REQ_PRIV),' \
|
||||
-e 's,@GLUT_PC_LIB_PRIV@,$(GLUT_PC_LIB_PRIV),' \
|
||||
-e 's,@GLUT_PC_CFLAGS@,$(GLUT_PC_CFLAGS),'
|
||||
-e 's,@GLUT_PC_CFLAGS@,$(GLUT_PC_CFLAGS),' \
|
||||
-e 's,@GLUT_LIB@,$(GLUT_LIB),'
|
||||
glut.pc: glut.pc.in
|
||||
$(pcedit) $< > $@
|
||||
|
||||
|
@@ -8,6 +8,6 @@ Description: Mesa OpenGL Utility Toolkit library
|
||||
Requires: gl glu
|
||||
Requires.private: @GLUT_PC_REQ_PRIV@
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -lglut
|
||||
Libs: -L${libdir} -l@GLUT_LIB@
|
||||
Libs.private: @GLUT_PC_LIB_PRIV@
|
||||
Cflags: -I${includedir} @GLUT_PC_CFLAGS@
|
||||
|
@@ -33,7 +33,8 @@ pcedit = sed \
|
||||
-e 's,@VERSION@,$(MAJOR).$(MINOR).$(TINY),' \
|
||||
-e 's,@GLW_PC_REQ_PRIV@,$(GLW_PC_REQ_PRIV),' \
|
||||
-e 's,@GLW_PC_LIB_PRIV@,$(GLW_PC_LIB_PRIV),' \
|
||||
-e 's,@GLW_PC_CFLAGS@,$(GLW_PC_CFLAGS),'
|
||||
-e 's,@GLW_PC_CFLAGS@,$(GLW_PC_CFLAGS),' \
|
||||
-e 's,@GLW_LIB@,$(GLW_LIB),'
|
||||
glw.pc: glw.pc.in
|
||||
$(pcedit) $< > $@
|
||||
|
||||
|
@@ -8,6 +8,6 @@ Description: Mesa OpenGL widget library
|
||||
Requires: gl
|
||||
Requires.private: @GLW_PC_REQ_PRIV@
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -lGLw
|
||||
Libs: -L${libdir} -l@GLW_LIB@
|
||||
Libs.private: @GLW_PC_LIB_PRIV@
|
||||
Cflags: -I${includedir} @GLW_PC_CFLAGS@
|
||||
|
@@ -103,7 +103,8 @@ gl_pcedit = sed \
|
||||
-e 's,@VERSION@,$(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY),' \
|
||||
-e 's,@GL_PC_REQ_PRIV@,$(GL_PC_REQ_PRIV),' \
|
||||
-e 's,@GL_PC_LIB_PRIV@,$(GL_PC_LIB_PRIV),' \
|
||||
-e 's,@GL_PC_CFLAGS@,$(GL_PC_CFLAGS),'
|
||||
-e 's,@GL_PC_CFLAGS@,$(GL_PC_CFLAGS),' \
|
||||
-e 's,@GL_LIB@,$(GL_LIB),'
|
||||
|
||||
gl.pc: gl.pc.in
|
||||
$(gl_pcedit) $< > $@
|
||||
|
@@ -7,6 +7,6 @@ Name: gl
|
||||
Description: Mesa OpenGL library
|
||||
Requires.private: @GL_PC_REQ_PRIV@
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -lGL
|
||||
Libs: -L${libdir} -l@GL_LIB@
|
||||
Libs.private: @GL_PC_LIB_PRIV@
|
||||
Cflags: -I${includedir} @GL_PC_CFLAGS@
|
||||
|
Reference in New Issue
Block a user