freebsd-ports/games/wizznic/Makefile
Jan Beich f57478200a games/wizznic: use clang and unbreak with gcc5 or later
board.o: In function `doRules':
board.c:(.text+0x14b1): undefined reference to `getTicks'
draw.o: In function `drawPath':
draw.c:(.text+0x90d): undefined reference to `plotPixel'
draw.o: In function `draw':
draw.c:(.text+0x9aa): undefined reference to `setting'
[...]

PR:		216707
Reported by:	antoine (via exp-run)
2017-02-05 03:30:25 +00:00

40 lines
1,004 B
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= wizznic
PORTVERSION= 0.9.9
DISTVERSIONSUFFIX=-src
PORTREVISION= 7
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/Source%20Releases/
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Implementation of the arcade classic Puzznic
LICENSE= GPLv3+
LIB_DEPENDS= libpng.so:graphics/png
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src
USES= gmake tar:bzip2
USE_CSTD= gnu89
USE_SDL= image mixer sdl
MAKE_ENV= DATADIR=${DATADIR}/ BINDIR=${PREFIX}/bin
ALL_TARGET= sdl
PORTDOCS= changelog.txt credits.txt music-score-credits.txt readme.txt
DESKTOP_ENTRIES="Wizznic!" "${COMMENT}" ${PORTNAME} \
"${PORTNAME}" "Game;LogicGame;" false
OPTIONS_DEFINE= DOCS
post-install:
@${CHMOD} -R 755 ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR}
${LN} -sf ${DATADIR}/packs/001_wizznic/icon.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
.include <bsd.port.mk>