29a23b8db4
After FreeBSD 12.0 EOL we no longer have to worry about LLD 6 and can drop LLD_UNSAFE from openal-soft ports. LLD can link them fine now but some ports needs a little help on i386 (-Wl,-znotext). PR: 226980 Reviewed by: jbeich (earlier version) Differential Revision: https://reviews.freebsd.org/D23030
61 lines
1.8 KiB
Makefile
61 lines
1.8 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= tome4
|
|
DISTVERSION?= 1.6.5
|
|
PORTREVISION?= 0
|
|
CATEGORIES= games
|
|
MASTER_SITES= https://te4.org/dl/t-engine/ \
|
|
SF/lifanov-ports-distfiles/${PORTNAME}/:icons
|
|
DISTFILES= t-engine4-src-${DISTVERSION}${EXTRACT_SUFX} \
|
|
${PORTNAME}.png:icons
|
|
EXTRACT_ONLY= t-engine4-src-${DISTVERSION}${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
|
|
|
|
USES= compiler:c++11-lang gl gmake openal:al sdl tar:bzip2 xorg
|
|
USE_SDL= image2 sdl2 ttf2
|
|
USE_GL= gl glu
|
|
USE_CSTD= gnu89
|
|
SUB_FILES= tome4
|
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
DESKTOP_ENTRIES="ToME 4" "" "${PORTNAME}" \
|
|
"${PORTNAME}" "Game;RolePlaying;" ""
|
|
|
|
PLIST_SUB= PORTVERSION=${PORTVERSION}
|
|
WRKSRC= ${WRKDIR}/t-engine4-src-${DISTVERSION}
|
|
MAKE_ARGS+= config=release verbose=yes ARCH="" CC=${CC} CXX=${CXX}
|
|
LDFLAGS_i386= -Wl,-znotext
|
|
|
|
.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>
|