aboutsummaryrefslogtreecommitdiffstats
path: root/polish/fortunepl/Makefile
blob: 8a6c91178a707b57af0a83234d3dcd37fd2eb023 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Created by: Aleksander Fafula <alex@bsdguru.org>
# $FreeBSD$

PORTNAME=   fortunepl
PORTVERSION=    0.0.20051022
CATEGORIES= polish
MASTER_SITES=   http://www.bsdguru.org/fortunes/
DISTNAME=   fortunes-pl_${PORTVERSION}.orig

PATCH_SITES=    http://bsdguru.org/fortunes/
PATCHFILES= fortunes-pl_${PORTVERSION}.freebsd.pl \
        fortunes-pl_${PORTVERSION}.filozofia

MAINTAINER= ports@FreeBSD.org
COMMENT=    Lot of funny Polish fortune files

BROKEN=     unfetchable

.if exists(/usr/games/strfile)
STRCMD=     /usr/games/strfile
.elif exists(/usr/bin/strfile)
STRCMD=     /usr/bin/strfile
.else
IGNORE=     needs strfile command. Please install games distribution of base system
.endif
WRKSRC=     ${WRKDIR}/fortunes-pl-${PORTVERSION}.orig

FORTUNES=   7thguard advocacy apcoh argante bajki bok cnp cows \
        dowcipy dowcipy-feministyczne dowcipy-lepper dowcipy-naukowcy \
        dowcipy-niskopoziomowe dowcipy-szowinistyczne dwimc dzieci \
        filozofia freebsd.pl gra_polslowek haiku http icpusers imiona \
        ipv6.pl komputery konikbujany koscielne lcamtuf life matura \
        microsoft milosc misc nauka ospl ospl-ad perl polish_manpages \
        pratchett psy1 puchatek radio_maryja rywingate sad sapkowski \
        seneka sigpl sigvirus slownik spolem sport stachura stirlitz \
        teleturnieje testnaosobowosc wierszyki wieza-pilot zen \
        znaki_zodiaku

do-patch:
    ${CP} ${DISTDIR}/fortunes-pl_${PORTVERSION}.freebsd.pl ${WRKSRC}/freebsd.pl
    ${CP} ${DISTDIR}/fortunes-pl_${PORTVERSION}.filozofia ${WRKSRC}/filozofia

do-build:
.for FILE in ${FORTUNES}
    @${STRCMD} ${WRKSRC}/${FILE}
.endfor

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune/pl
.for FILE in ${FORTUNES}
    ${INSTALL_DATA} ${WRKSRC}/${FILE} \
        ${STAGEDIR}${PREFIX}/share/games/fortune/pl
    ${INSTALL_DATA} ${WRKSRC}/${FILE}.dat \
        ${STAGEDIR}${PREFIX}/share/games/fortune/pl
.endfor

.include <bsd.port.mk>