aboutsummaryrefslogtreecommitdiffstats
path: root/games/tong/Makefile
blob: 7d90dcdecb175b6ea2e3a7379a83c8dbfa2203b5 (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
# Created by:   nemysis@gmx.ch
# $FreeBSD$

PORTNAME=   tong
PORTVERSION=    1.2
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   http://www.nongnu.org/tong/

MAINTAINER= nemysis@gmx.ch
COMMENT=    Tetris and Pong in the same place at the same time

LICENSE=    GPLv3

USE_SDL=    image mixer sdl
USE_GMAKE=  yes
MAKE_JOBS_SAFE= yes

PORTDOCS=   CHANGELOG README making-of.txt notes.txt

WRKSRC=     ${WRKDIR}/${PORTNAME}

DESKTOP_ENTRIES="TONG!" "${COMMENT}" "${PORTNAME}" \
        "${PORTNAME}" "Game;ArcadeGame;" false

.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|GAME_DATA_DIR := .|GAME_DATA_DIR := ${DATADIR}|' \
    -e 's|CC = g++ -O3 |CC = ${CXX} ${CXXFLAGS} |' \
        ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    @cd ${WRKSRC} && ${COPYTREE_SHARE} "*.png" ${DATADIR}
    ${MKDIR} ${DATADIR}/media
    @cd ${WRKSRC}/media && ${COPYTREE_SHARE} "*.png *.xcf *.ogg *.ico" ${DATADIR}/media
    ${LN} -sf ${DATADIR}/media/icon.png ${PREFIX}/share/pixmaps/${PORTNAME}.png

.if ${PORT_OPTIONS:MDOCS}
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif

.include <bsd.port.mk>