aboutsummaryrefslogtreecommitdiffstats
path: root/games/tome4/Makefile
blob: 377be4b4216e0fd314fe1f4734b4f327dbb90c27 (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
# Created by: Nikolai Lifanov <lifanov@mail.lifanov.com>
# $FreeBSD$

PORTNAME=   tome4
PORTVERSION=    1.1.5
PORTREVISION=   1
CATEGORIES= games
MASTER_SITES=   http://te4.org/dl/t-engine/ \
        SF/lifanov-ports-icons/${PORTNAME}/:icons
DISTFILES=  t-engine4-src-${PORTVERSION}${EXTRACT_SUFX} \
        ${PORTNAME}.png:icons
EXTRACT_ONLY=   t-engine4-src-${PORTVERSION}${EXTRACT_SUFX}

MAINTAINER= lifanov@mail.lifanov.com
COMMENT=    Epic tactical turn-based roguelike adventure

LICENSE=    GPLv3

BUILD_DEPENDS=  premake4:${PORTSDIR}/devel/premake4
LIB_DEPENDS=    libvorbisfile.so:${PORTSDIR}/audio/libvorbis

DESKTOP_ENTRIES="ToME 4" "" "${PORTNAME}" \
        "${PORTNAME}" "Game;RolePlaying;" ""

WRKSRC=     ${WRKDIR}/t-engine4-src-${PORTVERSION}
MAKE_ARGS+= config=release verbose=yes ARCH=""
USES=       gmake openal:al tar:bzip2
USE_SDL=    image2 sdl2 ttf2
USE_GL=     gl
SUB_FILES=  tome4
MAKE_JOBS_UNSAFE=yes

pre-build:
    (cd ${WRKSRC} && premake4 gmake)
    @${REINPLACE_CMD} 's|-lpthread|-pthread|' ${WRKSRC}/build/TEngine.make

do-install:
    @${MKDIR} ${STAGEDIR}${DATADIR}

    ${INSTALL_PROGRAM} ${WRKSRC}/t-engine ${STAGEDIR}${DATADIR}
    ${INSTALL} -m 0755 ${WRKDIR}/tome4 ${STAGEDIR}${PREFIX}/bin/
    (cd ${WRKSRC}; ${COPYTREE_SHARE} "bootstrap game" ${STAGEDIR}${DATADIR})

    ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
        ${STAGEDIR}${PREFIX}/share/pixmaps/

.include <bsd.port.mk>