aboutsummaryrefslogtreecommitdiffstats
path: root/games/qnetwalk/Makefile
blob: 2a8efa6aeb2a854b2f7c521617947e0ff3746abc (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
# New ports collection Makefile for:    qnetwalk
# Date created:             2004-11-12
# Whom:                 arved
#
# $FreeBSD$

PORTNAME=   qnetwalk
PORTVERSION=    1.1
CATEGORIES= games
MASTER_SITES=   http://qt.osdn.org.ua/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Qt-version of the NetWalk game

BUILD_DEPENDS=  qmake:${PORTSDIR}/devel/qmake

USE_QT_VER= 3
USE_REINPLACE=  yes
MAKE_ENV=   QTDIR="${QT_PREFIX}"

MAN6=       qnetwalk.6

QMAKE?=     qmake
QMAKESPEC?= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++

post-patch:
    @${REINPLACE_CMD} -e \
        "s|/usr/local|${PREFIX}|g" ${WRKSRC}/${PORTNAME}.pro

do-configure:
    @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} \
        -spec ${QMAKESPEC} ${PORTNAME}.pro

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/qnetwalk ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/qnetwalk.6 ${MANPREFIX}/man/man6
    @${MKDIR} ${DATADIR}/sounds
    ${INSTALL_DATA} ${WRKSRC}/sounds/*.wav ${DATADIR}/sounds
    @${MKDIR} ${DATADIR}/translations
    ${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${DATADIR}/translations

.include <bsd.port.mk>