aboutsummaryrefslogtreecommitdiffstats
path: root/games/qgo/Makefile
blob: a5acec12437832aecaab5d1559fa342dfeb3060c (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   qgo
PORTVERSION=    2.s764
CATEGORIES= games
MASTER_SITES=   DEBIAN
DISTNAME=   ${PORTNAME}_2~svn764.orig

MAINTAINER= ports@FreeBSD.org
COMMENT=    Go board and SGF editor written with the Qt library

WRKSRC=     ${WRKDIR}/${PORTNAME}

USE_BZIP2=  yes
USES=       desktop-file-utils qmake
USE_QT4=    gui network qtestlib moc_build qmake_build rcc_build uic_build

PLIST_FILES=    bin/qgo share/applications/qgo.desktop share/pixmaps/qgo.png
PLIST_DIRSTRY=  share/applications

post-patch:
    @${REINPLACE_CMD} -e \
        '/Icon/s|=.*|=${PREFIX}/share/pixmaps/qgo.png| ; \
         /^MimeType/s|=.*|=text/sgf|' ${WRKSRC}/src/qgo.desktop
    @${REINPLACE_CMD} -e \
        's|debug|release|' ${WRKSRC}/src/src.pro
    @${REINPLACE_CMD} -e \
        's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/src/mainwindow_settings.cpp

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/qgo ${STAGEDIR}${PREFIX}/bin
    @${MKDIR} ${STAGEDIR}${DESKTOPDIR}
    ${INSTALL_DATA} ${WRKSRC}/src/qgo.desktop ${STAGEDIR}${DESKTOPDIR}
    ${INSTALL_DATA} ${WRKSRC}/src/ressources/pics/qgo.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps

.include <bsd.port.mk>