Skip to content

Commit

Permalink
X Window Part 8/N (#27225)
Browse files Browse the repository at this point in the history
* [libxcomposite] add port

* [libxinerama] add port

* [libxpresent] add port

* [libxv] add port

* [libxscrnsaver] add port

* v db

* add license

* v db

* fix cross context

* v db
  • Loading branch information
Neumann-A authored Oct 20, 2022
1 parent 1ee8161 commit 94ce0da
Show file tree
Hide file tree
Showing 16 changed files with 302 additions and 0 deletions.
30 changes: 30 additions & 0 deletions ports/libxcomposite/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/libxcomposite
REF fd7d02cc014ac9bf5bb7e68b66102ea36a76a59a # 0.4.5
SHA512 68ee9d61d364816bf190db010f624312e9daf8d6b411dc209486ac0c7d92b3c75ca5a2650bc085b0c444bec1adfefca593e1d9e6fda4ba12ab5f12ebe7fd6ade
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()
14 changes: 14 additions & 0 deletions ports/libxcomposite/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "libxcomposite",
"version": "0.4.5",
"description": "Xlib-based client library for the Composite extension to the X11 protocol",
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxcomposite",
"license": null,
"dependencies": [
"bzip2",
"libx11",
"libxfixes",
"xorg-macros",
"xproto"
]
}
35 changes: 35 additions & 0 deletions ports/libxinerama/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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/libxinerama
REF c3ab2361f13154921df2992f9eacc1ea1b3f946b #1.1.4
SHA512 c65ed77d370e063f861ff9ed3abee5ad89be9ba452de987263da702985b1aa5be2ddd464e67b7978155e072e67f03ef49192a87fa707fcead408434e1771cbc0
HEAD_REF master
)

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

if (VCPKG_CROSSCOMPILING)
list(APPEND OPTIONS --enable-malloc0returnsnull)
endif()

vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
OPTIONS ${OPTIONS}
)

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/libxinerama/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "libxinerama",
"version": "1.1.4",
"description": "Xlib API for Xinerama extension to X11 Protocol",
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxinerama",
"license": null,
"dependencies": [
"libx11",
"libxext",
"xorg-macros"
]
}
31 changes: 31 additions & 0 deletions ports/libxpresent/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/libxpresent
REF ced59e4373b7ad8f89ba222b3f489fb22050b991 # 1.0.0
SHA512 3904af03ff03a5fca84e63ed92b53668b7d3c9b8572dc829016dbdc3176f3813f7731e519c2769ae84c4c105a4f5dec8378165f02f48d89354842c4dd8062328
HEAD_REF master
)
file(MAKE_DIRECTORY "${SOURCE_PATH}/m4/")
file(TOUCH "${SOURCE_PATH}/m4/dummy")
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()
16 changes: 16 additions & 0 deletions ports/libxpresent/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "libxpresent",
"version": "1.0.0",
"description": "Xlib-based library for the X Present Extension",
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxpresent",
"license": null,
"dependencies": [
"bzip2",
"libx11",
"libxext",
"libxfixes",
"libxrandr",
"xorg-macros",
"xproto"
]
}
35 changes: 35 additions & 0 deletions ports/libxscrnsaver/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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/libxscrnsaver
REF 96fffcd9dcaf2ba37ec56aa798677de9ad58ae81 # 1.2.3
SHA512 56ae74721db0c9970001b74227eadfe116d6cbfbb8dc318a4799f5034e0028572d5cc7acedbfb1b812a37bfc8cf21d35b62b264be08b17c695878c37d56bf9a2
HEAD_REF master
)

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

if (VCPKG_CROSSCOMPILING)
list(APPEND OPTIONS --enable-malloc0returnsnull)
endif()

vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
OPTIONS ${OPTIONS}
)

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/libxscrnsaver/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "libxscrnsaver",
"version": "1.2.3",
"description": "Xlib-based X11 Screen Saver extension client library",
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxscrnsaver",
"license": null,
"dependencies": [
"bzip2",
"libx11",
"libxext",
"xorg-macros",
"xproto"
]
}
36 changes: 36 additions & 0 deletions ports/libxv/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
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/libxv
REF ef2a282876acc2316d338f8b66344ad5a2947057 # 1.0.11
SHA512 0c97de51c22791cd6ea351f3b0ab8261b68d1283bcdc1784f9cc601fe54ef0c43f668e5bb9d8929c3ff8828f14fa48a8653566742d6a93455fe908d026517839
HEAD_REF master
)

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

if (VCPKG_CROSSCOMPILING)
list(APPEND OPTIONS --enable-malloc0returnsnull)
endif()

vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
OPTIONS ${OPTIONS}
)

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/libxv/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "libxv",
"version": "1.0.11",
"description": "Xlib-based library for the X Video (Xv) extension to the X Window System",
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxv",
"license": null,
"dependencies": [
"bzip2",
"libx11",
"libxext",
"xorg-macros",
"xproto"
]
}
20 changes: 20 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4376,6 +4376,10 @@
"baseline": "1.0.9",
"port-version": 0
},
"libxcomposite": {
"baseline": "0.4.5",
"port-version": 0
},
"libxdamage": {
"baseline": "1.1.5",
"port-version": 0
Expand Down Expand Up @@ -4408,6 +4412,10 @@
"baseline": "1.8",
"port-version": 0
},
"libxinerama": {
"baseline": "1.1.4",
"port-version": 0
},
"libxkbcommon": {
"baseline": "1.4.1",
"port-version": 0
Expand Down Expand Up @@ -4440,6 +4448,10 @@
"baseline": "3.5.11",
"port-version": 1
},
"libxpresent": {
"baseline": "1.0.0",
"port-version": 0
},
"libxrandr": {
"baseline": "1.5.2",
"port-version": 0
Expand All @@ -4452,10 +4464,18 @@
"baseline": "1.2.1",
"port-version": 0
},
"libxscrnsaver": {
"baseline": "1.2.3",
"port-version": 0
},
"libxslt": {
"baseline": "1.1.37",
"port-version": 0
},
"libxv": {
"baseline": "1.0.11",
"port-version": 0
},
"libyaml": {
"baseline": "0.2.5",
"port-version": 3
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/libxcomposite.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "e9a4eefe61eb6275bb2c6d3a3f222a241fa5d2a8",
"version": "0.4.5",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/l-/libxinerama.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "74d2b10e157a97b5358f4bcb17806e6242216395",
"version": "1.1.4",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/l-/libxpresent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "7008422cbeacd24d14f6e80446bdc734acdf855b",
"version": "1.0.0",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/l-/libxscrnsaver.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "534142ab44347318ba7f1f39f4000aa2645beecd",
"version": "1.2.3",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/l-/libxv.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "4a73c70d6f2f7092d8ddbba6c9a6ada0a8806080",
"version": "1.0.11",
"port-version": 0
}
]
}

0 comments on commit 94ce0da

Please sign in to comment.