freebsd-ports/german/tipp10/Makefile
Stefan Walter 972c58962a Update to 2.1.0.
PR:		159168
Submitted by:	Momchil Ivanov <momchil@xaxo.eu>
2011-09-01 10:09:47 +00:00

50 lines
1.9 KiB
Makefile

# New ports collection makefile for: tipp10
# Date created: 2007-11-26
# Whom: Heiner <h.eichmann@gmx.de>
#
# $FreeBSD$
#
PORTNAME= tipp10
PORTVERSION= 2.1.0
CATEGORIES= german
MASTER_SITES= http://www.tipp10.com/en/download/
DISTNAME= tipp10_source_v2-1-0
MAINTAINER= ports@FreeBSD.org
COMMENT= A 10 finger touch typing learning program
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/license_en.txt
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
USE_ZIP= yes
USE_QT_VER= 4
QT_COMPONENTS= gui sql corelib network script qtestlib \
qmake_build rcc_build uic_build moc_build
WRKSRC= ${WRKDIR}/tipp10_source_v2-1-0
pre-configure:
@cd ${WRKSRC} \
&& for i in `grep -lR 'QCoreApplication::applicationDirPath()' *`; do ${REINPLACE_CMD} -e 's/QCoreApplication::applicationDirPath()/QString(DATADIR)/g' $$i ; done
do-configure:
cd ${WRKSRC} \
&& ${SETENV} ${MAKE_ENV} DATADIR="${DATADIR}" ${QMAKE} -spec ${QMAKESPEC}
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
.include <bsd.port.mk>