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

Last change on this file since 81385 was 81385, checked in by jmr@…, 6 years ago

fortune: installs_libs no

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Portfile 81385 2011-07-30 01:44:06Z jmr@macports.org $
2
3PortSystem 1.0
4
5name                    fortune
6version                 6.2.0-RELEASE
7categories              games
8license                 BSD
9installs_libs   no
10maintainers             nomaintainer
11description             Infamous electronic fortune-cookie generator
12long_description        ${description}
13platforms               darwin freebsd
14homepage                http://www.freebsd.org/
15use_bzip2               yes
16
17master_sites    macports
18
19checksums               md5 6185fe31e512e8b23ac5cc58ede27919
20
21extract.only    ${name}-${version}.tar.bz2
22worksrcdir              ${name}
23dist_subdir             ${name}
24
25patchfiles      \
26                patch-fortune-Makefile patch-strfile-Makefile \
27                patch-unstr-Makefile patch-datfiles-Makefile \
28                patch-strfile.h
29
30configure {
31        reinplace "s|/usr|${prefix}|" ${worksrcpath}/fortune/pathnames.h
32        reinplace "s|/usr/share|${prefix}/share|" ${worksrcpath}/fortune/fortune.6
33        reinplace "s|/usr/games/fortune|${prefix}/bin/fortune|" ${worksrcpath}/fortune/fortune.6
34        reinplace "s|XXPREFIX|${prefix}|" ${worksrcpath}/fortune/Makefile
35}
36
37build.type              bsd
38
39set datfiles "fortunes fortunes.dat fortunes-o fortunes-o.dat \
40                fortunes2-o fortunes2-o.dat limerick \
41                limerick.dat murphy murphy.dat murphy-o murphy-o.dat \
42                startrek startrek.dat zippy zippy.dat"
43
44destroot {
45        xinstall -m 755 -d ${destroot}${prefix}/share/games/fortune
46        xinstall -m 755 ${worksrcpath}/fortune/fortune \
47                ${worksrcpath}/strfile/strfile ${worksrcpath}/unstr/unstr \
48                ${destroot}${prefix}/bin
49        xinstall -m 644 ${worksrcpath}/fortune/fortune.6.gz \
50                ${destroot}${prefix}/share/man/man6
51        xinstall -m 644 ${worksrcpath}/strfile/strfile.8.gz \
52                ${destroot}${prefix}/share/man/man8
53        xinstall -m 644 ${worksrcpath}/strfile/strfile.8.gz \
54                ${destroot}${prefix}/share/man/man8/unstr.8.gz
55       
56        foreach datfile $datfiles {
57                file copy ${worksrcpath}/datfiles/${datfile} \
58                        ${destroot}${prefix}/share/games/fortune
59        }
60}
61
62platform darwin {
63        patchfiles-append patch-fortune.c patch-strfile.c patch-unstr.c
64}
65
66variant universal {
67        build.env-append        CFLAGS="${configure.universal_cppflags} ${configure.universal_cflags} ${configure.universal_ldflags}"
68}
Note: See TracBrowser for help on using the repository browser.