# -*- 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 # $Id$ PortSystem 1.0 name cogl version 1.14.0 set branch [join [lrange [split ${version} .] 0 1] .] categories graphics 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. license LGPL-2+ maintainers devans openmaintainer platforms darwin homepage http://blogs.gnome.org/clutter/ master_sites gnome:sources/${name}/${branch} use_xz yes checksums rmd160 69a87d46c21999bde675a518ab3cbb5dfa159131 \ sha256 276e8c9f5ff0fcd57c1eaf74cc245f41ad469a95a18ac831fac2d5960baa5ae8 depends_build port:pkgconfig depends_lib path:lib/pkgconfig/cairo.pc:cairo \ path:lib/pkgconfig/pango.pc:pango \ port:gobject-introspection patchfiles leopard.patch \ patch-clock_gettime.diff \ patch-cogl-cogl-bitmap-pixbuf.c.diff use_autoreconf yes autoreconf.args -fvi configure.args --enable-introspection=yes \ --enable-cogl-pango=yes \ --disable-silent-rules # # 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 # pre-activate { 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] } } variant x11 conflicts quartz { patchfiles-append patch-disable-quartz.diff depends_lib-append port:gdk-pixbuf2 \ port:mesa \ port:xorg-libXcomposite \ port:xorg-libXdamage \ port:xorg-libXext \ port:xorg-libXfixes \ port:xorg-libXrandr configure.args-append --with-x \ --x-includes=${prefix}/include \ --x-libraries=${prefix}/lib \ --enable-glx=yes \ --enable-gdk-pixbuf=yes \ --enable-quartz-image=no } variant quartz conflicts x11 { configure.args-append --enable-glx=no \ --enable-gdk-pixbuf=no \ --enable-quartz-image=yes \ --without-x configure.ldflags-append \ -framework ApplicationServices \ -framework QuartzCore } variant debug description {Enable debugging} { configure.optflags -g -O0 configure.args-append --enable-debug=yes } variant examples description {Install simple example applications} { configure.args-append --enable-examples-install=yes } if {![variant_isset quartz]} { default_variants +x11 } livecheck.type gnome