summaryrefslogtreecommitdiff
path: root/src/mesa/Makefile
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2010-05-02 09:51:13 -0400
committerKristian Høgsberg <krh@bitplanet.net>2010-05-02 09:51:13 -0400
commit74399d4af5b5ea793ce8318c10014a026cf81563 (patch)
treec7b16f93850b6b8114f37636767d6d22ecf4fee6 /src/mesa/Makefile
parenta804af2a1ea184ecc2c6a5e77335fae1e7730242 (diff)
Add glesv2.pc and glesv1_cm.pc pkg-config files for ES 1 and 2
Diffstat (limited to 'src/mesa/Makefile')
-rw-r--r--src/mesa/Makefile28
1 files changed, 22 insertions, 6 deletions
diff --git a/src/mesa/Makefile b/src/mesa/Makefile
index c050063017..3ba7caa68a 100644
--- a/src/mesa/Makefile
+++ b/src/mesa/Makefile
@@ -108,12 +108,15 @@ install: default
esac ; \
done
-
-gl_pcedit = sed \
+pcedit = \
-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),' \
+
+
+gl_pcedit = sed \
+ $(pcedit) \
-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),' \
@@ -122,11 +125,24 @@ gl_pcedit = sed \
gl.pc: gl.pc.in
$(gl_pcedit) $< > $@
+glesv2_pcedit = sed \
+ $(pcedit) \
+ -e 's,@GLESv2_PC_LIB_PRIV@,$(GLESv2_PC_LIB_PRIV),' \
+ -e 's,@GLESv2_LIB@,$(GLESv2_LIB),'
+
+glesv2.pc: glesv2.pc.in
+ $(glesv2_pcedit) $< > $@
+
+glesv1_cm_pcedit = sed \
+ $(pcedit) \
+ -e 's,@GLESv1_CM_PC_LIB_PRIV@,$(GLESv1_CM_PC_LIB_PRIV),' \
+ -e 's,@GLESv1_CM_LIB@,$(GLESv1_CM_LIB),'
+
+glesv1_cm.pc: glesv1_cm.pc.in
+ $(glesv1_cm_pcedit) $< > $@
+
osmesa_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),' \
+ $(pcedit) \
-e 's,@OSMESA_LIB@,$(OSMESA_LIB),' \
-e 's,@OSMESA_PC_REQ@,$(OSMESA_PC_REQ),' \
-e 's,@OSMESA_PC_LIB_PRIV@,$(OSMESA_PC_LIB_PRIV),'