freebsd-ports/games/tome4/Makefile
Nikolai Lifanov 8d7993e557 update MAINTAINER to my FreeBSD.org email
Reviewed by:	matthew
Approved by:	matthew (maintainer)
Differential Revision:	https://reviews.freebsd.org/D8782
2016-12-14 03:47:18 +00:00

55 lines
1.6 KiB
Makefile

# Created by: Nikolai Lifanov <lifanov@mail.lifanov.com>
# $FreeBSD$
PORTNAME= tome4
PORTVERSION= 1.4.9
CATEGORIES= games
MASTER_SITES= http://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 \
libpng16.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= gmake openal:al tar:bzip2
USE_SDL= image2 sdl2 ttf2
USE_GL= gl glu
USE_CSTD= gnu89
SUB_FILES= tome4
MAKE_JOBS_UNSAFE=yes
.include <bsd.port.pre.mk>
pre-build:
@${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/premake4.lua
.if ${ARCH} == aarch64
(cd ${WRKSRC} && premake4 --lua=default gmake)
.else
(cd ${WRKSRC} && premake4 gmake)
.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>