aboutsummaryrefslogtreecommitdiffstats
path: root/games/qnetwalk/Makefile
blob: d267b5bb55ad6a2fc234b765ec95bf3e83ff2f8d (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
# Created by: arved
# $FreeBSD$

PORTNAME=   qnetwalk
PORTVERSION=    1.4
PORTREVISION=   2
CATEGORIES= games
MASTER_SITES=   http://qt.osdn.org.ua/ \
        http://mirror.amdmi3.ru/distfiles/

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

LICENSE=    GPLv2

USES=       qmake
USE_QT4=    corelib gui moc_build rcc_build
USE_SDL=    mixer

PLIST_FILES=    bin/qnetwalk \
        man/man6/qnetwalk.6.gz \
        share/applications/qnetwalk.desktop \
        share/pixmaps/qnetwalk.xpm

PORTDOCS=   ChangeLog README
PORTDATA=   *

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/games|$$$${PREFIX}/bin|; \
        s|/usr/share/man|$$$${PREFIX}/man|; \
        s|/usr/share|$$$${PREFIX}/share|; \
        /INSTALLS.*menu/ d' ${WRKSRC}/${PORTNAME}.pro

post-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>