source: trunk/dports/games/fortune/Portfile @ 11120

Last change on this file since 11120 was 11120, checked in by mww, 15 years ago

kill nonsense categories and make fortune incl. all cookies by default;
also do 'some' spring-cleaning.. (still a bit messy)

  • Property svn:eol-style set to native
File size: 5.0 KB
Line 
1# $Id: Portfile,v 1.21 2005/02/23 14:38:53 mww Exp $
2
3PortSystem 1.0
4
5name                    fortune
6version                 4.6.2-RELEASE
7revision                2
8categories              games
9maintainers             eric@opendarwin.org
10description             Infamous electronic fortune-cookie generator
11long_description        ${description}
12platforms               darwin
13use_bzip2               yes
14
15master_sites    \
16                opendarwin \
17                http://www.splitbrain.org/Fortunes/starwars/:starwars \
18                http://dune.s31.pl/:dune \
19                http://www.splitbrain.org/Fortunes/hitchhiker/:hitchhiker \
20                http://www.splitbrain.org/Fortunes/fgump/:fgump \
21                http://www.splitbrain.org/Fortunes/xfiles/:xfiles \
22                http://www.netmeister.org/apps/:netmeister \
23                http://www.cs.indiana.edu/~crcarter/homer/:homer \
24                http://www.splitbrain.org/Fortunes/simpsons/:chalkboard
25
26distfiles       \
27                ${distname}${extract.suffix} \
28                fortune-starwars.tgz:starwars \
29                fortune-mod-dune-quotes.2.0.1.tar.gz:dune \
30                fortune-hitchhiker.tgz:hitchhiker \
31                fortune-fgump.tgz:fgump \
32                fortune-xfiles.tgz:xfiles \
33                fortune-mod-futurama-0.2.tar.gz:netmeister \
34                fortune-mod-calvin-0.1.1.tar.gz:netmeister \
35                homer-quotes.tar.gz:homer
36
37checksums       \
38                ${distname}${extract.suffix} md5 99166e1c47d4b60c865a31d59d359b16 \
39                fortune-starwars.tgz md5 2f4443470a5d7bcb7c5efde501f8e6f5 \
40                fortune-mod-futurama-0.2.tar.gz md5 6fd2cfa2fd8285ff5aabb5e1236107bf \
41                fortune-mod-dune-quotes.2.0.1.tar.gz md5 5821793a7754ca07a18c5c08656b7371 \
42                fortune-fgump.tgz md5 d9d8e6ba103898e2fe6736378d352398 \
43                fortune-mod-calvin-0.1.1.tar.gz md5 e0dc2036b731aafdee4989e9d1d8ec2a \
44                homer-quotes.tar.gz md5 ca7ed106f5e828f826eea1d759e00fa0 \
45                ralph-quotes.tar.gz md5 9fcdffff609dc5524ee9999846a40bf0 \
46                cbg-quotes.tar.gz md5 6de1139cf55bb71758ba9e3a01f05354 \
47                fortune-simpsons-chalkboard.tgz md5 1602ec6df3336a7e01f857b8419c8df1 \
48                fortune-xfiles.tgz md5 dfbe17a0b0b78e5914d0838852becb7b \
49                fortune-hitchhiker.tgz md5 dc2860793725fce93445035b4aa8c812
50
51extract.only    ${name}-${version}.tar.bz2
52depends_lib             lib:libcompat.1:libcompat
53worksrcdir              ${name}
54
55patchfiles      \
56                patch-fortune-Makefile patch-strfile-Makefile \
57                patch-unstr-Makefile patch-datfiles-Makefile \
58                patch-fortune.c patch-strfile.c
59
60configure {
61        cd ${worksrcpath}/fortune
62        reinplace "s|/usr|${prefix}|" pathnames.h
63        reinplace "s|/usr/share|${prefix}/share|" fortune.6
64        reinplace "s|/usr/games/fortune|${prefix}/bin/fortune|" fortune.6
65        reinplace "s|XXPREFIX|${prefix}|" Makefile
66}
67
68build.type              bsd
69build.args              LDADD+=-L${prefix}/lib
70
71set datfiles "fortunes fortunes.dat fortunes-o fortunes-o.dat fortunes2 \
72                fortunes2.dat fortunes2-o fortunes2-o.dat limerick \
73                limerick.dat murphy murphy.dat murphy-o murphy-o.dat \
74                startrek startrek.dat zippy zippy.dat"
75set datfiles "${datfiles} chapterhouse-dune \
76                chapterhouse-dune.dat children-of-dune children-of-dune.dat \
77                dune dune.dat dune-messiah dune-messiah.dat god-emperor \
78                god-emperor.dat heretics-of-dune heretics-of-dune.dat \
79                house-atreides house-atreides.dat house-harkonnen house-harkonnen.dat"
80set datfiles "${datfiles} starwars starwars.dat"
81set datfiles "${datfiles} hitchhiker hitchhiker.dat"
82set datfiles "${datfiles} fgump fgump.dat"
83set datfiles "${datfiles} xfiles xfiles.dat"
84set datfiles "${datfiles} futurama futurama.dat"
85set datfiles "${datfiles} calvin calvin.dat"
86set datfiles "${datfiles} cbg cbg.dat homer homer.dat \
87                  ralph ralph.dat chalkboard chalkboard.dat"
88
89post-extract {
90        cd ${worksrcpath}
91        system "tar xfz ${distpath}/fortune-starwars.tgz"
92        system "cp fortune-starwars/* datfiles"
93        system "tar xfz ${distpath}/fortune-hitchhiker.tgz"
94        system "cp fortune-hitchhiker/* datfiles"
95        system "tar xfz ${distpath}/fortune-fgump.tgz"
96        system "cp fortune-fgump/* datfiles"
97        system "tar xfz ${distpath}/fortune-mod-dune-quotes.2.0.1.tar.gz"
98        system "cp fortune-mod-dune-quotes.2.0.1/* datfiles"
99        system "tar xfz ${distpath}/fortune-xfiles.tgz"
100        system "cp fortune-xfiles/* datfiles"
101        system "tar xfz ${distpath}/fortune-mod-futurama-0.2.tar.gz"
102        system "cp fortune-mod-futurama-0.2/* datfiles"
103        system "tar xfz ${distpath}/fortune-mod-calvin-0.1.1.tar.gz"
104        file copy fortune-mod-calvin-0.1.1/calvin datfiles
105        file copy fortune-mod-calvin-0.1.1/calvin.dat datfiles
106        system "tar xfz ${distpath}/homer-quotes.tar.gz"
107        system "cp fortune-homer/* datfiles"
108        system "tar xfz ${distpath}/ralph-quotes.tar.gz"
109        system "cp ralph ralph.dat datfiles"
110        system "tar xfz ${distpath}/cbg-quotes.tar.gz"
111        system "cp cbg cbg.dat datfiles"
112        system "tar xfz ${distpath}/fortune-simpsons-chalkboard.tgz"
113        system "cp fortune-simpsons-chalkboard/* datfiles"
114}
115
116destroot {
117        xinstall -m 755 -d ${destroot}${prefix}/share/games/fortune
118        xinstall -m 755 ${worksrcpath}/fortune/fortune \
119                ${worksrcpath}/strfile/strfile ${worksrcpath}/unstr/unstr \
120                ${destroot}${prefix}/bin
121        xinstall -m 644 ${worksrcpath}/fortune/fortune.6.gz \
122                ${destroot}${prefix}/share/man/man6
123        xinstall -m 644 ${worksrcpath}/strfile/strfile.8.gz \
124                ${destroot}${prefix}/share/man/man8
125        xinstall -m 644 ${worksrcpath}/strfile/strfile.8.gz \
126                ${destroot}${prefix}/share/man/man8/unstr.8.gz
127       
128        foreach datfile $datfiles {
129                file copy ${worksrcpath}/datfiles/${datfile} \
130                        ${destroot}/${prefix}/share/games/fortune
131        }
132}
Note: See TracBrowser for help on using the repository browser.