2021-01-20 07:29:51 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "https://download.gnome.org/sources/graphene/1.10/graphene-${VERSION}.tar.xz"
|
|
|
|
FILENAME "graphene-${VERSION}.tar.xz"
|
2022-10-26 14:18:40 +08:00
|
|
|
SHA512 c56dab6712cf58387d0512a213cd0cd456679e46a495ee5cfd9bc25440cda2d72d56974af4e462f3c863869a1e2e506b702f468933045609d35fdf006212c67d
|
2021-01-20 07:29:51 +08:00
|
|
|
)
|
|
|
|
|
2022-10-26 14:18:40 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
|
|
|
ARCHIVE "${ARCHIVE}"
|
2022-08-06 14:48:52 +08:00
|
|
|
PATCHES
|
|
|
|
fix_clang-cl.patch
|
2021-01-20 07:29:51 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_meson(
|
2022-10-26 14:18:40 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-01-20 07:29:51 +08:00
|
|
|
OPTIONS
|
2021-04-27 01:28:21 +08:00
|
|
|
-Dgtk_doc=false #Enable generating the API reference (depends on GTK-Doc)
|
|
|
|
-Dgobject_types=true #Enable GObject types (depends on GObject)
|
2022-10-26 14:18:40 +08:00
|
|
|
-Dintrospection=disabled #Enable GObject Introspection (depends on GObject)'
|
2021-01-20 07:29:51 +08:00
|
|
|
-Dtests=false
|
|
|
|
-Dinstalled_tests=false
|
2021-04-27 01:28:21 +08:00
|
|
|
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'
|
|
|
|
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
|
2021-01-20 07:29:51 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_meson()
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2022-10-26 14:18:40 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|