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

Last change on this file since 89689 was 89689, checked in by ryandesign@…, 5 years ago

fortune: rearrange lines

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