source: trunk/dports/lang/cc65/Portfile @ 4164

Last change on this file since 4164 was 4164, checked in by jkh, 17 years ago

Add cc65, 6502 development environment.

Requested by: bbraun

  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
1# $Id: Portfile,v 1.1 2003/12/08 11:03:08 jkh Exp $
2
3PortSystem 1.0
4name                    cc65
5version                 2.9.3
6categories              lang
7maintainers             jkh@opendarwin.org
8description             6502 C compiler
9platforms               darwin
10distfiles               cc65-sources-${version}.tar.bz2
11use_bzip2               yes
12master_sites            http://www.funet.fi/pub/cbm/programming/cc65/ \
13                        http://bj.spline.de/cc65/
14checksums               md5 255a231cd475852545a5bad1d21e867d
15worksrcdir              ${name}-${version}/src
16configure               {}
17build.args              -f make/gcc.mak
18build.env               PREFIX=${prefix}
19patchfiles              patch-gcc.mak
20
21post-build {
22        system "cd ${worksrcpath}/../libsrc && make"
23}
24
25destroot {
26        set _d ${destroot}${prefix}
27        file delete ${_d}/man
28        system "mkdir -p ${_d}/lib/cc65/{lib,include/geos}"
29        system "install -s -m 755 ${worksrcpath}/ar65/ar65 ${_d}/bin"
30        system "install -s -m 755 ${worksrcpath}/ca65/ca65 ${_d}/bin"
31        system "install -s -m 755 ${worksrcpath}/cc65/cc65 ${_d}/bin"
32        system "install -s -m 755 ${worksrcpath}/cl65/cl65 ${_d}/bin"
33        system "install -s -m 755 ${worksrcpath}/da65/da65 ${_d}/bin"
34        system "install -s -m 755 ${worksrcpath}/grc/grc ${_d}/bin"
35        system "install -s -m 755 ${worksrcpath}/ld65/ld65 ${_d}/bin"
36        system "install -m 644 ${worksrcpath}/../libsrc/*.{o,lib} ${_d}/lib/cc65/lib"
37        system "install -m 644 ${worksrcpath}/../include/*.h ${_d}/lib/cc65/include"
38        system "install -m 644 ${worksrcpath}/../include/geos/*.h ${_d}/lib/cc65/include/geos"
39}
Note: See TracBrowser for help on using the repository browser.