aboutsummaryrefslogtreecommitdiffstats
path: root/games/quackle/Makefile
blob: d0621aa1ed582a7fc130528a56c283ebe7a791f8 (plain) (blame)
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
46
# Created by: shoemaker@bluebottle.com (Jonathan Shoemaker)
# $FreeBSD$

PORTNAME=   quackle
PORTVERSION=    1.0.3
PORTREVISION=   2
DISTVERSIONPREFIX=  v
CATEGORIES= games

MAINTAINER= games@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>