blob: e8ae229f4a88abcdba8864cad8931de26bab7d60 (
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
54
55
56
|
# $FreeBSD$
PORTNAME= tome4
PORTVERSION= 1.5.10
CATEGORIES= games
MASTER_SITES= https://te4.org/dl/t-engine/ \
SF/lifanov-ports-distfiles/${PORTNAME}/:icons
DISTFILES= t-engine4-src-${PORTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
EXTRACT_ONLY= t-engine4-src-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= lifanov@FreeBSD.org
COMMENT= Epic tactical turn-based roguelike adventure
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= premake4:devel/premake4
LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \
libpng.so:graphics/png
DESKTOP_ENTRIES="ToME 4" "" "${PORTNAME}" \
"${PORTNAME}" "Game;RolePlaying;" ""
PLIST_SUB= PORTVERSION=${PORTVERSION}
WRKSRC= ${WRKDIR}/t-engine4-src-${PORTVERSION}
MAKE_ARGS+= config=release verbose=yes ARCH="" CC=${CC}
USES= gl gmake openal:al tar:bzip2
USE_SDL= image2 sdl2 ttf2
USE_GL= gl glu
USE_CSTD= gnu89
SUB_FILES= tome4
LLD_UNSAFE= yes
.include <bsd.port.pre.mk>
pre-build:
@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/premake4.lua
.if ${ARCH} == aarch64 || ${ARCH} == powerpc64
(cd ${WRKSRC} && premake4 --lua=default gmake)
.else
(cd ${WRKSRC} && premake4 gmake)
@${ECHO} '.NOTPARALLEL:' >> ${WRKSRC}/build/buildvm.make
@${ECHO} '.NOTPARALLEL:' >> ${WRKSRC}/build/luajit2.make
.endif
@${REINPLACE_CMD} 's|-lpthread|-pthread|' ${WRKSRC}/build/TEngine.make
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/t-engine ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${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.post.mk>
|