source: trunk/dports/lang/cc65/Portfile

Last change on this file was 126469, checked in by petr@…, 3 years ago

cc65: add openmaintainer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 126469 2014-10-10 21:05:38Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            cc65
6version         2.13.2
7categories      lang
8platforms       darwin
9maintainers     gmail.com:trashgod openmaintainer
10
11description     6502 C compiler
12long_description \
13                cc65 is a complete cross development package for 65(C)02 \
14                systems, including a powerful macro assembler, a C compiler, \
15                linker, librarian and several other tools.
16
17homepage        http://www.cc65.org/
18distfiles       cc65-sources-${version}.tar.bz2
19use_bzip2       yes
20
21master_sites    http://cc65.oldos.net/ \
22                http://bj.spline.de/cc65/ \
23                ftp://ftp.musoftware.de/pub/uz/cc65/ \
24                ftp://ftp.musoftware.de/pub/uz/cc65/old/
25
26checksums       md5 cbf9e25db21002371222ae025a6a1850
27
28
29use_configure   no
30
31build.target    bins libs
32build.args      -f make/gcc.mak prefix=${prefix}
33use_parallel_build no
34
35destroot.args   -f make/gcc.mak prefix=${destroot}${prefix}
36
37post-patch {
38    foreach file [glob ${worksrcpath}/src/*/make/gcc.mak] {
39        reinplace -E "s|^CC\[\[:space:\]\]*=\[\[:space:\]\]*gcc|CC=${configure.cc}|" $file
40    }
41}
42
43variant docs description {Install extra documentation} {
44    depends_build-append port:linuxdoc-tools
45    build.target-append docs
46    post-destroot {
47        set docdir ${destroot}${prefix}/share/doc/${name}
48        file mkdir "${docdir}/html"
49        foreach file [glob -directory ${docdir} *.htm*] {
50            move ${file} "${docdir}/html"
51        }
52    }
53}
Note: See TracBrowser for help on using the repository browser.