svn commit: r315082 - in head/games: . f1lt f1lt/files
Jason Helfman
jgh at FreeBSD.org
Sat Mar 23 21:53:59 UTC 2013
Author: jgh
Date: Sat Mar 23 21:53:58 2013
New Revision: 315082
URL: http://svnweb.freebsd.org/changeset/ports/315082
Log:
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!
Added:
head/games/f1lt/
head/games/f1lt/Makefile (contents, props changed)
head/games/f1lt/distinfo (contents, props changed)
head/games/f1lt/files/
head/games/f1lt/files/patch-src__core__f1ltcore.h (contents, props changed)
head/games/f1lt/pkg-descr (contents, props changed)
Modified:
head/games/Makefile
Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile Sat Mar 23 21:28:12 2013 (r315081)
+++ head/games/Makefile Sat Mar 23 21:53:58 2013 (r315082)
@@ -235,6 +235,7 @@
SUBDIR += exmars
SUBDIR += exult
SUBDIR += ezquake
+ SUBDIR += f1lt
SUBDIR += f1spirit-remake
SUBDIR += fairymax
SUBDIR += falconseye
Added: head/games/f1lt/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/f1lt/Makefile Sat Mar 23 21:53:58 2013 (r315082)
@@ -0,0 +1,59 @@
+# Created by: Jason Helfman <jgh at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= f1lt
+PORTVERSION= 2.0.0
+CATEGORIES= games
+MASTER_SITES= GOOGLE_CODE
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+
+MAINTAINER= jgh at 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>
Added: head/games/f1lt/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/f1lt/distinfo Sat Mar 23 21:53:58 2013 (r315082)
@@ -0,0 +1,2 @@
+SHA256 (f1lt-2.0.0-src.tar.gz) = cb2c61cacc5d7b0b75bd3796d7f27eedf210fab2579daf22c0a80cd2c60ee277
+SIZE (f1lt-2.0.0-src.tar.gz) = 11826566
Added: head/games/f1lt/files/patch-src__core__f1ltcore.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/f1lt/files/patch-src__core__f1ltcore.h Sat Mar 23 21:53:58 2013 (r315082)
@@ -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
Added: head/games/f1lt/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/f1lt/pkg-descr Sat Mar 23 21:53:58 2013 (r315082)
@@ -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/
More information about the svn-ports-head
mailing list