Ticket #10649: Portfile

File Portfile, 1.6 KB (added by aschenke@…, 18 years ago)

Portfile for Rogue 5.4.2

Line 
1# $Id: $
2
3PortSystem       1.0
4name                 rogue
5version              5.4.2
6revision             0
7categories           games
8maintainers          darwinports@opendarwin.org
9description          Rogue is a popular dungeon exploring adventure game
10long_description Rogue is a popular dungeon exploring adventure game. It is the one of the earliest \
11                 "dungeon crawl" games (early 1980s), and is an ancestor of games like Diablo. Version \
12                 5.4 is the last iteration of the original Rogue by Toy, Arnold, and Wichman developed \
13                 for Unix.
14homepage         http://rogue.rogueforge.net/
15master_sites     sourceforge
16master_sites.mirror_subdir  roguelike
17checksums            md5 bd656cb017a579eba835a0ee445a0a32
18distname         rogue${version}-src
19worksrcdir       
20
21depends_lib      port:ncurses
22
23configure        {
24                   reinplace "s|CFLAGS= \$(COPTS) \$(ROPTS)|CFLAGS= \$(COPTS) \$(ROPTS) \
25                    -I${prefix}/include -L${prefix}/lib|" ${worksrcpath}/Makefile
26                   
27                   reinplace "s|-DALLSCORES -DSCOREFILE||" ${worksrcpath}/Makefile
28                   
29                   reinplace "s|/usr/games/rogue|rogue|" ${worksrcpath}/rogue.6
30                   reinplace "s|/usr/games/lib/||" ${worksrcpath}/rogue.6                   
31                 }
32
33build.target     
34build.cmd        { make }
35
36destroot         {
37                    cd ${worksrcpath}
38                    xinstall -m 755 -c rogue54 ${destroot}${prefix}/bin/rogue
39                    xinstall -m 644 -c rogue.6 ${destroot}${prefix}/share/man/man6/
40                 }