source: trunk/dports/devel/curlhandle/Portfile

Last change on this file was 103987, checked in by ryandesign@…, 5 years ago

curlhandle: fix build on older OS X and with older compilers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 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 103987 2013-03-12 03:46:46Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           xcode 1.0
7
8github.setup        karelia CurlHandle 3.1.1 v
9name                curlhandle
10set my_name         CURLHandle
11categories          devel framework
12maintainers         nomaintainer
13license             public-domain
14
15description         CURLHandle is a framework wrapper around cURL
16
17long_description    ${description}
18
19checksums           rmd160  b51edd914a5d8ca06d3244315e44196b1c149a61 \
20                    sha256  a6830387b2b869de112b7da260b83ad8ed46cb92351183bbdb406c9b2385828c
21
22depends_lib         port:curl
23
24patch.dir           ${worksrcpath}/${my_name}Source
25build.dir           ${patch.dir}
26
27post-extract {
28    # Replace the bundled curl library with ours.
29    eval delete [glob ${build.dir}/*dylib*]
30    ln -s ${prefix}/lib/libcurl.dylib ${build.dir}
31}
32
33patchfiles          patch-CURLFTPSession.m.diff \
34                    patch-CURLHandle.xcodeproj-project.pbxproj.diff
35
36xcode.target        ${my_name}
37
38xcode.destroot.type framework
39
40post-destroot {
41    set framework ${frameworks_dir}/${my_name}.framework
42    delete ${destroot}${framework}/Versions/Current/Frameworks/libcurl.dylib
43    set docdir ${framework}/Versions/Current/Resources/Documentation
44    xinstall -d ${destroot}${docdir}
45    eval xinstall -m 0644 [glob ${worksrcpath}/Documentation/*.html] ${destroot}${docdir}
46}
Note: See TracBrowser for help on using the repository browser.