source: trunk/dports/textproc/libxl/Portfile

Last change on this file was 153458, checked in by ryandesign@…, 14 months ago

libxl: Update to 3.7.0.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.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 153458 2016-10-01 03:57:12Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libxl
7version             3.7.0.0
8set branch          [join [lrange [split ${version} .] 0 2] .]
9categories          textproc
10platforms           darwin
11maintainers         ryandesign openmaintainer
12license             LibXL
13
14description         library for reading and writing Microsoft Excel files
15
16long_description    LibXL is a commercial ${description}.
17
18homepage            http://www.libxl.com/
19master_sites        ${homepage}download/
20dist_subdir         ${name}/${version}
21distfiles           libxl-mac-${branch}${extract.suffix}
22
23checksums           rmd160  f816f71ac21d4aea4167517f58930962e0d6e337 \
24                    sha256  bf45255086708496eec10f9df54b94d1789fdbab69e7b5c4102f5c3f068ebec3
25
26worksrcdir          libxl-mac-${version}
27
28use_configure       no
29
30variant universal {}
31
32supported_archs     i386 x86_64
33configure.universal_archs i386 x86_64
34
35# The pre-compiled library is linked with libstdc++.
36configure.cxx_stdlib libstdc++
37
38set libxl           lib/libxl.dylib
39
40build {
41    system -W ${worksrcpath} "install_name_tool -id ${prefix}/${libxl} ${libxl}"
42    if {![variant_isset universal]} {
43        system -W ${worksrcpath} "lipo -extract ${configure.build_arch} ${libxl} -output ${libxl}"
44    }
45}
46
47destroot {
48    xinstall -m 644 ${worksrcpath}/${libxl} ${destroot}${prefix}/lib
49    # I don't know where the developers intend these to be installed but they
50    # need to be in separate directories because there are files of the same
51    # names with different contents. Having them directly in ${prefix}/include
52    # also seems inadvisable due to the generically-named enum.h and setup.h.
53    # which could conflict with other projects.
54    copy ${worksrcpath}/include_c ${destroot}${prefix}/include/libxl-c
55    copy ${worksrcpath}/include_cpp ${destroot}${prefix}/include/libxl-cpp
56
57    xinstall -d ${destroot}${prefix}/share/doc
58    copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}
59    xinstall -W 644 -W ${worksrcpath} changelog.txt license.txt readme.txt ${destroot}${prefix}/share/doc/${subport}
60    copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}/
61}
62
63livecheck.url       ${homepage}download.html
64livecheck.regex     download/libxl-mac-(\[0-9.\]+)${extract.suffix}
65
66notes "
67LibXL is commercial software that requires a license to unlock all features.\
68For more information, see:
69
70${homepage}purchase.html
71"
Note: See TracBrowser for help on using the repository browser.