diff options
Diffstat (limited to 'games/typespeed/Makefile')
-rw-r--r-- | games/typespeed/Makefile | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/games/typespeed/Makefile b/games/typespeed/Makefile index 22794da72ac2..986fb6f45999 100644 --- a/games/typespeed/Makefile +++ b/games/typespeed/Makefile @@ -6,14 +6,15 @@ # PORTNAME= typespeed -PORTVERSION= 0.6.4 +PORTVERSION= 0.6.5 CATEGORIES= games -MASTER_SITES= http://tobias.eyedacor.org/typespeed/ \ - CRITICAL +MASTER_SITES= SF \ + http://tobias.eyedacor.org/typespeed/ MAINTAINER= ports@FreeBSD.org COMMENT= Test your typing speed, and get your fingers\' CPS +USE_GNOME= gnometarget GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-highscoredir="/var/games/typespeed" @@ -28,6 +29,14 @@ 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 @@ -44,6 +53,13 @@ do-install: ${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 |