freebsd-ports/games/lugaru/Makefile
Tobias Kortkamp 08460ba185 games/lugaru builds fine with Clang
- Add missing libGL dependency
- Fix bad absolute symlink
- Add LLD_UNSAFE because of the audio/openal-soft dependency [1]

PR:		226980 [1]
2018-07-28 13:37:20 +00:00

49 lines
1.2 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= lugaru
PORTVERSION= 269
PORTREVISION= 11
CATEGORIES= games
MASTER_SITES= https://bitbucket.org/oss${PORTNAME}/${PORTNAME}/downloads/
DISTNAME= ${PORTNAME}-rev${DISTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= 3D arcade with unique fighting system and anthropomorphic characters
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING.txt
LIB_DEPENDS= libpng.so:graphics/png \
libvorbis.so:audio/libvorbis \
libogg.so:audio/libogg
USES= cmake jpeg openal:soft pkgconfig tar:bzip2
USE_GL= gl glu
USE_SDL= sdl
USE_XORG= sm
LLD_UNSAFE= yes
PORTDOCS= README
OPTIONS_DEFINE= DOCS
SUB_FILES= ${PORTNAME}
DESKTOP_ENTRIES="Lugaru" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ActionGame;" ""
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local/lugaru|${DATADIR}|' \
${WRKSRC}/CMakeLists.txt
post-install:
${STRIP_CMD} ${STAGEDIR}${DATADIR}/${PORTNAME}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
${RLN} ${STAGEDIR}${DATADIR}/Data/Textures/Lugaru.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>