Ticket #25025: Portfile

File Portfile, 2.6 KB (added by hsivank@…, 14 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem 1.0
5
6name            gtk-osx-application
7version         0.9.2
8categories      devel
9maintainers     nomaintainer
10
11description     Mac OS X menu bar integration library for GTK2 quartz
12
13long_description \
14                A simple library whose purpose is to \
15                allow GTK2 quartz applications to integrate with \
16                the Mac OS X menu bar. Requires gtk2 and its \
17                dependencies to be built with variants +no_x11 +quartz
18
19homepage        http://live.gnome.org/GTK%2B/OSX/Integration
20platforms       darwin
21
22master_sites    http://sourceforge.net/projects/gtk-osx/files/GTK-OSX Build/
23distname        ige-mac-integration-${version}
24
25checksums       md5     82107195a7dc064e028b75f053ba29b7 \
26                sha1    64b238099570c968b51c2d98ab06bf3cf11411dd \
27                rmd160  3c1f187620bd0b54f39a15038210eef23ddbb068
28
29depends_build   port:pkgconfig
30
31pre-configure {
32    if {![file exists ${prefix}/lib/pkgconfig/gdk-quartz-2.0.pc]} {
33        ui_error "
34
35****
36**** ige-mac-integration is meant to be used only in a GTK2 quartz
37**** development environment but your version of GTK2 does not
38**** support quartz.  Please make sure that port gtk2 and all its
39**** dependencies are built with variants +no_x11 +quartz and try again.
40****
41"
42        error "gtk2 +no_x11 +quartz not installed."
43    }
44}
45
46variant python25 conflicts python26 description {Use Python 2.5} {
47        depends_lib-append port:py25-gtk
48        configure.python ${prefix}/bin/python2.5
49        set python_prefix       ${frameworks_dir}/Python.framework/Versions/2.5
50        configure.python        ${python_prefix}/bin/python2.5
51        configure.env-append    PYGTK_CODEGEN=${python_prefix}/bin/pygtk-codegen-2.0
52        configure.env-append    PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0
53        configure.pkg_config_path   ${frameworks_dir}/Python.framework/Versions/2.5/lib/pkgconfig/
54        configure.pre_args      --prefix=${python_prefix}
55}
56
57variant python26 conflicts python25 description {Use Python 2.6} {
58        depends_lib-append port:py26-gtk
59        configure.python ${prefix}/bin/python2.6
60        set python_prefix       ${frameworks_dir}/Python.framework/Versions/2.6
61        configure.python        ${python_prefix}/bin/python2.6
62        configure.env-append    PYGTK_CODEGEN=${python_prefix}/bin/pygtk-codegen-2.0
63        configure.env-append    PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0
64        configure.pkg_config_path   ${frameworks_dir}/Python.framework/Versions/2.6/lib/pkgconfig/
65        configure.pre_args      --prefix=${python_prefix}
66}
67
68if {![variant_isset python25]} { 
69    default_variants +python26
70}
71
72
73configure.ccache        no