source: trunk/dports/textproc/libxl/Portfile @ 111348

Last change on this file since 111348 was 111348, checked in by ryandesign@…, 6 years ago

remove use of [suffix] proc in my ports because it is thought to be confusing

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 111348 2013-09-19 06:13:15Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libxl
7version             3.5.2.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
20distfiles           libxl-mac-${version}${extract.suffix}
21
22checksums           rmd160  7fa84054392cc702eed12bb0963b7fa0460f18c1 \
23                    sha256  dc7d8b333f003cd9e3e9dd9243b7885267fdc9929965b5019078d3c261037213
24
25use_configure       no
26
27variant universal {}
28
29supported_archs     i386 x86_64
30configure.universal_archs i386 x86_64
31
32set libxl           lib/libxl.dylib
33
34build {
35    system -W ${worksrcpath} "install_name_tool -id ${prefix}/${libxl} ${libxl}"
36    if {![variant_isset universal]} {
37        system -W ${worksrcpath} "lipo -extract ${configure.build_arch} ${libxl} -output ${libxl}"
38    }
39}
40
41destroot {
42    xinstall -m 644 ${worksrcpath}/${libxl} ${destroot}${prefix}/lib
43    # I don't know where the developers intend these to be installed but they
44    # need to be in separate directories because there are files of the same
45    # names with different contents. Having them directly in ${prefix}/include
46    # also seems inadvisable due to the generically-named enum.h and setup.h.
47    # which could conflict with other projects.
48    copy ${worksrcpath}/include_c ${destroot}${prefix}/include/libxl-c
49    copy ${worksrcpath}/include_cpp ${destroot}${prefix}/include/libxl-cpp
50
51    xinstall -d ${destroot}${prefix}/share/doc ${destroot}${prefix}/share/examples
52    copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}
53    xinstall -W 644 -W ${worksrcpath} changelog.txt license.txt readme.txt ${destroot}${prefix}/share/doc/${subport}
54    copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${subport}
55}
56
57livecheck.version   ${branch}
58livecheck.url       ${homepage}download.html
59livecheck.regex     {LibXL for Mac ([0-9.]+)}
60
61notes "
62LibXL is commercial software that requires a license to unlock all features.\
63For more information, see:
64
65${homepage}purchase.html
66"
Note: See TracBrowser for help on using the repository browser.