blob: 8ce27666f0cde8d335059f596cda23727c9406ae (
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
58
59
60
61
62
63
64
65
66
|
# New ports collection makefile for: typespeed
# Date created: 06 September 2003
# Whom: refugee
#
# $FreeBSD$
#
PORTNAME= typespeed
PORTVERSION= 0.6.5
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Test your typing speed and get your fingers\' CPS
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-highscoredir="/var/games/typespeed"
SCOREPREFIX?= /var/games
SCOREDIR= ${SCOREPREFIX}/typespeed
SCOREFILE= typespeed.score
CFLAGS+= -I${LOCALBASE}/include -DWITH_HIGHSCOREDIR=\"${SCOREDIR}\" \
-DHIGHDIR=\"${SCOREDIR}\" -DHIGHSCOREDIR=\"${SCOREDIR}\"
SUB_FILES= pkg-install pkg-deinstall
SUB_LIST= SCOREDIR="${SCOREDIR}" SCOREFILE="${SCOREFILE}" WRKSRC="${WRKSRC}"
MAN1= typespeed.1
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
post-patch:
@${REINPLACE_CMD} -e 's|\(/etc\)|${PREFIX}\1|' \
${WRKSRC}/src/pathnames.h
do-install:
${INSTALL_PROGRAM} -g games -m 2555 ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src/convert ${PREFIX}/bin/${PORTNAME}-hs-conv
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.6 ${MANPREFIX}/man/man1/${MAN1}
${INSTALL_DATA} ${WRKSRC}/etc/typespeedrc ${PREFIX}/etc/typespeedrc.dist
.if !exists(${PREFIX}/etc/typespeedrc)
${INSTALL_DATA} ${WRKSRC}/etc/typespeedrc ${PREFIX}/etc
.endif
${MKDIR} ${DATADIR}
${MKDIR} ${DATADIR}/words
${FIND} ${WRKSRC}/words/ -name "words.*" -type f \
-exec ${INSTALL_DATA} {} ${DATADIR}/words \;
.if !defined(WITHOUT_NLS)
.for i in de_DE fr_FR it
${MKDIR} ${PREFIX}/share/locale/${i}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${i}.gmo \
${PREFIX}/share/locale/${i}/LC_MESSAGES/typespeed.mo
.endfor
.endif
post-install:
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
|