mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 04:11:07 +08:00
[atk,gdk-pixbuf,glib] Use vcpkg_from_gitlab. (#24541)
* [atk,gdk-pixbuf,glib] Use vcpkg_from_gitlab. * Add quotes and licenses.
This commit is contained in:
parent
47cbed8851
commit
309f985971
@ -2,24 +2,21 @@ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
|
||||
|
||||
set(ATK_VERSION 2.38.0)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://gitlab.gnome.org/GNOME/atk/-/archive/${ATK_VERSION}/atk-${ATK_VERSION}.tar.gz"
|
||||
FILENAME "atk-${ATK_VERSION}.tar.gz"
|
||||
vcpkg_from_gitlab(
|
||||
GITLAB_URL https://gitlab.gnome.org/
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO GNOME/atk
|
||||
REF "${ATK_VERSION}"
|
||||
HEAD_REF master
|
||||
SHA512 f31951ecbdace6a18fb9f772616137cb8732163b37448fef4daf1af60ba8479c94d498dcdaf4880468c80012c77a446da585926a99704a9a940b80e546080cf3
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
PATCHES
|
||||
)
|
||||
|
||||
vcpkg_configure_meson(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS -Dintrospection=false
|
||||
ADDITIONAL_NATIVE_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
|
||||
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
|
||||
ADDITIONAL_CROSS_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
|
||||
ADDITIONAL_CROSS_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
|
||||
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
|
||||
)
|
||||
vcpkg_install_meson()
|
||||
@ -28,4 +25,4 @@ vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
@ -1,8 +1,10 @@
|
||||
{
|
||||
"name": "atk",
|
||||
"version": "2.38.0",
|
||||
"port-version": 1,
|
||||
"description": "GNOME Accessibility Toolkit",
|
||||
"homepage": "https://developer.gnome.org/atk/",
|
||||
"license": "GPL-2.0-only",
|
||||
"supports": "!arm",
|
||||
"dependencies": [
|
||||
"gettext",
|
||||
|
@ -1,23 +1,22 @@
|
||||
set(GDK_PIXBUF_VERSION 2.42)
|
||||
set(GDK_PIXBUF_PATCH 8)
|
||||
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/archive/${GDK_PIXBUF_VERSION}.${GDK_PIXBUF_PATCH}/gdk-pixbuf-${GDK_PIXBUF_VERSION}.${GDK_PIXBUF_PATCH}.tar.gz"
|
||||
FILENAME "gdk-pixbuf-${GDK_PIXBUF_VERSION}.${GDK_PIXBUF_PATCH}.tar.gz"
|
||||
SHA512 ea3b7d47f2ef3dbb88f640629e03eb4fab4a371da2545c199274d75b993b176af0c69ea72b46d5fadf58f82dff9a809fe1e0a4802ad1f1f13eaa9d757ebfeb4c
|
||||
)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
vcpkg_from_gitlab(
|
||||
GITLAB_URL https://gitlab.gnome.org/
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
REPO GNOME/gdk-pixbuf
|
||||
REF "${GDK_PIXBUF_VERSION}.${GDK_PIXBUF_PATCH}"
|
||||
SHA512 ea3b7d47f2ef3dbb88f640629e03eb4fab4a371da2545c199274d75b993b176af0c69ea72b46d5fadf58f82dff9a809fe1e0a4802ad1f1f13eaa9d757ebfeb4c
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix_build_error_windows.patch
|
||||
)
|
||||
|
||||
if(VCPKG_TARGET_IS_WINDOWS)
|
||||
#list(APPEND OPTIONS -Dnative_windows_loaders=true) # Use Windows system components to handle BMP, EMF, GIF, ICO, JPEG, TIFF and WMF images, overriding jpeg and tiff. To build this into gdk-pixbuf, pass in windows" with the other loaders to build in or use "all" with the builtin_loaders option
|
||||
endif()
|
||||
vcpkg_configure_meson(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-Dman=false # Whether to generate man pages (requires xlstproc)
|
||||
-Dgtk_doc=false # Whether to generate the API reference (requires GTK-Doc)
|
||||
@ -29,7 +28,7 @@ vcpkg_configure_meson(
|
||||
-Drelocatable=true # Whether to enable application bundle relocation support
|
||||
-Dinstalled_tests=false
|
||||
-Dgio_sniffing=false # Perform file type detection using GIO (Unused on MacOS and Windows)
|
||||
-Dbuiltin_loaders=all # since it is unclear where loadable plugins should be located;
|
||||
-Dbuiltin_loaders=all # since it is unclear where loadable plugins should be located;
|
||||
# Comma-separated list of loaders to build into gdk-pixbuf, or "none", or "all" to build all buildable loaders into gdk-pixbuf
|
||||
ADDITIONAL_NATIVE_BINARIES glib-compile-resources='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-resources'
|
||||
glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
|
||||
@ -40,7 +39,7 @@ vcpkg_configure_meson(
|
||||
)
|
||||
vcpkg_install_meson(ADD_BIN_TO_PATH)
|
||||
|
||||
# Fix paths in pc file.
|
||||
# Fix paths in pc file.
|
||||
set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gdk-pixbuf-2.0.pc")
|
||||
if(EXISTS "${_file}")
|
||||
file(READ "${_file}" _contents)
|
||||
@ -67,6 +66,6 @@ endif()
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_copy_tools(TOOL_NAMES ${TOOL_NAMES} AUTO_CLEAN)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
@ -1,9 +1,10 @@
|
||||
{
|
||||
"name": "gdk-pixbuf",
|
||||
"version": "2.42.8",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "Image loading library.",
|
||||
"homepage": "https://developer.gnome.org/gdk-pixbuf/",
|
||||
"homepage": "https://gitlab.gnome.org/GNOME/gdk-pixbuf",
|
||||
"license": "LGPL-2.1-only",
|
||||
"dependencies": [
|
||||
"gettext",
|
||||
"glib",
|
||||
|
@ -6,21 +6,17 @@ endif()
|
||||
|
||||
set(GLIB_MAJOR_MINOR 2.70)
|
||||
set(GLIB_PATCH 5)
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://gitlab.gnome.org/GNOME/glib/-/archive/${GLIB_MAJOR_MINOR}.${GLIB_PATCH}/glib-${GLIB_MAJOR_MINOR}.${GLIB_PATCH}.tar.gz"
|
||||
FILENAME "glib-${GLIB_MAJOR_MINOR}.${GLIB_PATCH}.tar.gz"
|
||||
SHA512 69c032358e0a0d88414a97e0bc898b5ce2797839a432b95790d03f108e55a79eee2d51bab5e281cc9469e2a57accc0d2c9bbaa80f9369050534387d1a215dd98)
|
||||
|
||||
vcpkg_extract_source_archive_ex(
|
||||
vcpkg_from_gitlab(
|
||||
GITLAB_URL https://gitlab.gnome.org/
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
ARCHIVE ${ARCHIVE}
|
||||
REF ${GLIB_VERSION}
|
||||
REPO GNOME/glib
|
||||
REF "${GLIB_MAJOR_MINOR}.${GLIB_PATCH}"
|
||||
SHA512 69c032358e0a0d88414a97e0bc898b5ce2797839a432b95790d03f108e55a79eee2d51bab5e281cc9469e2a57accc0d2c9bbaa80f9369050534387d1a215dd98
|
||||
PATCHES
|
||||
use-libiconv-on-windows.patch
|
||||
libintl.patch
|
||||
)
|
||||
|
||||
|
||||
if (selinux IN_LIST FEATURES)
|
||||
if(NOT VCPKG_TARGET_IS_WINDOWS AND NOT EXISTS "/usr/include/selinux")
|
||||
message("Selinux was not found in its typical system location. Your build may fail. You can install Selinux with \"apt-get install selinux\".")
|
||||
@ -41,7 +37,7 @@ if(VCPKG_TARGET_IS_WINDOWS)
|
||||
endif()
|
||||
|
||||
vcpkg_configure_meson(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-Dinstalled_tests=false
|
||||
${OPTIONS}
|
||||
@ -54,15 +50,15 @@ vcpkg_install_meson(ADD_BIN_TO_PATH)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
set(GLIB_TOOLS gdbus
|
||||
gio
|
||||
gio-querymodules
|
||||
glib-compile-resources
|
||||
glib-compile-schemas
|
||||
gobject-query
|
||||
gresource
|
||||
gsettings
|
||||
)
|
||||
set(GLIB_TOOLS gdbus
|
||||
gio
|
||||
gio-querymodules
|
||||
glib-compile-resources
|
||||
glib-compile-schemas
|
||||
gobject-query
|
||||
gresource
|
||||
gsettings
|
||||
)
|
||||
|
||||
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
||||
if(NOT VCPKG_TARGET_IS_OSX)
|
||||
@ -111,7 +107,7 @@ if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/glib-2.0.pc")
|
||||
endif()
|
||||
vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES ${SYSTEM_LIBRARIES})
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
||||
# Fix python scripts
|
||||
set(_file "${CURRENT_PACKAGES_DIR}/tools/${PORT}/gdbus-codegen")
|
||||
|
@ -1,9 +1,10 @@
|
||||
{
|
||||
"name": "glib",
|
||||
"version": "2.70.5",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "Portable, general-purpose utility library.",
|
||||
"homepage": "https://developer.gnome.org/glib/",
|
||||
"license": "LGPL-2.1-only",
|
||||
"supports": "!uwp & !(windows & static)",
|
||||
"dependencies": [
|
||||
"dirent",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "4034b57da4c9eeb30d6904339be721b7e45f8a89",
|
||||
"version": "2.38.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "9e43338e95e4bfeb688d23ade7792fb45b185356",
|
||||
"version": "2.38.0",
|
||||
|
@ -206,7 +206,7 @@
|
||||
},
|
||||
"atk": {
|
||||
"baseline": "2.38.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"atkmm": {
|
||||
"baseline": "2.36.1",
|
||||
@ -2442,7 +2442,7 @@
|
||||
},
|
||||
"gdk-pixbuf": {
|
||||
"baseline": "2.42.8",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"gemmlowp": {
|
||||
"baseline": "2021-09-28",
|
||||
@ -2538,7 +2538,7 @@
|
||||
},
|
||||
"glib": {
|
||||
"baseline": "2.70.5",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"glibmm": {
|
||||
"baseline": "2.70.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "2e82cf35eb436a674fdbdfa12cce69e629c83bf4",
|
||||
"version": "2.42.8",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "d1c32f1df7acf96c17689e559b2e1edeb947de38",
|
||||
"version": "2.42.8",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "3fc7533aba85394460293d7ba61abc3170323f1d",
|
||||
"version": "2.70.5",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "23fe84cc74f69a066a1e2a2629a527b9c8d058ad",
|
||||
"version": "2.70.5",
|
||||
|
Loading…
Reference in New Issue
Block a user