[libxml2] add missing GNUInstallDirs to fix pc files (#16897)

* [libxml2] add missing include of GNUInstallDirs

* add version info

* add include dir to pc files ....

* update version

* add escaping

* version update

* Update baseline version

Co-authored-by: PhoebeHui <20694052+PhoebeHui@users.noreply.github.com>
This commit is contained in:
Alexander Neumann 2021-04-08 20:59:57 +02:00 committed by GitHub
parent bbd847b246
commit d46fc1f443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 7 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.8)
project(libxml2 C)
include(GNUInstallDirs)
set(WITH_TRIO 0 CACHE BOOL "Add trio support")
set(WITH_THREADS 1 CACHE BOOL "Add multithread support")
set(WITH_THREAD_ALLOC 0 CACHE BOOL "Add per-thread memory")
@ -170,6 +170,7 @@ set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix "\${prefix}")
set(libdir ${prefix}/${CMAKE_INSTALL_LIBDIR})
set(includedir ${prefix}/${CMAKE_INSTALL_INCLUDEDIR})
set(XML_INCLUDEDIR "-I\"\${includedir}\"")
configure_file(libxml-2.0.pc.in libxml-2.0.pc @ONLY)
install(FILES ${CMAKE_BINARY_DIR}/libxml-2.0.pc DESTINATION lib/pkgconfig)

View File

@ -1,7 +1,7 @@
{
"name": "libxml2",
"version-semver": "2.9.10",
"port-version": 4,
"port-version": 5,
"description": "Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform).",
"homepage": "https://xmlsoft.org/",
"dependencies": [

View File

@ -332,14 +332,14 @@
"baseline": "4.8.30",
"port-version": 5
},
"bext-ut": {
"baseline": "1.1.8",
"port-version": 0
},
"bext-di": {
"baseline": "1.2.0",
"port-version": 0
},
"bext-ut": {
"baseline": "1.1.8",
"port-version": 0
},
"bfgroup-lyra": {
"baseline": "1.5",
"port-version": 1
@ -3618,7 +3618,7 @@
},
"libxml2": {
"baseline": "2.9.10",
"port-version": 4
"port-version": 5
},
"libxmlmm": {
"baseline": "0.6.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "2908a3c4c0454f12d4e14aa954952cb2824bf508",
"version-semver": "2.9.10",
"port-version": 5
},
{
"git-tree": "98c48a2d0545e6d392084260abc6411eb44f0577",
"version-semver": "2.9.10",