summaryrefslogtreecommitdiffstats
path: root/games/quackle/Makefile
blob: d47dbca4ac293721daab625001988cc03a7e3585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: shoemaker@bluebottle.com (Jonathan Shoemaker)
# $FreeBSD$

PORTNAME=	quackle
PORTVERSION=	1.0.1
DISTVERSIONPREFIX=	v
CATEGORIES=	games

MAINTAINER=	pawel@FreeBSD.org
COMMENT=	Scrabble-like word game utilizing Qt4

LICENSE=	GPLv3

USE_GITHUB=	yes

USES=		compiler:c++11-lib 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} && ${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>
OpenPOWER on IntegriCloud