vcpkg/ports/tree-sitter/pkgconfig.patch
Anton Sviridov 49e62c5f6b
[tree-sitter] fix a typo in pkg-config file (#35199)
* [tree-sitter] fix a typo in pkg-config file

* [tree-sitter] add port-version

* [tree-sitter] add version
2023-11-20 12:14:26 -08:00

23 lines
612 B
Diff

diff --git a/tree-sitter.pc.in b/lib/tree-sitter.pc.in
similarity index 61%
rename from tree-sitter.pc.in
rename to lib/tree-sitter.pc.in
index f98816cb..71a3b4f9 100644
--- a/tree-sitter.pc.in
+++ b/lib/tree-sitter.pc.in
@@ -1,10 +1,10 @@
-prefix=@PREFIX@
-libdir=@LIBDIR@
-includedir=@INCLUDEDIR@
+prefix=@CMAKE_INSTALL_PREFIX@
+libdir=${prefix}/lib
+includedir=${prefix}/include
Name: tree-sitter
Description: An incremental parsing system for programming tools
URL: https://tree-sitter.github.io/
-Version: @VERSION@
+Version: @PROJECT_VERSION@
Libs: -L${libdir} -ltree-sitter
Cflags: -I${includedir}