1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name gxemul |
---|
6 | version 0.4.7.2 |
---|
7 | revision 0 |
---|
8 | categories emulators |
---|
9 | platforms darwin |
---|
10 | maintainers me.com:tsupplis |
---|
11 | description A simulator for ARM, MIPS, Motorola 88K, PowerPC, and SuperH. |
---|
12 | long_description \ |
---|
13 | GXemul is a framework for full-system computer architecture emulation. \ |
---|
14 | Several real machines have been implemented within the framework, \ |
---|
15 | consisting of processors (ARM, MIPS, Motorola 88K, PowerPC, and SuperH) \ |
---|
16 | and surrounding hardware components such as framebuffers, interrupt \ |
---|
17 | controllers, busses, disk controllers, and serial controllers. |
---|
18 | |
---|
19 | homepage http://gxemul.sourceforge.net |
---|
20 | master_sites http://gxemul.sourceforge.net/src/ |
---|
21 | |
---|
22 | checksums md5 a2ec4f58a831dd883c196c4fd362b702 \ |
---|
23 | sha1 63a20b810ef4ea9d7ec4678f135470fb324f61f1 \ |
---|
24 | rmd160 a54fb4f1ecf567ff9f62e8b1541018b38dea1e1a |
---|
25 | |
---|
26 | distname ${name}-${version} |
---|
27 | worksrcdir ${name}-${version} |
---|
28 | |
---|
29 | # We cannot use configure as the configure provided is a custom script |
---|
30 | use_configure no |
---|
31 | |
---|
32 | |
---|
33 | # force usage of port libraries |
---|
34 | pre-build { |
---|
35 | system "cd ${worksrcpath} && ./configure" |
---|
36 | set x11_cflags [exec ${prefix}/bin/pkg-config --cflags-only-I x11] |
---|
37 | set x11_ldflags [exec ${prefix}/bin/pkg-config --libs x11] |
---|
38 | set makefiles [exec find ${worksrcpath} -name Makefile] |
---|
39 | foreach makefile $makefiles { |
---|
40 | reinplace "s|XLIB=.*$|XLIB=${x11_ldflags}|g" ${makefile} |
---|
41 | reinplace "s|XINCLUDE=.*$|XINCLUDE=${x11_cflags}|g" ${makefile} |
---|
42 | } |
---|
43 | } |
---|
44 | |
---|
45 | depends_build port:pkgconfig |
---|
46 | depends_lib port:xorg-libX11 |
---|
47 | |
---|
48 | build { |
---|
49 | system "cd ${worksrcpath} && make all" |
---|
50 | } |
---|
51 | |
---|
52 | # no default install in the makefile |
---|
53 | destroot { |
---|
54 | xinstall -c -m 755 ${worksrcpath}/gxemul ${destroot}${prefix}/bin |
---|
55 | xinstall -c -m 644 ${worksrcpath}/man/gxemul.1 ${destroot}${prefix}/share/man/man1 |
---|
56 | } |
---|
57 | |
---|