# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortGroup gobject_introspection 1.0
set branch [join [lrange [split ${version} .] 0 1] .]
description A hardware accelerated 3D graphics API
long_description 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.
maintainers {devans @dbevans} openmaintainer
homepage https://wiki.gnome.org/Projects/Clutter
master_sites gnome:sources/${name}/${branch}
checksums rmd160 0a6bfb9d487d13ebb135c91f27649b54e84d29df \
sha256 39a718cdb64ea45225a7e94f88dddec1869ab37a21b339ad058a9d898782c00d
# Pulling in port:grep due to this error observed on the Lion buildbot:
# libtool: link: /usr/bin/grep -E -e "^(cogl|_cogl_debug_flags|_cogl_atlas_new|_cogl_atlas_add_reorganize_callback|_cogl_atlas_reserve_space|_cogl_callback|_cogl_util_get_eye_planes_for_screen_poly|_cogl_atlas_texture_remove_reorganize_callback|_cogl_atlas_texture_add_reorganize_callback|_cogl_texture_foreach_sub_texture_in_region|_cogl_profile_trace_message|_cogl_context_get_default|_cogl_framebuffer_get_stencil_bits|_cogl_clip_stack_push_rectangle|_cogl_framebuffer_get_modelview_stack|_cogl_object_default_unref|_cogl_pipeline_foreach_layer_internal|_cogl_clip_stack_push_primitive|_cogl_buffer_unmap_for_fill_or_fallback|_cogl_framebuffer_draw_primitive|_cogl_debug_instances|_cogl_framebuffer_get_projection_stack|_cogl_pipeline_layer_get_texture|_cogl_buffer_map_for_fill_or_fallback|_cogl_framebuffer_get_clip_state|_cogl_texture_can_hardware_repeat|_cogl_pipeline_prune_to_n_layers|_cogl_primitive_draw|test_|unit_test_).*" ".libs/libcogl.exp" > ".libs/libcogl.expT"
# grep: Regular expression too big
depends_build port:pkgconfig \
depends_lib path:lib/pkgconfig/cairo.pc:cairo \
path:lib/pkgconfig/pango.pc:pango
patchfiles leopard.patch \
gobject_introspection yes
configure.args --enable-cogl-pango=yes \
--disable-maintainer-flags \
# if clutter is installed and version is less than 1.12.0
# deactivate clutter before activating cogl to avoid conflict
# previous versions included cogl in port clutter
if { [file exists ${prefix}/lib/pkgconfig/clutter-1.0.pc]
&& ![catch {set vers [lindex [registry_active clutter] 0]}]
&& [vercmp [lindex $vers 1] 1.12.0] < 0} {
registry_deactivate clutter "" "" "" [list ports_nodepcheck 1]