1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/games/quackle/Makefile
2018-04-17 03:15:45 +00:00

47 lines
1.0 KiB
Makefile

# Created by: shoemaker@bluebottle.com (Jonathan Shoemaker)
# $FreeBSD$
PORTNAME= quackle
PORTVERSION= 1.0.3
PORTREVISION= 2
DISTVERSIONPREFIX= v
CATEGORIES= games
MAINTAINER= ports@FreeBSD.org
COMMENT= Scrabble-like word game utilizing Qt4
LICENSE= GPLv3
USE_GITHUB= yes
USES= compiler:c++11-lib gmake qmake
USE_QT4= corelib gui moc_build
BUILD_WRKSRC= ${WRKSRC}/quacker
DESKTOP_ENTRIES="Quackle" "" "" "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} && ${DO_MAKE_BUILD} ${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>