source: trunk/dports/net/libproxy/Portfile

Last change on this file was 148469, checked in by jeremyhu@…, 17 months ago

libproxy: Fix build failures on systems without C++11 (#51309)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 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 148469 2016-05-10 06:35:49Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           cmake 1.0
7
8cmake.out_of_source yes
9
10github.setup        libproxy libproxy 0.4.13
11name                libproxy
12epoch               1
13revision            2
14categories          net
15maintainers         devans openmaintainer
16platforms           darwin
17license             LGPL-2.1+
18homepage            http://libproxy.github.io/libproxy
19
20description         A library that provides automatic proxy configuration management.
21
22
23long_description    Libproxy exists to answer the question: Given a \
24                    network resource, how do I reach it? It handles all \
25                    the details, enabling you to get back to programming.
26
27checksums           rmd160  08077c214213d782d45d01ee720845bc3e803fd6 \
28                    sha256  46133542bd6a2d66058cb66adf3e592ebd0f355db3e1005bbd30ac5ed4328cf7
29
30patchfiles          patch-libproxy-cmake.diff \
31                    patch-libproxy-test-CMakeLists.txt.diff \
32                    patch-bindings-perl-src-CMakeLists.txt.diff \
33                    patch-libproxy-modules-config_kde.cpp.diff
34
35depends_build-append \
36                    port:pkgconfig
37
38depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
39                    port:vala
40
41#
42# webkit and mozjs pacrunners disabled by default due to the
43# following issues
44#
45# webkit pacrunner circular dependency problem
46# webkit-gtk -> libsoup -> libproxy -> webkit-gtk (#26261)
47#
48# pac files support not available on Tiger (#24127)
49#
50# TODO: add variants that safely enable these features
51#
52
53use_parallel_build no
54
55# use default build which targets GNOME3 (gsettings) instead of GNOME2 (gconf)
56# perl bindings disabled due to unpredictable configuration
57
58configure.args-append \
59                    -DMP_MACOSX=NO \
60                    -DWITH_WEBKIT=NO \
61                    -DWITH_WEBKIT3=NO \
62                    -DWITH_VALA=YES \
63                    -DWITH_PERL=NO \
64                    -DWITH_PYTHON=NO
65
66variant kde description {Enable KDE4 plugin} {
67        configure.args-append -DQT_QT_INCLUDE_DIR=${prefix}/include/QtCore
68        depends_lib-append port:kdelibs4
69}
70
71variant python27 description {Build Bindings for Python 2.7} {
72    set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
73    depends_lib-append port:python27
74    configure.args-delete \
75                    -DWITH_PYTHON=NO
76    configure.args-append \
77                    -DWITH_PYTHON=YES \
78                    -DPYTHON_EXECUTABLE=${prefix}/bin/python2.7 \
79                    -DPYTHON_SITEPKG_DIR=${python_prefix}/lib/python2.7/site-packages
80}
81
82# build Python bindings by default
83
84default_variants    +python27
85
86post-patch {
87        if {${os.major} < 13 && [string match "*clang*" ${configure.compiler}]} {
88                # <rdar://problem/12941376>
89                reinplace "s:-D_POSIX_C_SOURCE=200112L:-D_POSIX_C_SOURCE=200112L -D_DARWIN_C_SOURCE=1:" ${worksrcpath}/libproxy/CMakeLists.txt
90        }
91}
Note: See TracBrowser for help on using the repository browser.