summaryrefslogtreecommitdiffstats
path: root/gnome3-libs
diff options
context:
space:
mode:
authorPavel Vinogradov2019-01-22 17:04:05 -0500
committerPavel Vinogradov2019-01-22 17:04:05 -0500
commit0de43f54daa0605e50ad02d18dacf930f21d1636 (patch)
treeac3c703e1da265a6d01d21f4e67a86f1a892c7b1 /gnome3-libs
parent175c3b73103815e0a12482525e44ecd79fad3789 (diff)
gnome3-libs/graphene: new spell, a thin layer of types for graphic libraries
Diffstat (limited to 'gnome3-libs')
-rwxr-xr-xgnome3-libs/graphene/BUILD3
-rwxr-xr-xgnome3-libs/graphene/CONFIGURE1
-rwxr-xr-xgnome3-libs/graphene/DEPENDS26
-rwxr-xr-xgnome3-libs/graphene/DETAILS35
-rw-r--r--gnome3-libs/graphene/HISTORY3
5 files changed, 68 insertions, 0 deletions
diff --git a/gnome3-libs/graphene/BUILD b/gnome3-libs/graphene/BUILD
new file mode 100755
index 0000000000..da6d5401e5
--- /dev/null
+++ b/gnome3-libs/graphene/BUILD
@@ -0,0 +1,3 @@
+OPTS+=" ${GRAPHENE_OPTS}" &&
+
+default_build
diff --git a/gnome3-libs/graphene/CONFIGURE b/gnome3-libs/graphene/CONFIGURE
new file mode 100755
index 0000000000..9f48d22f39
--- /dev/null
+++ b/gnome3-libs/graphene/CONFIGURE
@@ -0,0 +1 @@
+. "${GRIMOIRE}/MESON_CONFIGURE"
diff --git a/gnome3-libs/graphene/DEPENDS b/gnome3-libs/graphene/DEPENDS
new file mode 100755
index 0000000000..2a15743fff
--- /dev/null
+++ b/gnome3-libs/graphene/DEPENDS
@@ -0,0 +1,26 @@
+depends meson &&
+depends python3 &&
+depends ninja-build-system &&
+
+optional_depends glib2 \
+ "gobject_types=true" \
+ "gobject_types=false" \
+ "to enable Gobject types" &&
+
+if is_depends_enabled "${SPELL}" "glib2"; then
+ config_query_option GRAPHENE_OPTS "Build tests?" "n" \
+ "tests=true" "tests=false" &&
+
+ config_query_option GRAPHENE_OPTS "Build beenchmarks?" "n" \
+ "benchmarks=true" "benchmarkss=false"
+fi &&
+
+optional_depends gobject-introspection \
+ "introspection=true" \
+ "introspection=false" \
+ "to enable introspection support" &&
+
+optional_depends gtk-doc \
+ "gtk_doc=true" \
+ "gtk_doc=false" \
+ "Build documentation with gtk-doc"
diff --git a/gnome3-libs/graphene/DETAILS b/gnome3-libs/graphene/DETAILS
new file mode 100755
index 0000000000..4e1c0a1af4
--- /dev/null
+++ b/gnome3-libs/graphene/DETAILS
@@ -0,0 +1,35 @@
+. "${GRIMOIRE}/MESON_FUNCTIONS"
+ SPELL="graphene"
+ VERSION="1.8.2"
+ SOURCE_HASH="sha256:b3fcf20996e57b1f4df3941caac10f143bb29890a42f7a65407cd19271fc89f7:UPSTREAM_HASH"
+ SOURCE="${SPELL}-${VERSION}.tar.xz"
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ SOURCE_URL[0]="${GNOME_URL}/sources/${SPELL}/${VERSION%.*}/${SOURCE}"
+ SOURCE_URL[1]="https://github.com/ebassi/${SPELL}/releases/download/${VERSION}/${SOURCE}"
+ LICENSE[0]="MIT"
+ WEB_SITE="https://ebassi.github.io/graphene/"
+ ENTERED="20190122"
+ SHORT="a thin layer of types for graphic libraries"
+cat << EOF
+Graphene provides common types needed to handle 3D transformations:
+ * 2D points
+ * 3D points
+ * triangles
+ * rectangles
+ * quads
+ * quaternions
+ * euler angles
+ * vectors (2, 3, or 4-sized)
+ * matrices
+ * planes
+ * 3D boxes
+ * spheres
+ * frustums
+
+Graphene also provides its low-level SIMD vector and matrix types, which are
+used to implement the API above.
+
+All types can be placed on the stack, but provide allocation/free functions for
+working on the heap as well. The contents of all structure types, unless noted
+otherwise, should be considered private, and should never be accessed directly.
+EOF
diff --git a/gnome3-libs/graphene/HISTORY b/gnome3-libs/graphene/HISTORY
new file mode 100644
index 0000000000..182bf78620
--- /dev/null
+++ b/gnome3-libs/graphene/HISTORY
@@ -0,0 +1,3 @@
+2019-01-22 Pavel Vinogradov <public@sourcemage.org>
+ * BUILD, CONFIGURE, DEPENDS, DETAILS: created spell
+