source: trunk/dports/math/aamath/Portfile

Last change on this file was 141218, checked in by jeremyhu@…, 22 months ago

aamath: Build with clang

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 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 141218 2015-10-13 02:40:19Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                aamath
7version             0.3
8revision            4
9categories          math textproc
10platforms           darwin
11license             GPL-2
12maintainers         snc openmaintainer
13description         renders ASCII art from mathematical expressions
14long_description    Aamath is a program that reads mathematical expressions in \
15                    infix notation and renders them as ASCII art. It may be \
16                    useful to send mathematics through text-only media, such as\
17                    e-mail or newsgroups.
18
19homepage            http://fuse.superglue.se/aamath/
20master_sites        ${homepage}
21
22checksums           rmd160  396ce7213a30a5c133dc964e2a531fe28a24b6c0 \
23                    sha256  9843f4588695e2cd55ce5d8f58921d4f255e0e65ed9569e1dcddf3f68f77b631
24
25depends_build       port:byacc port:flex
26depends_lib         port:readline port:ncurses
27
28worksrcdir          aamath
29
30configure.cppflags-append -I${prefix}/include/ncurses
31configure.ldflags-append -lreadline -ltermcap -lncurses
32
33patchfiles          patch-Makefile.diff patch-expr.h.diff
34post-patch {
35    reinplace s|@@CXX@@|${configure.cxx}|g ${worksrcpath}/Makefile
36    reinplace s|@@LDFLAGS@@|${configure.ldflags}|g ${worksrcpath}/Makefile
37    reinplace "s|@@CFLAGS@@|${configure.cflags} ${configure.cppflags}|g" ${worksrcpath}/Makefile
38}
39
40use_configure       no
41installs_libs       no
42
43destroot {
44    xinstall -m 755 ${worksrcpath}/aamath ${destroot}${prefix}/bin
45    xinstall -m 644 ${worksrcpath}/aamath.1 ${destroot}${prefix}/share/man/man1
46    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
47    xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog README \
48        ${destroot}${prefix}/share/doc/${name}
49}
50
51livecheck.type      regex
52livecheck.url       ${homepage}
53livecheck.regex     "${name}-(\\d+.\\d+).tar.gz"
54
55use_parallel_build  no
Note: See TracBrowser for help on using the repository browser.