summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/cogl/DESCR15
-rw-r--r--graphics/cogl/Makefile37
-rw-r--r--graphics/cogl/PLIST142
-rw-r--r--graphics/cogl/buildlink3.mk31
-rw-r--r--graphics/cogl/distinfo5
-rw-r--r--graphics/cogl/options.mk41
6 files changed, 271 insertions, 0 deletions
diff --git a/graphics/cogl/DESCR b/graphics/cogl/DESCR
new file mode 100644
index 00000000000..79c4f637e1a
--- /dev/null
+++ b/graphics/cogl/DESCR
@@ -0,0 +1,15 @@
+Cogl is a small open source library for using 3D graphics hardware for
+rendering. The API departs from the flat state machine style of OpenGL and is
+designed to make it easy to write orthogonal components that can render without
+stepping on each others toes.
+
+As well as aiming for a nice API, we think having a single library as opposed
+to an API specification like OpenGL has a few advantages too; like being
+able to paper over the inconsistencies/bugs of different OpenGL
+implementations in a centralized place, not to mention the myriad of OpenGL
+extensions. It also means we are in a better position to provide utility
+APIs that help software developers since they only need to be implemented
+once and there is no risk of inconsistency between implementations.
+
+Having other backends, besides OpenGL, such as drm, Gallium or D3D are
+options we are interested in for the future.
diff --git a/graphics/cogl/Makefile b/graphics/cogl/Makefile
new file mode 100644
index 00000000000..df28bb6f00f
--- /dev/null
+++ b/graphics/cogl/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.1 2013/07/15 01:19:04 obache Exp $
+#
+
+DISTNAME= cogl-1.14.0
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_GNOME:=sources/cogl/1.14/}
+EXTRACT_SUFX= .tar.xz
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://cogl3d.org/
+COMMENT= Modern 3D graphics API
+LICENSE= gnu-lgpl-v2.1
+
+CONFLICTS+= clutter<1.8
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= gmake pkg-config msgfmt
+USE_PKGLOCALEDIR= yes
+
+PKGCONFIG_OVERRIDE+= cogl-gles2/cogl-gles2-experimental.pc.in
+PKGCONFIG_OVERRIDE+= cogl-pango/cogl-pango-1.0.pc.in
+PKGCONFIG_OVERRIDE+= cogl-pango/cogl-pango-2.0-experimental.pc.in
+PKGCONFIG_OVERRIDE+= cogl-pango/cogl-pango.pc.in
+PKGCONFIG_OVERRIDE+= cogl/cogl-1.0.pc.in
+PKGCONFIG_OVERRIDE+= cogl/cogl-2.0-experimental.pc.in
+
+.include "options.mk"
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+BUILDLINK_API_DEPENDS.glib2+= glib2>=2.32.0
+.include "../../devel/glib2/buildlink3.mk"
+BUILDLINK_API_DEPENDS.pango+= pango>=1.30.0
+.include "../../devel/pango/buildlink3.mk"
+BUILDLINK_API_DEPENDS.cairo+= cairo>=1.10.0
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/cogl/PLIST b/graphics/cogl/PLIST
new file mode 100644
index 00000000000..f2870b02190
--- /dev/null
+++ b/graphics/cogl/PLIST
@@ -0,0 +1,142 @@
+@comment $NetBSD: PLIST,v 1.1 2013/07/15 01:19:04 obache Exp $
+include/cogl/cogl-pango/cogl-pango.h
+include/cogl/cogl/cogl-attribute-buffer.h
+include/cogl/cogl/cogl-attribute.h
+include/cogl/cogl/cogl-bitmap.h
+include/cogl/cogl/cogl-buffer.h
+include/cogl/cogl/cogl-clip-state.h
+include/cogl/cogl/cogl-clutter-xlib.h
+include/cogl/cogl/cogl-clutter.h
+include/cogl/cogl/cogl-color.h
+include/cogl/cogl/cogl-context.h
+include/cogl/cogl/cogl-defines.h
+include/cogl/cogl/cogl-deprecated.h
+include/cogl/cogl/cogl-depth-state.h
+include/cogl/cogl/cogl-display.h
+include/cogl/cogl/cogl-enum-types.h
+include/cogl/cogl/cogl-error.h
+include/cogl/cogl/cogl-euler.h
+include/cogl/cogl/cogl-fixed.h
+include/cogl/cogl/cogl-frame-info.h
+include/cogl/cogl/cogl-framebuffer.h
+include/cogl/cogl/cogl-gles2-types.h
+include/cogl/cogl/cogl-gles2.h
+include/cogl/cogl/cogl-glib-source.h
+include/cogl/cogl/cogl-index-buffer.h
+include/cogl/cogl/cogl-indices.h
+include/cogl/cogl/cogl-material-compat.h
+include/cogl/cogl/cogl-matrix-stack.h
+include/cogl/cogl/cogl-matrix.h
+include/cogl/cogl/cogl-meta-texture.h
+include/cogl/cogl/cogl-object.h
+include/cogl/cogl/cogl-offscreen.h
+include/cogl/cogl/cogl-onscreen-template.h
+include/cogl/cogl/cogl-onscreen.h
+include/cogl/cogl/cogl-output.h
+include/cogl/cogl/cogl-pango.h
+include/cogl/cogl/cogl-path-functions.h
+include/cogl/cogl/cogl-path.h
+include/cogl/cogl/cogl-pipeline-layer-state.h
+include/cogl/cogl/cogl-pipeline-state.h
+include/cogl/cogl/cogl-pipeline.h
+include/cogl/cogl/cogl-pixel-buffer.h
+include/cogl/cogl/cogl-poll.h
+include/cogl/cogl/cogl-primitive-texture.h
+include/cogl/cogl/cogl-primitive.h
+include/cogl/cogl/cogl-primitives.h
+include/cogl/cogl/cogl-quaternion.h
+include/cogl/cogl/cogl-renderer.h
+include/cogl/cogl/cogl-shader.h
+include/cogl/cogl/cogl-snippet.h
+include/cogl/cogl/cogl-sub-texture.h
+include/cogl/cogl/cogl-swap-chain.h
+include/cogl/cogl/cogl-texture-2d-gl.h
+include/cogl/cogl/cogl-texture-2d-sliced.h
+include/cogl/cogl/cogl-texture-2d.h
+include/cogl/cogl/cogl-texture-3d.h
+include/cogl/cogl/cogl-texture-pixmap-x11.h
+include/cogl/cogl/cogl-texture-rectangle.h
+include/cogl/cogl/cogl-texture.h
+include/cogl/cogl/cogl-types.h
+include/cogl/cogl/cogl-vector.h
+include/cogl/cogl/cogl-version.h
+include/cogl/cogl/cogl-vertex-buffer.h
+include/cogl/cogl/cogl-xlib-renderer.h
+include/cogl/cogl/cogl-xlib.h
+include/cogl/cogl/cogl.h
+include/cogl/cogl/cogl1-context.h
+include/cogl/cogl/cogl2-compatibility.h
+include/cogl/cogl/cogl2-experimental.h
+include/cogl/cogl/cogl2-path.h
+include/cogl/cogl/gl-prototypes/cogl-core-functions.h
+include/cogl/cogl/gl-prototypes/cogl-gles2-functions.h
+include/cogl/cogl/gl-prototypes/cogl-glsl-functions.h
+include/cogl/cogl/gl-prototypes/cogl-in-gles-core-functions.h
+include/cogl/cogl/gl-prototypes/cogl-in-gles2-core-functions.h
+${PLIST.introspection}lib/girepository-1.0/Cogl-1.0.typelib
+${PLIST.introspection}lib/girepository-1.0/CoglPango-1.0.typelib
+lib/libcogl-pango.la
+lib/libcogl.la
+lib/pkgconfig/cogl-1.0.pc
+lib/pkgconfig/cogl-2.0-experimental.pc
+lib/pkgconfig/cogl-gl-1.0.pc
+lib/pkgconfig/cogl-pango-1.0.pc
+lib/pkgconfig/cogl-pango-2.0-experimental.pc
+share/cogl/examples-data/crate.jpg
+${PLIST.introspection}share/gir-1.0/Cogl-1.0.gir
+${PLIST.introspection}share/gir-1.0/CoglPango-1.0.gir
+share/locale/an/LC_MESSAGES/cogl.mo
+share/locale/ar/LC_MESSAGES/cogl.mo
+share/locale/as/LC_MESSAGES/cogl.mo
+share/locale/ast/LC_MESSAGES/cogl.mo
+share/locale/be/LC_MESSAGES/cogl.mo
+share/locale/bg/LC_MESSAGES/cogl.mo
+share/locale/ca/LC_MESSAGES/cogl.mo
+share/locale/ca@valencia/LC_MESSAGES/cogl.mo
+share/locale/cs/LC_MESSAGES/cogl.mo
+share/locale/da/LC_MESSAGES/cogl.mo
+share/locale/de/LC_MESSAGES/cogl.mo
+share/locale/el/LC_MESSAGES/cogl.mo
+share/locale/en_CA/LC_MESSAGES/cogl.mo
+share/locale/en_GB/LC_MESSAGES/cogl.mo
+share/locale/eo/LC_MESSAGES/cogl.mo
+share/locale/es/LC_MESSAGES/cogl.mo
+share/locale/eu/LC_MESSAGES/cogl.mo
+share/locale/fa/LC_MESSAGES/cogl.mo
+share/locale/fr/LC_MESSAGES/cogl.mo
+share/locale/gl/LC_MESSAGES/cogl.mo
+share/locale/he/LC_MESSAGES/cogl.mo
+share/locale/hi/LC_MESSAGES/cogl.mo
+share/locale/hu/LC_MESSAGES/cogl.mo
+share/locale/id/LC_MESSAGES/cogl.mo
+share/locale/it/LC_MESSAGES/cogl.mo
+share/locale/ja/LC_MESSAGES/cogl.mo
+share/locale/km/LC_MESSAGES/cogl.mo
+share/locale/kn/LC_MESSAGES/cogl.mo
+share/locale/ko/LC_MESSAGES/cogl.mo
+share/locale/lt/LC_MESSAGES/cogl.mo
+share/locale/lv/LC_MESSAGES/cogl.mo
+share/locale/ml/LC_MESSAGES/cogl.mo
+share/locale/nb/LC_MESSAGES/cogl.mo
+share/locale/nl/LC_MESSAGES/cogl.mo
+share/locale/or/LC_MESSAGES/cogl.mo
+share/locale/pa/LC_MESSAGES/cogl.mo
+share/locale/pl/LC_MESSAGES/cogl.mo
+share/locale/pt/LC_MESSAGES/cogl.mo
+share/locale/pt_BR/LC_MESSAGES/cogl.mo
+share/locale/ru/LC_MESSAGES/cogl.mo
+share/locale/sk/LC_MESSAGES/cogl.mo
+share/locale/sl/LC_MESSAGES/cogl.mo
+share/locale/sr/LC_MESSAGES/cogl.mo
+share/locale/sr@latin/LC_MESSAGES/cogl.mo
+share/locale/sv/LC_MESSAGES/cogl.mo
+share/locale/ta/LC_MESSAGES/cogl.mo
+share/locale/te/LC_MESSAGES/cogl.mo
+share/locale/th/LC_MESSAGES/cogl.mo
+share/locale/tr/LC_MESSAGES/cogl.mo
+share/locale/ug/LC_MESSAGES/cogl.mo
+share/locale/uk/LC_MESSAGES/cogl.mo
+share/locale/vi/LC_MESSAGES/cogl.mo
+share/locale/zh_CN/LC_MESSAGES/cogl.mo
+share/locale/zh_HK/LC_MESSAGES/cogl.mo
+share/locale/zh_TW/LC_MESSAGES/cogl.mo
diff --git a/graphics/cogl/buildlink3.mk b/graphics/cogl/buildlink3.mk
new file mode 100644
index 00000000000..70b2d294b2b
--- /dev/null
+++ b/graphics/cogl/buildlink3.mk
@@ -0,0 +1,31 @@
+# $NetBSD: buildlink3.mk,v 1.1 2013/07/15 01:19:04 obache Exp $
+#
+
+BUILDLINK_TREE+= cogl
+
+.if !defined(COGL_BUILDLINK3_MK)
+COGL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.cogl+= cogl>=1.14.0
+BUILDLINK_PKGSRCDIR.cogl?= ../../graphics/cogl
+
+.include "../../devel/glib2/buildlink3.mk"
+#.include "../../devel/pango/buildlink3.mk"
+#.include "../../graphics/cairo/buildlink3.mk"
+
+pkgbase := cogl
+.include "../../mk/pkg-build-options.mk"
+
+.if !empty(PKG_BUILD_OPTIONS.cogl:Mx11)
+#.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXdamage/buildlink3.mk"
+.include "../../x11/libXfixes/buildlink3.mk"
+.include "../../x11/libXcomposite/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
+.endif
+.endif # COGL_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -cogl
diff --git a/graphics/cogl/distinfo b/graphics/cogl/distinfo
new file mode 100644
index 00000000000..ba056bdb5d4
--- /dev/null
+++ b/graphics/cogl/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2013/07/15 01:19:04 obache Exp $
+
+SHA1 (cogl-1.14.0.tar.xz) = ff9a60b54fe79eb336af9c1b686f71f6af6f84f9
+RMD160 (cogl-1.14.0.tar.xz) = 69a87d46c21999bde675a518ab3cbb5dfa159131
+Size (cogl-1.14.0.tar.xz) = 1656520 bytes
diff --git a/graphics/cogl/options.mk b/graphics/cogl/options.mk
new file mode 100644
index 00000000000..34e92351078
--- /dev/null
+++ b/graphics/cogl/options.mk
@@ -0,0 +1,41 @@
+# $NetBSD: options.mk,v 1.1 2013/07/15 01:19:04 obache Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.cogl
+PKG_SUPPORTED_OPTIONS= introspection x11
+PKG_SUGGESTED_OPTIONS= x11
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= introspection x11
+
+.if !empty(PKG_OPTIONS:Mintrospection)
+PLIST.introspection= yes
+BUILDLINK_API_DEPENDS.gobject-introspection+= gobject-introspection>=0.9.5
+BUILDLINK_DEPMETHOD.gobject-introspection+= build
+.include "../../devel/gobject-introspection/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-introspection=yes
+.else
+CONFIGURE_ARGS+= --enable-introspection=no
+.endif
+
+.if !empty(PKG_OPTIONS:Mx11)
+PLIST.x11= yes
+CONFIGURE_ARGS+= --with-x
+CONFIGURE_ARGS+= --enable-gdk-pixbuf
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXdamage/buildlink3.mk"
+.include "../../x11/libXfixes/buildlink3.mk"
+.include "../../x11/libXcomposite/buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-x
+.include "../../mk/bsd.prefs.mk"
+. if ${OPSYS} == Darwin
+PLIST.osx= yes
+CONFIGURE_ARGS+= --with-quartz-image
+. endif
+.endif