source: trunk/dports/graphics/cogl/Portfile

Last change on this file was 152022, checked in by devans@…, 15 months ago

cogl: update to version 1.22.2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.7 KB
Line 
1# -*- 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
2# $Id: Portfile 152022 2016-08-27 04:46:19Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           gobject_introspection 1.0
6
7name                cogl
8version             1.22.2
9set branch          [join [lrange [split ${version} .] 0 1] .]
10categories          graphics
11description         A hardware accelerated 3D graphics API
12long_description    Cogl is a small open source library for using 3D graphics hardware \
13                    for rendering. The API departs from the flat state machine style \
14                    of OpenGL and is designed to make it easy to write orthogonal \
15                    components that can render without stepping on each others toes.
16license             LGPL-2+
17maintainers         devans openmaintainer
18platforms           darwin
19homepage            https://wiki.gnome.org/Projects/Clutter
20master_sites        gnome:sources/${name}/${branch}
21
22use_xz              yes
23
24checksums           rmd160  0a6bfb9d487d13ebb135c91f27649b54e84d29df \
25                    sha256  39a718cdb64ea45225a7e94f88dddec1869ab37a21b339ad058a9d898782c00d
26
27# Pulling in port:grep due to this error observed on the Lion buildbot:
28# 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"
29# grep: Regular expression too big
30
31depends_build       port:pkgconfig \
32                    port:grep
33
34depends_lib         path:lib/pkgconfig/cairo.pc:cairo \
35                    path:lib/pkgconfig/pango.pc:pango
36
37patchfiles          leopard.patch \
38                    patch-clock_gettime.diff
39
40gobject_introspection yes
41
42use_autoreconf      yes
43autoreconf.args     -fvi
44
45configure.args      --enable-cogl-pango=yes \
46                    --disable-maintainer-flags \
47                    --disable-silent-rules
48
49use_parallel_build  no
50
51#
52# if clutter is installed and version is less than 1.12.0
53# deactivate clutter before activating cogl to avoid conflict
54#
55# previous versions included cogl in port clutter
56#
57
58pre-activate {
59    if { [file exists ${prefix}/lib/pkgconfig/clutter-1.0.pc]
60        && ![catch {set vers [lindex [registry_active clutter] 0]}]
61        && [vercmp [lindex $vers 1] 1.12.0] < 0} {
62       
63        registry_deactivate clutter "" "" "" [list ports_nodepcheck 1]
64    }
65}
66
67variant x11 conflicts quartz {
68    patchfiles-append     patch-disable-quartz.diff
69    depends_lib-append    port:gdk-pixbuf2 \
70                          port:mesa \
71                          port:xorg-libXcomposite \
72                          port:xorg-libXdamage \
73                          port:xorg-libXext \
74                          port:xorg-libXfixes \
75                          port:xorg-libXrandr
76    configure.args-append --with-x \
77                          --x-includes=${prefix}/include \
78                          --x-libraries=${prefix}/lib \
79                          --enable-glx=yes \
80                          --enable-gdk-pixbuf=yes \
81                          --enable-quartz-image=no
82}
83
84variant quartz conflicts x11 {
85    configure.args-append --enable-glx=no \
86                          --enable-gdk-pixbuf=no \
87                          --enable-quartz-image=yes \
88                          --without-x
89    configure.ldflags-append    \
90                          -framework ApplicationServices \
91                          -framework QuartzCore
92}
93
94variant debug description {Enable debugging} {
95    configure.optflags -g -O0
96    configure.args-append --enable-debug=yes
97}
98
99variant examples description {Install simple example applications} {
100    configure.args-append --enable-examples-install=yes
101}
102
103variant gstreamer description {Enable GStreamer support} {
104    configure.args-append --enable-cogl-gst
105
106    depends_lib-append    port:gstreamer1
107}
108
109if {![variant_isset quartz]} {
110    default_variants +x11
111}
112
113livecheck.type      gnome
Note: See TracBrowser for help on using the repository browser.