aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neumann <30894796+Neumann-A@users.noreply.github.com>2021-01-20 00:29:51 +0100
committerGitHub <noreply@github.com>2021-01-19 15:29:51 -0800
commitfa31c982755c4987da7b742cd1df3eecf4084281 (patch)
tree34b85a2d9b310b3f8e0cef150c83e46251ec2f4a
parent852d471ff34bec009b2826b4263d2ef4b91b57e8 (diff)
downloadvcpkg-fa31c982755c4987da7b742cd1df3eecf4084281.tar.gz
vcpkg-fa31c982755c4987da7b742cd1df3eecf4084281.zip
[graphene] Add new port (#15754)
* [graphene] add new port * add version info
-rw-r--r--port_versions/baseline.json4
-rw-r--r--port_versions/g-/graphene.json9
-rw-r--r--ports/graphene/CONTROL7
-rw-r--r--ports/graphene/portfile.cmake63
4 files changed, 83 insertions, 0 deletions
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')
+
+