Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vcpkg baseline][libxdamage,libxext,libxfixes] add ports #26486

Merged
merged 12 commits into from
Aug 26, 2022
19 changes: 18 additions & 1 deletion ports/libx11/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ vcpkg_configure_make(
${OPTIONS}
)

if(VCPKG_CROSSCOMPILING)
file(GLOB FOR_BUILD_FILES "${CURRENT_HOST_INSTALLED_DIR}/manual-tools/${PORT}/*")
file(COPY ${FOR_BUILD_FILES} DESTINATION "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/src/util")
if(NOT VCPKG_BUILD_TYPE)
file(COPY ${FOR_BUILD_FILES} DESTINATION "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/src/util")
endif()
endif()
vcpkg_install_make()
vcpkg_fixup_pkgconfig()

Expand All @@ -73,8 +80,18 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

# Handle copyright
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

if(NOT VCPKG_CROSSCOMPILING)
file(READ "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/config.log" config_contents)
string(REGEX MATCH "ac_cv_objext=[^\n]+" objsuffix "${config_contents}")
string(REPLACE "ac_cv_objext=" "." objsuffix "${objsuffix}")
file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/src/util/makekeys${VCPKG_TARGET_EXECUTABLE_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/manual-tools/${PORT}")
file(TOUCH "${CURRENT_PACKAGES_DIR}/manual-tools/${PORT}/makekeys${objsuffix}" DESTINATION )
#file(INSTALL "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/src/util/makekeys${objsuffix}" DESTINATION "${CURRENT_PACKAGES_DIR}/manual-tools/${PORT}")
endif()

endif()

configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake"
"${CURRENT_PACKAGES_DIR}/share/x11/vcpkg-cmake-wrapper.cmake" @ONLY)
"${CURRENT_PACKAGES_DIR}/share/x11/vcpkg-cmake-wrapper.cmake" @ONLY)

5 changes: 5 additions & 0 deletions ports/libx11/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
{
"name": "libx11",
"version": "1.7.3.1",
"port-version": 1,
"description": "The X Window System is a network-transparent window system that was designed at MIT.",
"homepage": "https://www.x.org/wiki/",
"license": "MIT",
"dependencies": [
"bzip2",
{
"name": "libx11",
"host": true
},
{
"name": "libxslt",
"host": true
Expand Down
30 changes: 30 additions & 0 deletions ports/libxdamage/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
if(NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS)
message(STATUS "Utils and libraries provided by '${PORT}' should be provided by your system! Install the required packages or force vcpkg libraries by setting X_VCPKG_FORCE_VCPKG_X_LIBRARIES in your triplet!")
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
else()

vcpkg_from_gitlab(
GITLAB_URL https://gitlab.freedesktop.org/xorg
OUT_SOURCE_PATH SOURCE_PATH
REPO lib/libxdamage
REF 977b04cd69738806e0b48fcf5c725763d065f06d # 1.1.5
SHA512 79c3a4c63f6c50c39d324183b98ad7e70235aed1c8385acf2f593739c71e7929119448be3e15dffd276b32e4fbb056508deeb35f450f74b85c101047f68d4339
HEAD_REF master # branch name
)

set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")

vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
)

vcpkg_install_make()
vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

# Handle copyright
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
endif()
14 changes: 14 additions & 0 deletions ports/libxdamage/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "libxdamage",
"version": "1.1.5",
"description": "X Damage Extension library",
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxdamage",
"license": null,
JonLiu1993 marked this conversation as resolved.
Show resolved Hide resolved
"dependencies": [
"bzip2",
"libx11",
"libxfixes",
"xorg-macros",
"xproto"
]
}
31 changes: 31 additions & 0 deletions ports/libxext/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
if(NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS)
message(STATUS "Utils and libraries provided by '${PORT}' should be provided by your system! Install the required packages or force vcpkg libraries by setting X_VCPKG_FORCE_VCPKG_X_LIBRARIES in your triplet")
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
else()

vcpkg_from_gitlab(
GITLAB_URL https://gitlab.freedesktop.org/xorg
OUT_SOURCE_PATH SOURCE_PATH
REPO lib/libxext
REF ebb167f34a3514783966775fb12573c4ed209625 # 1.3.4
SHA512 509cb67ad9dba37adbcc49dca6e9803b318f62e8e2b981ccf73ce328a8104e94615312c5914b480ba04e28d208cd93d8a71b3e6e2ef1a4e5615aa2a3f9ba19e7
HEAD_REF master
)

set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")

vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
OPTIONS xorg_cv_malloc0_returns_null=yes
)

vcpkg_install_make()
vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

# Handle copyright
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
endif()
12 changes: 12 additions & 0 deletions ports/libxext/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "libxext",
"version": "1.3.4",
"description": "Xlib-based library for common extensions to the X11 protocol",
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxext",
"license": null,
JonLiu1993 marked this conversation as resolved.
Show resolved Hide resolved
"dependencies": [
"libx11",
"xorg-macros",
"xproto"
]
}
29 changes: 29 additions & 0 deletions ports/libxfixes/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
if(NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS)
message(STATUS "Utils and libraries provided by '${PORT}' should be provided by your system! Install the required packages or force vcpkg libraries by setting X_VCPKG_FORCE_VCPKG_X_LIBRARIES in your triplet")
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
else()
vcpkg_from_gitlab(
GITLAB_URL https://gitlab.freedesktop.org/xorg
OUT_SOURCE_PATH SOURCE_PATH
REPO lib/libxfixes
REF 6fe3bd64dd82f704ed91478acb4c99ab5c00be16 # 6.0.0
SHA512 429e65f4183d92cee1380273a23be9bf157bdd19e01e164d8b9058a2a54601af8f4556888302a2cad062c2cfc4b3a37d6b8f5b7ac6bdd6b5c069c7b791422201
HEAD_REF master
)

set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")

vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
)

vcpkg_install_make()
vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

# Handle copyright
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
endif()
12 changes: 12 additions & 0 deletions ports/libxfixes/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "libxfixes",
"version": "6.0.0",
"description": "Xlib-based library for the XFIXES Extension",
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxfixes",
"license": null,
"dependencies": [
"libx11",
"xorg-macros",
"xproto"
]
}
2 changes: 0 additions & 2 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1194,8 +1194,6 @@ xalan-c:x64-windows-static=fail
xalan-c:arm64-windows=fail
xerces-c:arm-uwp=fail
xerces-c:x64-uwp=fail
# Crosscompiling libx11 requires additional steps and patches to the Makefiles.
libx11:arm64-windows=fail
xmlsec:arm-uwp=fail
xmlsec:x64-uwp=fail
yara:arm-uwp=fail
Expand Down
12 changes: 12 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4272,6 +4272,10 @@
"baseline": "1.0.9",
"port-version": 0
},
"libxdamage": {
"baseline": "1.1.5",
"port-version": 0
},
"libxdiff": {
"baseline": "0.23",
"port-version": 2
Expand All @@ -4280,6 +4284,14 @@
"baseline": "1.1.3",
"port-version": 0
},
"libxext": {
"baseline": "1.3.4",
"port-version": 0
},
"libxfixes": {
"baseline": "6.0.0",
"port-version": 0
},
"libxlsxwriter": {
"baseline": "1.1.4",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/libxdamage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "87138386fc68780b661be1216e8bb2e334071702",
"version": "1.1.5",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/l-/libxext.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "e67774822086eb3d56334159f5aad5579643b5d3",
"version": "1.3.4",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/l-/libxfixes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "1f0262e8d5145c540a26a4740b62c84794244586",
"version": "6.0.0",
"port-version": 0
}
]
}