2013-09-20 18:30:00 +00:00
# Created by: Heiner <h.eichmann@gmx.de>
2008-02-21 11:51:10 +00:00
# $FreeBSD$
PORTNAME = tipp10
2011-09-01 10:09:47 +00:00
PORTVERSION = 2.1.0
2012-06-01 05:26:28 +00:00
PORTREVISION = 1
2008-02-21 11:51:10 +00:00
CATEGORIES = german
2011-09-01 10:09:47 +00:00
MASTER_SITES = http://www.tipp10.com/en/download/
DISTNAME = tipp10_source_v2-1-0
2008-02-21 11:51:10 +00:00
2011-01-11 13:53:33 +00:00
MAINTAINER = ports@FreeBSD.org
2013-10-13 13:03:03 +00:00
COMMENT = 10-finger touch typing learning program
2008-02-21 11:51:10 +00:00
2011-09-01 10:09:47 +00:00
LICENSE = GPLv2
LICENSE_FILE = ${ WRKSRC } /license_en.txt
2011-08-02 13:47:46 +00:00
2013-10-13 13:03:03 +00:00
USES = qmake
USE_DOS2UNIX = *.pro *.cpp
2008-02-21 11:51:10 +00:00
USE_ZIP = yes
2012-06-06 06:44:37 +00:00
USE_QT4 = gui sql corelib network script qtestlib \
2013-10-13 13:03:03 +00:00
qmake_build rcc_build uic_build moc_build \
sql-sqlite2_run sql-sqlite3_run
QMAKE_ARGS += DATADIR = " ${ DATADIR } "
2011-09-01 10:09:47 +00:00
WRKSRC = ${ WRKDIR } /tipp10_source_v2-1-0
2008-02-21 11:51:10 +00:00
2011-09-01 10:09:47 +00:00
pre-configure :
2008-02-21 11:51:10 +00:00
@cd ${ WRKSRC } \
2011-09-01 10:09:47 +00:00
&& for i in ` grep -lR 'QCoreApplication::applicationDirPath()' *` ; do ${ REINPLACE_CMD } -e 's/QCoreApplication::applicationDirPath()/QString(DATADIR)/g' $$ i ; done
2008-02-21 11:51:10 +00:00
2011-09-01 10:09:47 +00:00
do-install :
2013-10-13 13:03:03 +00:00
${ INSTALL_PROGRAM } ${ WRKSRC } /tipp10 ${ STAGEDIR } ${ PREFIX } /bin
${ INSTALL_DATA } -d ${ STAGEDIR } ${ DATADIR } /help/de/img
${ INSTALL_DATA } -d ${ STAGEDIR } ${ DATADIR } /help/de/content
${ INSTALL_DATA } -d ${ STAGEDIR } ${ DATADIR } /help/en/img
${ INSTALL_DATA } -d ${ STAGEDIR } ${ DATADIR } /help/en/content
${ INSTALL_DATA } ${ WRKSRC } /release/tipp10v2.template ${ WRKSRC } /metronome.wav ${ WRKSRC } /error.wav ${ STAGEDIR } ${ DATADIR }
${ INSTALL_DATA } ${ WRKSRC } /release/help/de/index.html ${ STAGEDIR } ${ DATADIR } /help/de
${ INSTALL_DATA } ${ WRKSRC } /release/help/de/content/* ${ STAGEDIR } ${ DATADIR } /help/de/content
${ INSTALL_DATA } ${ WRKSRC } /release/help/de/img/* ${ STAGEDIR } ${ DATADIR } /help/de/img
${ INSTALL_DATA } ${ WRKSRC } /release/help/en/index.html ${ STAGEDIR } ${ DATADIR } /help/en
${ INSTALL_DATA } ${ WRKSRC } /release/help/en/content/* ${ STAGEDIR } ${ DATADIR } /help/en/content
${ INSTALL_DATA } ${ WRKSRC } /release/help/en/img/* ${ STAGEDIR } ${ DATADIR } /help/en/img
2008-02-21 11:51:10 +00:00
. i n c l u d e < b s d . p o r t . m k >