aboutsummaryrefslogtreecommitdiffstats
path: root/games/quackle/Makefile
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2008-07-18 20:42:45 +0800
committermiwi <miwi@FreeBSD.org>2008-07-18 20:42:45 +0800
commitd20d029cd62123e2636bc0676747ac39d600f43f (patch)
treec7ce664e9789b00e9b6e47729191bb1a4409be88 /games/quackle/Makefile
parent89368029d9d6d779cf6289eb57bd98a619c6838f (diff)
downloadfreebsd-ports-gnome-d20d029cd62123e2636bc0676747ac39d600f43f.tar.gz
freebsd-ports-gnome-d20d029cd62123e2636bc0676747ac39d600f43f.tar.zst
freebsd-ports-gnome-d20d029cd62123e2636bc0676747ac39d600f43f.zip
- Use QT_COMPONENTS
- Install data to ${DATADIR} (adjust pkg-plist in accordance) - Use COPYTREE_SHARE macro PR: 124821 Submitted by: Max Brazhnikov <makc@issp.ac.ru> Approved by: maintainer timeout
Diffstat (limited to 'games/quackle/Makefile')
-rw-r--r--games/quackle/Makefile16
1 files changed, 8 insertions, 8 deletions
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 <bsd.port.mk>