source: trunk/dports/net/mudix/Portfile @ 53089

Last change on this file since 53089 was 53089, checked in by toby@…, 11 years ago

poll works for me on snow leopard

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 53089 2009-06-29 05:56:38Z toby@macports.org $
2
3PortSystem 1.0
4
5name                    mudix
6version                 4.3
7revision                6
8categories              net games
9platforms               darwin
10maintainers             nomaintainer
11
12description             ncurses-based MUD client with triggers, aliases, colors
13long_description        ncurses-based MUD client, targeted at people that dislike \
14                        tintin++, tinyfugue, and don't want to use an X11 MUD client.
15
16homepage                http://dw.nl.eu.org/mudix.html
17master_sites            http://dw.nl.eu.org/mudix/ \
18                        http://freebsd.unixfreunde.de/sources/ \
19                        http://mirror2.unixfreunde.de/
20checksums               sha1 bb69638c034e18825016ff37d1b32b974ade14ae \
21                        rmd160 db7f157e54765bcbfdd44628d8df218b3f7830a4
22
23depends_lib             port:ncursesw
24
25livecheck.url     "http://www.freebsd.org/cgi/ports.cgi?query=${name}&stype=all"
26livecheck.regex   ">${name}-(.*?)<"
27
28pre-configure {
29    foreach cfile [glob ${worksrcpath}/src/*.c] {
30        reinplace "s|<ncurses.h>|<ncurses/ncurses.h>|" ${cfile}
31    }
32    # modify the Makefile.in for ncurses
33    reinplace "s|-I../include|-I../include -I${prefix}/include|" \
34        ${worksrcpath}/src/Makefile.in
35    reinplace "s| -lpanel|-L${prefix}/lib -lpanel|" \
36        ${worksrcpath}/src/Makefile.in
37}
38configure.args          --enable-select
39
40platform darwin 10 {
41        # poll works
42        configure.args-delete --enable-select
43}
44
45destroot {
46    xinstall -m 555 -W ${worksrcpath} mudix ${destroot}${prefix}/bin
47    xinstall -m 755 -d ${destroot}${prefix}/share/${name}
48    xinstall -m 644 sample.usr README ${destroot}${prefix}/share/${name}
49}
Note: See TracBrowser for help on using the repository browser.