aboutsummaryrefslogtreecommitdiffstats
path: root/games/gottet/Makefile
blob: 46846edd5ba56d9d636f0ba4be9daeda4e871fd0 (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
47
48
49
50
51
52
53
# New Ports collection makefile for:    gottet
# Date created:     21 April 2012
# Whom:         nemysis@gmx.ch
#
# $FreeBSD$
#

PORTNAME=   gottet
PORTVERSION=    1.0.4
CATEGORIES= games
MASTER_SITES=   http://gottcode.org/${PORTNAME}/
EXTRACT_SUFX=   -src.tar.bz2

MAINTAINER= nemysis@gmx.ch
COMMENT=    A Tetris clone

LICENSE=    GPLv3

USE_BZIP2=  yes
USE_QT_VER= 4
QT_COMPONENTS=  moc_build qmake_build rcc_build iconengines imageformats
USE_GMAKE=  yes
MAKE_JOBS_SAFE= yes

PORTDOCS=   ChangeLog

PLIST_FILES=    bin/${PORTNAME} \
        share/applications/${PORTNAME}.desktop \
        share/pixmaps/${PORTNAME}.png
PLIST_DIRSTRY=  share/applications

.include <bsd.port.options.mk>

do-configure:
    @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
        ${QMAKE} ${QMAKEFLAGS}

do-install:
# Executable
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

# Pixmaps and Desktop
    ${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.png ${PREFIX}/share/pixmaps/
    ${MKDIR} ${PREFIX}/share/applications
    ${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.desktop ${PREFIX}/share/applications/

# Documentation
.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
.endif

.include <bsd.port.mk>