From fa31c982755c4987da7b742cd1df3eecf4084281 Mon Sep 17 00:00:00 2001 From: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com> Date: Wed, 20 Jan 2021 00:29:51 +0100 Subject: [graphene] Add new port (#15754) * [graphene] add new port * add version info --- port_versions/baseline.json | 4 +++ port_versions/g-/graphene.json | 9 ++++++ ports/graphene/CONTROL | 7 +++++ ports/graphene/portfile.cmake | 63 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 port_versions/g-/graphene.json create mode 100644 ports/graphene/CONTROL create mode 100644 ports/graphene/portfile.cmake diff --git a/port_versions/baseline.json b/port_versions/baseline.json index 9858b5049..d0d199d4d 100644 --- a/port_versions/baseline.json +++ b/port_versions/baseline.json @@ -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 diff --git a/port_versions/g-/graphene.json b/port_versions/g-/graphene.json new file mode 100644 index 000000000..3ebae9736 --- /dev/null +++ b/port_versions/g-/graphene.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "002959491c215c722047465a93b05d078d743864", + "version-string": "1.10.2", + "port-version": 0 + } + ] +} diff --git a/ports/graphene/CONTROL b/ports/graphene/CONTROL new file mode 100644 index 000000000..d4796f804 --- /dev/null +++ b/ports/graphene/CONTROL @@ -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) \ No newline at end of file diff --git a/ports/graphene/portfile.cmake b/ports/graphene/portfile.cmake new file mode 100644 index 000000000..46c254676 --- /dev/null +++ b/ports/graphene/portfile.cmake @@ -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') + + -- cgit v1.2.3