source: trunk/dports/devel/gtk-osx-application/Portfile @ 89680

Last change on this file since 89680 was 86870, checked in by royliu@…, 8 years ago

gtk-osx-application: fix a small upstream bug and whitespace

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
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: Portfile 86870 2011-11-06 05:20:41Z royliu@macports.org $
3
4PortSystem 1.0
5
6name            gtk-osx-application
7version         1.0.1
8revision        1
9set branch      [join [lrange [split ${version} .] 0 1] .]
10categories      devel
11maintainers     elelay openmaintainer
12
13description     Mac OS X menu bar integration library for GTK2 quartz
14
15long_description \
16                A simple library whose purpose is to \
17                allow GTK2 quartz applications to integrate with \
18                the Mac OS X menu bar. Requires gtk2 and its \
19                dependencies to be built with variants +no_x11 +quartz
20
21homepage        http://live.gnome.org/GTK%2B/OSX/Integration
22master_sites    sourceforge:project/gtk-osx/GTK-OSX%20Build/
23
24platforms       darwin
25
26master_sites    gnome:sources/gtk-mac-integration/${branch}/
27distname            gtk-mac-integration-${version}
28use_bzip2       yes
29
30checksums       md5     9706d7f55ed82b3d838c48968060b54d \
31                sha1    57d7adad87c596242f8413ec40191a5b93aad0f6 \
32                rmd160  3ffc7919d56eb284ca30e2416870614b9b9f3561
33
34depends_build   port:pkgconfig
35
36pre-configure {
37    if {![file exists ${prefix}/lib/pkgconfig/gdk-quartz-2.0.pc]} {
38        ui_error "
39
40****
41**** gtk-osx-application is meant to be used only in a GTK2 quartz
42**** development environment but your version of GTK2 does not
43**** support quartz.  Please make sure that port gtk2 and all its
44**** dependencies are built with variants +no_x11 +quartz and try again.
45****
46"
47        error "gtk2 +no_x11 +quartz not installed."
48    }
49}
50
51variant python25 conflicts python26 description {Use Python 2.5} {
52    depends_lib-append port:py25-gtk
53    set python_prefix           ${frameworks_dir}/Python.framework/Versions/2.5
54
55    configure.python            ${python_prefix}/bin/python2.5
56    configure.env-append            PYGTK_CODEGEN=${python_prefix}/bin/pygtk-codegen-2.0
57    configure.env-append            PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0
58    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig/
59    configure.pre_args          --prefix=${python_prefix}
60}
61
62variant python26 conflicts python25 description {Use Python 2.6} {
63    depends_lib-append port:py26-gtk
64    set python_prefix           ${frameworks_dir}/Python.framework/Versions/2.6
65
66    configure.python            ${python_prefix}/bin/python2.6
67    configure.env-append            PYGTK_CODEGEN=${python_prefix}/bin/pygtk-codegen-2.0
68    configure.env-append            PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0
69    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig/
70    configure.pre_args          --prefix=${python_prefix}
71}
72
73variant python27 conflicts python26 conflicts python25 description {Use Python 2.7} {
74    depends_lib-append port:py27-gtk
75    set python_prefix           ${frameworks_dir}/Python.framework/Versions/2.7
76
77    configure.python            ${python_prefix}/bin/python2.7
78    configure.env-append        PYGTK_CODEGEN=${python_prefix}/bin/pygtk-codegen-2.0
79    configure.env-append        PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0
80    configure.pkg_config_path   ${python_prefix}/lib/pkgconfig/
81    configure.pre_args          --prefix=${python_prefix}
82}
83
84if {![variant_isset python25] && ![variant_isset python26] && ![variant_isset python27]} {
85    default_variants +python27
86}
87
88
89configure.ccache        no
90configure.cmd-append    --libdir=${prefix}/lib --includedir=${prefix}/include
91
92patchfiles-append       patch-bindings-python-gtk_osxapplication-Makefile-in.diff \
93                        patch-bindings-python-gtkmacintegration-Makefile-in.diff \
94                        patch-gtkosxapplication.h.diff
Note: See TracBrowser for help on using the repository browser.