freebsd-ports/games/fightorperish/Makefile
Rusmir Dusko f68c10bd9a Fight or Perish (FOP) is a dungeon-crawling game based on Jack Pavelich's
Atari 8-bit computer game "Dandy", which was in turn the influence for
Atari Games arcade game "Gauntlet".

Wikipedia "Gauntlet (1985 video game)"

FOP uses concepts from both games, providing one- to four-player action in
dungeons filled with creeping enemies.

Collect and use bombs to wipe out screenfuls of enemies, keys to unlock doors,
and gather food and treasure along the way to stay alive.

Choose from four characters, each with different abilities and weaknesses.
(The one with the strongest weapon also has the weakest health,
the fastest one cannot shoot diagonally, etc.)

WWW: http://www.newbreedsoftware.com/fop/

PR:		ports/170887
Submitted by:	nemysis (self)
Approved by:	pawel (mentor)
2013-11-28 19:05:58 +00:00

50 lines
1.4 KiB
Makefile

# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
# $FreeBSD$
PORTNAME= fightorperish
PORTVERSION= 0.5
CATEGORIES= games
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/fop/src/ \
SF/nemysisfreebsdp/${CATEGORIES}/${PORTNAME}/:icons
DISTFILES= fop-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= fop-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Dungeon-crawling game
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/fop-${DISTVERSION}
USES= gmake
USE_SDL= image mixer sdl
MAKE_JOBS_SAFE= yes
PORTDOCS= CHANGES.txt README.txt TODO.txt
DESKTOP_ENTRIES="Fight or Perish" "${COMMENT}" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" false
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|data/|${DATADIR}/data/| ; \
s|char [256],|char [512],|' ${WRKSRC}/src/fop.c
@${REINPLACE_CMD} -e 's|CC=gcc|CC=${CC}| ; \
s|CFLAGS=-Wall -O2|CFLAGS+=| ; \
s|SDL_CFLAGS=|SDL_CFLAGS+=| ; \
s|SDL_LIBS=|SDL_LIBS+=|' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/fop ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
@(cd ${WRKSRC}/data && ${COPYTREE_SHARE} "images maps sounds" ${STAGEDIR}${DATADIR}/data)
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>