Ticket #47147: Portfile

File Portfile, 1.2 KB (added by xuchunyang (Chunyang Xu), 10 years ago)

ttygif Portfile

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
3PortSystem          1.0
4PortGroup           github 1.0
5
6github.setup        icholy ttygif 1.0.8
7categories          graphics
8license             MIT
9maintainers         gmail.com:xuchunyang56
10platforms           darwin
11
12description         Convert terminal recordings to animated gifs
13long_description    \
14    ttygif converts a ttyrec file into gif files. It's a stripped down \
15    version of ttyplay which calls import on every frame.
16
17
18checksums           rmd160 a4e40d2cdfe65dfd51180f4114af658c0ac08a22 \
19                    sha256 005d8c6a45daac8ae0e6b1e701bf043a819e2ea61734c95ba600d3a44eaec255
20
21depends_run         port:ttyrec
22
23use_configure       no
24
25variant universal {}
26
27build.args          CC='${configure.cc}' \
28                    CFLAGS='${configure.cflags} [get_canonical_archflags cc]' \
29                    LDFLAGS='${configure.ldflags} [get_canonical_archflags ld]'
30
31destroot {
32    xinstall -m 755 -W ${worksrcpath} ttygif concat.sh concat_osx.sh ${destroot}${prefix}/bin
33
34    set docdir ${prefix}/share/doc/${name}
35    xinstall -d ${destroot}${docdir}
36    xinstall -m 644 -W ${worksrcpath} README.md ${destroot}${docdir}
37}