1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00

add new port: games/f1lt

F1LT is a free unofficial Formula 1 live timing application written for
Windows, Linux, Symbian and Android systems. It is an alternative
application to the java applet available on the formula1.com site.
To use the application you only need an account on the formula1.com
site, the same you are using for connecting to Live Timing from formula1.com.

Feature list is too long to list here, but please check WWW address for more!

WWW: http://f1lt.pl/

Just in time for Malaysia!
This commit is contained in:
Jason Helfman 2013-03-23 21:53:58 +00:00
parent 50ce31c636
commit 145eab8d13
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=315082
5 changed files with 100 additions and 0 deletions

View File

@ -235,6 +235,7 @@
SUBDIR += exmars
SUBDIR += exult
SUBDIR += ezquake
SUBDIR += f1lt
SUBDIR += f1spirit-remake
SUBDIR += fairymax
SUBDIR += falconseye

59
games/f1lt/Makefile Normal file
View File

@ -0,0 +1,59 @@
# Created by: Jason Helfman <jgh@FreeBSD.org>
# $FreeBSD$
PORTNAME= f1lt
PORTVERSION= 2.0.0
CATEGORIES= games
MASTER_SITES= GOOGLE_CODE
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= jgh@FreeBSD.org
COMMENT= Unofficial Formula 1 live timing application
LICENSE= GPLv3
OPTIONS_DEFINE= DOCS
USE_QT4= gui network moc_build qmake_build rcc_build uic_build
WRKSRC= ${PORTNAME}-${PORTVERSION}
HAS_CONFIGURE= yes
USE_GMAKE= yes
PLIST_FILES= bin/F1LT \
share/F1LT/season.dat \
share/F1LT/trackdata.dat \
share/F1LT/trackrecords.dat
PLIST_DIRSTRY= share/F1LT
PORTDOCS= CHANGELOG
.include <bsd.port.pre.mk>
post-patch-script:
@${REINPLACE_CMD} -e 's|PREFIX = /opt|PREFIX = /usr/local|g' \
${WRKSRC}/F1LT.pro
@${REINPLACE_CMD} -e 's|$$PREFIX/share/|$$PREFIX/share/$$$$TARGET/|g' \
${WRKSRC}/F1LT.pro
@${REINPLACE_CMD} -e 's|PREFIX = /usr/local/$$$$TARGET|PREFIX = /usr/local/|g' \
${WRKSRC}/F1LT.pro
@${REINPLACE_CMD} -e 's|target.path = $$PREFIX/bin/|target.path = /usr/local/bin/|g' \
${WRKSRC}/F1LT.pro
.if ${ARCH} == "i386"
@${REINPLACE_CMD} -e 's|999999999998|1000000|g' \
${WRKSRC}/src/tools/laptimecomparisondialog.cpp
.endif
.include <bsd.port.options.mk>
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${QMAKE} ${QMAKEFLAGS} PREFIX=${PREFIX} F1LT.pro
post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR}
.endif
@${CHMOD} 0664 ${PREFIX}/share/F1LT/trackrecords.dat
.include <bsd.port.post.mk>

2
games/f1lt/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (f1lt-2.0.0-src.tar.gz) = cb2c61cacc5d7b0b75bd3796d7f27eedf210fab2579daf22c0a80cd2c60ee277
SIZE (f1lt-2.0.0-src.tar.gz) = 11826566

View File

@ -0,0 +1,29 @@
--- ./src/core/f1ltcore.h.orig 2013-03-22 16:57:29.000000000 -0700
+++ ./src/core/f1ltcore.h 2013-03-22 16:59:40.000000000 -0700
@@ -74,7 +74,7 @@
QString prefix = STR(INSTALL_PREFIX);
QDir dir;
if (dir.exists(prefix))
- return prefix + "/share/season.dat";
+ return prefix + "/share/F1LT/season.dat";
else
return programHomeDir() + "/season.dat";
#endif
@@ -88,7 +88,7 @@
QString prefix = STR(INSTALL_PREFIX);
QDir dir;
if (dir.exists(prefix))
- return prefix + "/share/trackdata.dat";
+ return prefix + "/share/F1LT/trackdata.dat";
else
return programHomeDir() + "/trackdata.dat";
#endif
@@ -102,7 +102,7 @@
QString prefix = STR(INSTALL_PREFIX);
QDir dir;
if (dir.exists(prefix))
- return prefix + "/share/trackrecords.dat";
+ return prefix + "/share/F1LT/trackrecords.dat";
else
return programHomeDir() + "/trackrecords.dat";
#endif

9
games/f1lt/pkg-descr Normal file
View File

@ -0,0 +1,9 @@
F1LT is a free unofficial Formula 1 live timing application written for
Windows, Linux, Symbian and Android systems. It is an alternative
application to the java applet available on the formula1.com site.
To use the application you only need an account on the formula1.com
site, the same you are using for connecting to Live Timing from formula1.com.
Feature list is too long to list here, but please check WWW address for more!
WWW: http://f1lt.pl/