1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/games/quackle/Makefile
2015-04-04 12:07:57 +00:00

47 lines
1.1 KiB
Makefile

# Created by: shoemaker@bluebottle.com (Jonathan Shoemaker)
# $FreeBSD$
PORTNAME= quackle
PORTVERSION= 0.98
CATEGORIES= games
MAINTAINER= pawel@FreeBSD.org
COMMENT= Scrabble-like word game utilizing Qt4
LICENSE= GPLv3
USE_GITHUB= yes
GH_TAGNAME= v${PORTVERSION}
USES= gmake qmake
USE_QT4= gui moc_build
BUILD_WRKSRC= ${WRKSRC}/quacker
DESKTOP_ENTRIES="Quackle" "${COMMENT}" "" "quackle" "Game;BoardGame;" "true"
post-patch:
@${REINPLACE_CMD} '/-Wno-unused-local-typedefs/d' \
${BUILD_WRKSRC}/quacker.pro \
${WRKSRC}/quackleio/quackleio.pro
@${REINPLACE_CMD} 's|"data"|"${DATADIR}"|' \
${BUILD_WRKSRC}/settings.cpp
post-configure:
.for dir in quackleio quacker
@(cd ${WRKSRC}/${dir} && ${SETENV} ${QMAKE_ENV} ${QMAKE} ${QMAKE_ARGS})
.endfor
pre-build:
.for dir in . quackleio
@(cd ${WRKSRC}/${dir} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
.endfor
do-install:
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/Quackle \
${STAGEDIR}${PREFIX}/bin/quackle
(cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
.include <bsd.port.mk>