source: trunk/dports/textproc/convertlit/Portfile

Last change on this file was 73041, checked in by ryandesign@…, 7 years ago

convertlit: add universal variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 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 73041 2010-11-01 23:34:21Z ryandesign@macports.org $
3
4PortSystem              1.0
5
6name                    convertlit
7version                 1.8
8set my_version          [strsed ${version} {g/\.//}]
9categories              textproc
10platforms               darwin
11maintainers             ryandesign openmaintainer
12license                 GPL-2
13
14description             converts Microsoft Reader eBooks into open format
15
16long_description        Convert LIT (clit) converts eBooks in Microsoft \
17                        Reader format into open format for use with software \
18                        or devices which are not directly compatible with \
19                        Microsoft's Reader.
20
21homepage                http://www.convertlit.com/
22master_sites            ${homepage}
23distname                ${name}${my_version}src
24use_zip                 yes
25
26checksums               sha1    0fa9aead468bd8640c49374d46d78d2a3e79489f \
27                        rmd160  6104a7d951ed60ea73705e401be8b55633ea2d47
28
29depends_lib             port:libtommath
30
31extract.mkdir           yes
32post-extract {
33    move ${worksrcpath}/clit${my_version} ${worksrcpath}/clit
34    copy ${filespath}/Makefile ${worksrcpath}
35   
36    # DOS to UNIX line endings so we can patch
37    reinplace "s|\r||g" ${worksrcpath}/clit/Makefile \
38                        ${worksrcpath}/lib/Makefile
39}
40
41patchfiles              patch-clit-Makefile.diff \
42                        patch-clit-hexdump.c.diff \
43                        patch-lib-Makefile.diff
44
45use_configure           no
46
47configure.cppflags-append -I${prefix}/include/libtommath
48
49variant universal {}
50if {[variant_isset universal]} {
51    set archflags ${configure.universal_cflags}
52} else {
53    set archflags ${configure.cc_archflags}
54}
55
56build.args              CC="${configure.cc} ${archflags}" \
57                        CPPFLAGS="${configure.cppflags}" \
58                        LDFLAGS="${configure.ldflags}"
59
60destroot {
61    xinstall ${worksrcpath}/clit/clit ${destroot}${prefix}/bin
62    xinstall -d ${destroot}${prefix}/share/doc/${name}
63    xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
64}
65
66livecheck.type          regex
67livecheck.url           ${homepage}download.php
68livecheck.regex         {([0-9.]+) source}
Note: See TracBrowser for help on using the repository browser.