source: trunk/dports/net/gupnp-igd/Portfile

Last change on this file was 131893, checked in by devans@…, 3 years ago

gupnp-igd: use gobject_introspection portgroup.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 131893 2015-01-20 12:40:59Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           compiler_blacklist_versions 1.0
6PortGroup           gobject_introspection 1.0
7
8name                gupnp-igd
9version             0.2.4
10revision            1
11license             LGPL
12set branch          [join [lrange [split ${version} .] 0 1] .]
13description         GUPnP-IGD is a library to handle UPnP IGD port mapping.
14
15long_description    ${description}
16
17maintainers         devans openmaintainer
18categories          net gnome
19platforms           darwin
20homepage            https://wiki.gnome.org/Projects/GUPnP
21master_sites        gnome:sources/${name}/${branch}/
22
23use_xz              yes
24
25checksums           rmd160  5ad9970458dab6695006854677256e3c0a5e5794 \
26                    sha256  38c4a6d7718d17eac17df95a3a8c337677eda77e58978129ad3182d769c38e44
27
28depends_build       port:pkgconfig
29
30depends_lib         port:gupnp
31
32patchfiles          patch-configure.diff \
33                    patch-python-pygupnp-igd-module.c.diff
34
35gobject_introspection yes
36
37# blacklist compilers that do not support C11
38# due to error: redefinition of typedef 'GUPnPService'
39# build fix for SL and earlier
40
41compiler.blacklist  *gcc* {clang < 300}
42
43configure.args      --disable-silent-rules \
44                    --disable-python
45
46variant python27 description {Enable Python 2.7 bindings} {
47                configure.args-replace      --disable-python --enable-python
48                depends_lib-append          port:py27-gobject
49                configure.python            ${prefix}/bin/python2.7
50                set python_prefix           ${frameworks_dir}/Python.framework/Versions/2.7
51                set python_pkg_config_path  ${python_prefix}/lib/pkgconfig
52                configure.pkg_config_path   ${python_pkg_config_path}
53                build.env-append            PATH=${python_prefix}/bin:$env(PATH)
54}
55
56default_variants    +python27
57
58livecheck.type      gnome
Note: See TracBrowser for help on using the repository browser.