1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/games/xrick/Makefile
Pawel Pekala 4be6909463 - Fix build with clang by respecting CC, CFLAGS
- Add staging support
- Remove leading article from COMMENT
- Convert to new LIB_DEPENDS format, USES=gmake
- Switch to PLIST_FILES

MFH:		2014Q2
2014-04-12 20:04:19 +00:00

35 lines
997 B
Makefile

# Created by: David Siebörger <drs@rucus.ru.ac.za>
# $FreeBSD$
PORTNAME= xrick
PORTVERSION= 021212
PORTREVISION= 8
CATEGORIES= games
MASTER_SITES= http://www.bigorno.net/xrick/
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Clone of Rick Dangerous
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
RESTRICTED= Copyright status of the graphics and sounds is uncertain
USES= gmake
USE_SDL= sdl
PLIST_FILES= bin/xrick man/man6/xrick.6.gz share/xrick/data.zip
PLIST_DIRS= share/xrick
post-patch:
@${REINPLACE_CMD} -e 's|sysarg_args_data = NULL|sysarg_args_data = "${PREFIX}/share/xrick/data.zip"|' ${WRKSRC}/src/sysarg.c
@${REINPLACE_CMD} 's|gcc|${CC}|; s|-g||; s|-O2|${CFLAGS}|' \
${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/xrick ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/xrick.6.gz ${STAGEDIR}${PREFIX}/man/man6
@${MKDIR} ${STAGEDIR}${PREFIX}/share/xrick
${INSTALL_DATA} ${WRKSRC}/data.zip ${STAGEDIR}${PREFIX}/share/xrick
.include <bsd.port.mk>