source: trunk/dports/emulators/gxemul/Portfile

Last change on this file was 68027, checked in by jmr@…, 7 years ago

New port: gxemul, a simulator for ARM, MIPS, Motorola 88K, PowerPC, and SuperH (#23045)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 68027 2010-05-25 00:58:55Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            gxemul
6version         0.4.7.2
7categories      emulators
8platforms       darwin
9maintainers     me.com:tsupplis
10description     A simulator for ARM, MIPS, Motorola 88K, PowerPC, and SuperH.
11long_description        \
12GXemul is a framework for full-system computer architecture emulation. \
13Several real machines have been implemented within the framework, \
14consisting of processors (ARM, MIPS, Motorola 88K, PowerPC, and SuperH) \
15and surrounding hardware components such as framebuffers, interrupt \
16controllers, busses, disk controllers, and serial controllers.
17
18homepage        http://gxemul.sourceforge.net/
19master_sites    ${homepage}src/
20
21checksums       md5       a2ec4f58a831dd883c196c4fd362b702         \
22                sha1      63a20b810ef4ea9d7ec4678f135470fb324f61f1 \
23                rmd160    a54fb4f1ecf567ff9f62e8b1541018b38dea1e1a
24
25depends_build   port:pkgconfig
26depends_lib     port:xorg-libX11
27
28configure.pre_args
29configure.universal_args
30
31# force usage of port libraries
32post-configure {
33        set x11_cflags [exec ${prefix}/bin/pkg-config --cflags-only-I x11]
34        set x11_ldflags [exec ${prefix}/bin/pkg-config --libs x11]
35        set makefiles [exec find ${worksrcpath} -name Makefile]
36        foreach makefile $makefiles {
37            reinplace "s|XLIB=.*$|XLIB=${x11_ldflags}|g" ${makefile}
38            reinplace "s|XINCLUDE=.*$|XINCLUDE=${x11_cflags}|g" ${makefile}
39        }
40}
41
42# no default install in the makefile
43destroot {
44        xinstall -c -m 755 ${worksrcpath}/gxemul ${destroot}${prefix}/bin
45        xinstall -c -m 644 ${worksrcpath}/man/gxemul.1 ${destroot}${prefix}/share/man/man1
46}
Note: See TracBrowser for help on using the repository browser.