2008-02-21 12:51:10 +01:00
# New ports collection makefile for: tipp10
# Date created: 2007-11-26
# Whom: Heiner <h.eichmann@gmx.de>
#
# $FreeBSD$
#
PORTNAME = tipp10
2011-09-01 12:09:47 +02:00
PORTVERSION = 2.1.0
2008-02-21 12:51:10 +01:00
CATEGORIES = german
2011-09-01 12:09:47 +02:00
MASTER_SITES = http://www.tipp10.com/en/download/
DISTNAME = tipp10_source_v2-1-0
2008-02-21 12:51:10 +01:00
2011-01-11 14:53:33 +01:00
MAINTAINER = ports@FreeBSD.org
2008-02-21 12:51:10 +01:00
COMMENT = A 10 finger touch typing learning program
2011-09-01 12:09:47 +02:00
LICENSE = GPLv2
LICENSE_FILE = ${ WRKSRC } /license_en.txt
2011-08-02 15:47:46 +02:00
2008-08-05 01:33:44 +02:00
RUN_DEPENDS = ${ LOCALBASE } /lib/qt4/plugins/sqldrivers/libqsqlite2.so:${ PORTSDIR } /databases/qt4-sqlite-plugin \
${ LOCALBASE } /lib/qt4/plugins/sqldrivers/libqsqlite.so:${ PORTSDIR } /databases/qt4-sqlite3-plugin
2008-02-21 12:51:10 +01:00
USE_ZIP = yes
USE_QT_VER = 4
2009-05-24 12:12:29 +02:00
QT_COMPONENTS = gui sql corelib network script qtestlib \
qmake_build rcc_build uic_build moc_build
2011-09-01 12:09:47 +02:00
WRKSRC = ${ WRKDIR } /tipp10_source_v2-1-0
2008-02-21 12:51:10 +01:00
2011-09-01 12:09:47 +02:00
pre-configure :
2008-02-21 12:51:10 +01:00
@cd ${ WRKSRC } \
2011-09-01 12:09:47 +02:00
&& for i in ` grep -lR 'QCoreApplication::applicationDirPath()' *` ; do ${ REINPLACE_CMD } -e 's/QCoreApplication::applicationDirPath()/QString(DATADIR)/g' $$ i ; done
2008-02-21 12:51:10 +01:00
2011-09-01 12:09:47 +02:00
do-configure :
cd ${ WRKSRC } \
&& ${ SETENV } ${ MAKE_ENV } DATADIR = " ${ DATADIR } " ${ QMAKE } -spec ${ QMAKESPEC }
2008-02-21 12:51:10 +01:00
2011-09-01 12:09:47 +02:00
do-install :
${ INSTALL_PROGRAM } ${ WRKSRC } /tipp10 ${ PREFIX } /bin
${ INSTALL_DATA } -d ${ DATADIR } /help/de/img
${ INSTALL_DATA } -d ${ DATADIR } /help/de/content
${ INSTALL_DATA } -d ${ DATADIR } /help/en/img
${ INSTALL_DATA } -d ${ DATADIR } /help/en/content
${ INSTALL_DATA } ${ WRKSRC } /release/tipp10v2.template ${ WRKSRC } /metronome.wav ${ WRKSRC } /error.wav ${ DATADIR }
${ INSTALL_DATA } ${ WRKSRC } /release/help/de/index.html ${ DATADIR } /help/de
${ INSTALL_DATA } ${ WRKSRC } /release/help/de/content/* ${ DATADIR } /help/de/content
${ INSTALL_DATA } ${ WRKSRC } /release/help/de/img/* ${ DATADIR } /help/de/img
${ INSTALL_DATA } ${ WRKSRC } /release/help/en/index.html ${ DATADIR } /help/en
${ INSTALL_DATA } ${ WRKSRC } /release/help/en/content/* ${ DATADIR } /help/en/content
${ INSTALL_DATA } ${ WRKSRC } /release/help/en/img/* ${ DATADIR } /help/en/img
2008-02-21 12:51:10 +01:00
. i n c l u d e < b s d . p o r t . m k >