source: trunk/dports/emulators/dosbox/Portfile

Last change on this file was 127118, checked in by ryandesign@…, 3 years ago

dosbox: fix build with clang (#40789, #45535)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 127118 2014-10-21 16:29:37Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                dosbox
7version             0.74
8revision            6
9categories          emulators
10platforms           darwin
11license             GPL-2+
12maintainers         slor.net:james openmaintainer
13
14description         DOS emulator featuring 386 realmode, filesystem, XMS, EMS
15
16long_description    DOSBox is a DOS emulator supporting 286/386 realmode, directory \
17                    file system, XMS/EMS and many sound cards. \
18                    It can be configured to run a wide range of DOS games, from \
19                    CGA/Tandy/PCjr classics up to games from the Quake era.
20
21homepage            http://dosbox.sourceforge.net/
22master_sites        sourceforge:project/dosbox/dosbox/${version}
23
24checksums           sha1    2d99f0013350efb29b769ff19ddc8e4d86f4e77e \
25                    rmd160  4534d87206de8401cd0de471d8172726f2c6b788
26
27depends_lib         port:libsdl \
28                    port:libsdl_net \
29                    port:libsdl_sound \
30                    port:libpng
31
32post-extract {
33    move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
34}
35
36# src__cpu__core_dynrec__risc_x64.h.diff: http://www.freebsd.org/cgi/query-pr.cgi?pr=164243
37patchfiles          3689.diff 3694.diff 3776.diff 3777.diff \
38                    patch-src-fpu-fpu_instructions_x86.h.diff \
39                    src__cpu__core_dynrec__risc_x64.h.diff
40
41# Assembly language issues
42universal_variant no
43
44use_autoreconf      yes
45autoreconf.args     -fvi
46
47configure.args      --disable-sdltest \
48                    --disable-alsatest
49configure.cxxflags-append   -mdynamic-no-pic
50
51post-destroot {
52    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
53    xinstall -W ${worksrcpath} \
54        README \
55        AUTHORS \
56        COPYING \
57        ChangeLog \
58        INSTALL \
59        THANKS \
60        ${destroot}${prefix}/share/doc/${name}
61}
62
63# The 64-bit build is broken in 0.74 ("core dynamic" crashes), but even if that
64# is fixed, the 64-bit build is much slower.
65supported_archs     i386 ppc
66
67platform darwin {
68    configure.args-append --build=${configure.build_arch}-apple-darwin${os.major}
69}
70
71variant debug description {Enable debug mode} {
72    depends_lib-append port:ncurses
73    patchfiles-append patch-configure.ac.diff
74    configure.args-append --enable-debug
75    configure.cppflags-append -I${prefix}/include/ncurses
76}
Note: See TracBrowser for help on using the repository browser.