summaryrefslogtreecommitdiffstats
path: root/polish/fortunepl/Makefile
blob: 22671b5d5d6dcca23aa881e4b527b78f9dbb3a13 (plain)
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
58
59
60
61
62
63
64
65
66
# New ports collection makefile for:   fortunepl
# Date created:        13-01-2005
# Whom:                Aleksander Fafula <alex@bsdguru.org>
#
# $FreeBSD$
#

PORTNAME=	fortunepl
PORTVERSION=	0.0.20050220
CATEGORIES=	polish
MASTER_SITES=	ftp://ftp.debian.org/debian/pool/main/f/fortunes-pl/ \
		http://www.bsdguru.org/fortunes/20050320/
DISTNAME=	fortunes-pl_${PORTVERSION}.orig

PATCH_SITES=	http://bsdguru.org/fortunes/20050320/
PATCHFILES=	freebsd.pl filozofia

MAINTAINER=	alex@bsdguru.org
COMMENT=	A lot of funny Polish fortune files

STRCMD=		/usr/games/strfile
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 puchatek radio_maryja rywingate sad sapkowski \
		seneka sigpl sigvirus slownik spolem sport stachura \
		teleturnieje testnaosobowosc wierszyki wieza-pilot zen \
		znaki_zodiaku

pre-everything::
.if !exists(${STRCMD})
IGNORE=		need strfile command. Please install games distribution of base system
.endif

do-patch:
.for extras in ${PATCHFILES}
	@${CP} ${DISTDIR}/${extras} ${WRKSRC}/
.endfor

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

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

post-install:
	@${ECHO_MSG} ""
	@${ECHO_MSG} "Usage:"
	@${ECHO_MSG} "/usr/games/fortune ${PREFIX}/share/games/fortune/pl/<category>"
	@${ECHO_MSG} ""

.include <bsd.port.mk>
OpenPOWER on IntegriCloud