aboutsummaryrefslogtreecommitdiffstats
path: root/games/gtypist/Makefile
blob: b04f4d5b86cb9536ebbef982adf75d1ebc3d4b20 (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
# $FreeBSD$

PORTNAME=   gtypist
PORTVERSION=    2.9.5
CATEGORIES= games
MASTER_SITES=   GNU

MAINTAINER= naddy@FreeBSD.org
COMMENT=    Interactive typing tutor

LICENSE=    GPLv3

USES=       iconv ncurses shebangfix tar:xz
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  EMACS=no \
        ac_cv_header_ncursesw_ncurses_h=yes
CPPFLAGS+=  -I${LOCALBASE}/include -I${WRKDIR}/include
CPPFLAGS+=  -I${NCURSESINC}
LDFLAGS+=   -L${LOCALBASE}/libs

INFO=       gtypist gtypist.cs gtypist.es

SHEBANG_FILES=  typefortune

OPTIONS_DEFINE= NLS
OPTIONS_SUB=    yes

NLS_USES=   gettext
NLS_CONFIGURE_ENABLE=   nls

post-patch:
    ${REINPLACE_CMD} -e 's|<ncursesw/ncurses.h>|<ncurses.h>|' \
        ${WRKSRC}/src/error.c \
        ${WRKSRC}/src/cursmenu.c \
        ${WRKSRC}/src/script.c \
        ${WRKSRC}/src/gtypist.c \
        ${WRKSRC}/src/utf8.c

.include <bsd.port.mk>