From d20d029cd62123e2636bc0676747ac39d600f43f Mon Sep 17 00:00:00 2001 From: miwi Date: Fri, 18 Jul 2008 12:42:45 +0000 Subject: - Use QT_COMPONENTS - Install data to ${DATADIR} (adjust pkg-plist in accordance) - Use COPYTREE_SHARE macro PR: 124821 Submitted by: Max Brazhnikov Approved by: maintainer timeout --- games/quackle/Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'games/quackle/Makefile') diff --git a/games/quackle/Makefile b/games/quackle/Makefile index 14b8c23a0a26..dac6abda0dde 100644 --- a/games/quackle/Makefile +++ b/games/quackle/Makefile @@ -7,7 +7,7 @@ PORTNAME= quackle PORTVERSION= 0.95 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= games MASTER_SITES= http://web.mit.edu/jasonkb/www/quackle/downloads/${PORTNAME}-${PORTVERSION}/ DISTFILES= ${PORTNAME}-${PORTVERSION}-source.tar.gz @@ -17,19 +17,19 @@ COMMENT= A scrabble-like word game utilizing qt4 USE_SCONS= yes USE_QT_VER= 4 +QT_COMPONENTS= qmake_build moc_build gui USE_GMAKE= yes +QMAKE_ARGS= -unix -spec ${QMAKESPEC} pre-patch: - @${REINPLACE_CMD} -e 's|if (QFile::exists("data"))|if (QFile::exists("${PREFIX}/lib/quackle"))|' ${WRKSRC}/quacker/settings.cpp - @${REINPLACE_CMD} -e 's|QUACKLE_DATAMANAGER->setDataDirectory("data");|QUACKLE_DATAMANAGER->setDataDirectory("${PREFIX}/lib/quackle");|' ${WRKSRC}/quacker/settings.cpp + @${REINPLACE_CMD} -e 's|if (QFile::exists("data"))|if (QFile::exists("${DATADIR}"))|' ${WRKSRC}/quacker/settings.cpp + @${REINPLACE_CMD} -e 's|QUACKLE_DATAMANAGER->setDataDirectory("data");|QUACKLE_DATAMANAGER->setDataDirectory("${DATADIR}");|' ${WRKSRC}/quacker/settings.cpp post-build: - @(cd ${WRKSRC}/quackleio && qmake-qt4 -unix -spec freebsd-g++ -o Makefile quackleio.pro && ${GMAKE} && cd ${WRKSRC}/quacker && qmake-qt4 -unix -spec freebsd-g++ -o Makefile quacker.pro && ${GMAKE}) + @(cd ${WRKSRC}/quackleio && ${QMAKE} ${QMAKE_ARGS} -o Makefile quackleio.pro && ${SETENV} ${MAKE_ENV} ${GMAKE} && cd ${WRKSRC}/quacker && ${QMAKE} ${QMAKE_ARGS} -o Makefile quacker.pro && ${SETENV} ${MAKE_ENV} ${GMAKE}) do-install: - @(${MKDIR} -m 555 ${PREFIX}/lib/quackle; cd ${WRKSRC}/data && ${PAX} -rw ./ ${PREFIX}/lib/quackle) - @${FIND} ${PREFIX}/lib/quackle -type directory -exec ${CHMOD} 555 {} \; - @${FIND} ${PREFIX}/lib/quackle -type file -exec ${CHMOD} 444 {} \; - @${INSTALL} -m 0555 ${WRKSRC}/quacker/quacker ${PREFIX}/bin/quackle + @${INSTALL_PROGRAM} ${WRKSRC}/quacker/quacker ${PREFIX}/bin/quackle + @(cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${DATADIR}) .include -- cgit