[graphene] Add new port (#15754)

* [graphene] add new port

* add version info
This commit is contained in:
Alexander Neumann 2021-01-20 00:29:51 +01:00 committed by GitHub
parent 852d471ff3
commit fa31c98275
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 83 additions and 0 deletions

View File

@ -2236,6 +2236,10 @@
"baseline": "2020-05-20",
"port-version": 0
},
"graphene": {
"baseline": "1.10.2",
"port-version": 0
},
"graphicsmagick": {
"baseline": "1.3.36",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "002959491c215c722047465a93b05d078d743864",
"version-string": "1.10.2",
"port-version": 0
}
]
}

7
ports/graphene/CONTROL Normal file
View File

@ -0,0 +1,7 @@
Source: graphene
Version: 1.10.2
Port-Version: 0
Homepage: https://www.gtk.org/
Description: A thin layer of types for graphic libraries.
Build-Depends: glib, gettext
Supports: !(arm&windows)

View File

@ -0,0 +1,63 @@
set(VERSION 1.10.2)
vcpkg_download_distfile(ARCHIVE
URLS "https://download.gnome.org/sources/graphene/1.10/graphene-${VERSION}.tar.xz"
FILENAME "graphene-${VERSION}.tar.xz"
SHA512 a8a8ef1e4ccffee2313a18b9b8dda06c7ede6d49fdde8578694500634e3c90278fd30af7d88938d5ecb08c519cc3e09d21fe69d0f21cb766e056ceedbb3eafb0
)
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
)
vcpkg_configure_meson(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-Dgtk_doc=false
-Dgobject_types=true
-Dintrospection=false
-Dtests=false
-Dinstalled_tests=false
ADDITIONAL_NATIVE_BINARIES glib-genmarshal='${CURRENT_INSTALLED_DIR}/tools/glib/glib-genmarshal'
glib-mkenums='${CURRENT_INSTALLED_DIR}/tools/glib/glib-mkenums'
ADDITIONAL_CROSS_BINARIES glib-genmarshal='${CURRENT_INSTALLED_DIR}/tools/glib/glib-genmarshal'
glib-mkenums='${CURRENT_INSTALLED_DIR}/tools/glib/glib-mkenums'
)
vcpkg_install_meson()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
# option('gtk_doc', type: 'boolean',
# value: false,
# description: 'Enable generating the API reference (depends on GTK-Doc)')
# option('gobject_types', type: 'boolean',
# value: true,
# description: 'Enable GObject types (depends on GObject)')
# option('introspection', type: 'boolean',
# value: true,
# description: 'Enable GObject Introspection (depends on GObject)')
# option('gcc_vector', type: 'boolean',
# value: true,
# description: 'Enable GCC vector fast paths (requires GCC)')
# option('sse2', type: 'boolean',
# value: true,
# description: 'Enable SSE2 fast paths (requires SSE2 or later)')
# option('arm_neon', type: 'boolean',
# value: true,
# description: 'Enable ARM NEON fast paths (requires ARM)')
# option('tests', type: 'boolean',
# value: true,
# description: 'Build the test suite (requires GObject)')
# option('installed_tests', type: 'boolean',
# value: true,
# description: 'Install tests')