description A simulator for ARM, MIPS, Motorola 88K, PowerPC, and SuperH.
GXemul is a framework for full-system computer architecture emulation. \
Several real machines have been implemented within the framework, \
consisting of processors (ARM, MIPS, Motorola 88K, PowerPC, and SuperH) \
and surrounding hardware components such as framebuffers, interrupt \
controllers, busses, disk controllers, and serial controllers.
homepage http://gxemul.sourceforge.net/
master_sites ${homepage}src/
checksums md5 a2ec4f58a831dd883c196c4fd362b702 \
sha1 63a20b810ef4ea9d7ec4678f135470fb324f61f1 \
rmd160 a54fb4f1ecf567ff9f62e8b1541018b38dea1e1a
depends_build port:pkgconfig
depends_lib port:xorg-libX11
# force usage of port libraries
set x11_cflags [exec ${prefix}/bin/pkg-config --cflags-only-I x11]
set x11_ldflags [exec ${prefix}/bin/pkg-config --libs x11]
set makefiles [exec find ${worksrcpath} -name Makefile]
foreach makefile $makefiles {
reinplace "s|XLIB=.*$|XLIB=${x11_ldflags}|g" ${makefile}
reinplace "s|XINCLUDE=.*$|XINCLUDE=${x11_cflags}|g" ${makefile}
# no default install in the makefile
xinstall -c -m 755 ${worksrcpath}/gxemul ${destroot}${prefix}/bin
xinstall -c -m 644 ${worksrcpath}/man/gxemul.1 ${destroot}${prefix}/share/man/man1