Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/graphene Add graphene 1.10.2



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6ae316c3b79a
branches:  trunk
changeset: 438025:6ae316c3b79a
user:      prlw1 <prlw1%pkgsrc.org@localhost>
date:      Fri Sep 04 11:21:41 2020 +0000

description:
Add graphene 1.10.2

Needed for GTK4.

Description:
When creating graphic libraries you most likely end up dealing with
points and rectangles. If you're particularly unlucky, you may end
up dealing with affine matrices and 2D transformations. If you're
writing a graphic library with 3D transformations, though, you are
going to hit the jackpot:  4x4 matrices, projections, transformations,
vectors, and quaternions.

Most of this stuff exists, in various forms, in other libraries,
but it has the major drawback of coming along with the rest of
those libraries, which may or may not be what you want. Those
libraries are also available in various languages, as long as those
languages are C++; again, it may or may not be something you want.

For this reason, I decided to write the thinnest, smallest possible
layer needed to write a canvas library; given its relative size,
and the propensity for graphics libraries to have a pun in their
name, I decided to call it Graphene.

This library provides types and their relative API; it does not
deal with windowing system surfaces, drawing, scene graphs, or
input. You're supposed to do that yourself, in your own canvas
implementation, which is the whole point of writing the library in
the first place.

diffstat:

 graphics/graphene/DESCR         |  23 +++++++++++++++++++++++
 graphics/graphene/Makefile      |  23 +++++++++++++++++++++++
 graphics/graphene/PLIST         |  34 ++++++++++++++++++++++++++++++++++
 graphics/graphene/buildlink3.mk |  14 ++++++++++++++
 graphics/graphene/distinfo      |   6 ++++++
 5 files changed, 100 insertions(+), 0 deletions(-)

diffs (120 lines):

diff -r 27b5304503dd -r 6ae316c3b79a graphics/graphene/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/graphene/DESCR   Fri Sep 04 11:21:41 2020 +0000
@@ -0,0 +1,23 @@
+When creating graphic libraries you most likely end up dealing with
+points and rectangles. If you're particularly unlucky, you may end
+up dealing with affine matrices and 2D transformations. If you're
+writing a graphic library with 3D transformations, though, you are
+going to hit the jackpot:  4x4 matrices, projections, transformations,
+vectors, and quaternions.
+
+Most of this stuff exists, in various forms, in other libraries,
+but it has the major drawback of coming along with the rest of
+those libraries, which may or may not be what you want. Those
+libraries are also available in various languages, as long as those
+languages are C++; again, it may or may not be something you want.
+
+For this reason, I decided to write the thinnest, smallest possible
+layer needed to write a canvas library; given its relative size,
+and the propensity for graphics libraries to have a pun in their
+name, I decided to call it Graphene.
+
+This library provides types and their relative API; it does not
+deal with windowing system surfaces, drawing, scene graphs, or
+input. You're supposed to do that yourself, in your own canvas
+implementation, which is the whole point of writing the library in
+the first place.
diff -r 27b5304503dd -r 6ae316c3b79a graphics/graphene/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/graphene/Makefile        Fri Sep 04 11:21:41 2020 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2020/09/04 11:21:41 prlw1 Exp $
+
+DISTNAME=      graphene-1.10.2
+CATEGORIES=    graphics
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=ebassi/graphene/releases/download/${PKGVERSION_NOREV:R}/}
+EXTRACT_SUFX=  .tar.xz
+
+MAINTAINER=    prlw1%cam.ac.uk@localhost
+HOMEPAGE=      https://ebassi.github.io/graphene/
+COMMENT=       Thin layer of graphic data types
+LICENSE=       mit
+
+USE_TOOLS+=    pkg-config
+
+MESON_ARGS+=   -Dgobject_types=true
+MESON_ARGS+=   -Dintrospection=true
+MESON_ARGS+=   -Dtests=false
+MESON_ARGS+=   -Dinstalled_tests=false
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/gobject-introspection/buildlink3.mk"
+.include "../../devel/meson/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 27b5304503dd -r 6ae316c3b79a graphics/graphene/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/graphene/PLIST   Fri Sep 04 11:21:41 2020 +0000
@@ -0,0 +1,34 @@
+@comment $NetBSD: PLIST,v 1.1 2020/09/04 11:21:41 prlw1 Exp $
+include/graphene-1.0/graphene-box.h
+include/graphene-1.0/graphene-euler.h
+include/graphene-1.0/graphene-frustum.h
+include/graphene-1.0/graphene-gobject.h
+include/graphene-1.0/graphene-macros.h
+include/graphene-1.0/graphene-matrix.h
+include/graphene-1.0/graphene-plane.h
+include/graphene-1.0/graphene-point.h
+include/graphene-1.0/graphene-point3d.h
+include/graphene-1.0/graphene-quad.h
+include/graphene-1.0/graphene-quaternion.h
+include/graphene-1.0/graphene-ray.h
+include/graphene-1.0/graphene-rect.h
+include/graphene-1.0/graphene-simd4f.h
+include/graphene-1.0/graphene-simd4x4f.h
+include/graphene-1.0/graphene-size.h
+include/graphene-1.0/graphene-sphere.h
+include/graphene-1.0/graphene-triangle.h
+include/graphene-1.0/graphene-types.h
+include/graphene-1.0/graphene-vec2.h
+include/graphene-1.0/graphene-vec3.h
+include/graphene-1.0/graphene-vec4.h
+include/graphene-1.0/graphene-version-macros.h
+include/graphene-1.0/graphene-version.h
+include/graphene-1.0/graphene.h
+lib/girepository-1.0/Graphene-1.0.typelib
+lib/graphene-1.0/include/graphene-config.h
+lib/libgraphene-1.0.so
+lib/libgraphene-1.0.so.0
+lib/libgraphene-1.0.so.0.1000.2
+lib/pkgconfig/graphene-1.0.pc
+lib/pkgconfig/graphene-gobject-1.0.pc
+share/gir-1.0/Graphene-1.0.gir
diff -r 27b5304503dd -r 6ae316c3b79a graphics/graphene/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/graphene/buildlink3.mk   Fri Sep 04 11:21:41 2020 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/09/04 11:21:41 prlw1 Exp $
+
+BUILDLINK_TREE+=       graphene
+
+.if !defined(GRAPHENE_BUILDLINK3_MK)
+GRAPHENE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.graphene+=       graphene>=1.10.2
+BUILDLINK_PKGSRCDIR.graphene?=         ../../graphics/graphene
+
+.include "../../devel/glib2/buildlink3.mk"
+.endif # GRAPHENE_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -graphene
diff -r 27b5304503dd -r 6ae316c3b79a graphics/graphene/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/graphene/distinfo        Fri Sep 04 11:21:41 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/09/04 11:21:41 prlw1 Exp $
+
+SHA1 (graphene-1.10.2.tar.xz) = da75005317ca0e22f554e3cee60b5964b04f9926
+RMD160 (graphene-1.10.2.tar.xz) = d6fca6c59522bacc8e61d0a24bb5d1ca9d9485cc
+SHA512 (graphene-1.10.2.tar.xz) = a8a8ef1e4ccffee2313a18b9b8dda06c7ede6d49fdde8578694500634e3c90278fd30af7d88938d5ecb08c519cc3e09d21fe69d0f21cb766e056ceedbb3eafb0
+Size (graphene-1.10.2.tar.xz) = 292372 bytes



Home | Main Index | Thread Index | Old Index