freebsd-ports/games/bfm/Makefile
Alejandro Pulver b2fc843fc3 Battle for Mandicor is a free (as in freedom) real time strategy game using
the Stratagus game engine. Stratagus is a free cross-platform RTS (Real Time
Strategy) game engine written in C, and scripted with Lua. Stratagus has been
used for many games, Battle for Mandicor being one of them.

The fantasy world called Mandicor is much like Tolkien's Middle-Earth and has
a long history. Though not yet finished, a player can control four races in
game; dwarves, gnomes, humans, and goblins. Each has advantages and
disadvantages within the game. While playing, you need to collect resources,
train large armies, and research items in order to create a more powerful
society and defeat the enemy. Campaigns, yet to be finished, will be based
upon a long and interesting history.

WWW: http://www.mandicor.org/
2007-02-27 14:10:57 +00:00

51 lines
1.3 KiB
Makefile

# New ports collection makefile for: bfm
# Date created: 2007-02-26
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= bfm
PORTVERSION= 0.0.6.2
CATEGORIES= games
MASTER_SITES= SF/battle4mandicor
EXTRACT_SUFX= -src.tar.gz
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Battle for Mandicor is free RTS fantasy game using Stratagus
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
vorbisfile.4:${PORTSDIR}/audio/libvorbis
USE_GMAKE= yes
USE_LUA= 5.0
USE_SDL= sdl
USE_XLIB= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LUA_INCDIR}" LDFLAGS="-L${LUA_LIBDIR}"
post-extract:
@${FIND} ${WRKSRC}/data -type d -name CVS -print0 | \
${XARGS} -0 ${RM} -rf
post-patch:
@${REINPLACE_CMD} -e 's|-ldl||; s|gcc|${CC}|' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
post-build:
@(${ECHO_CMD} "#!${SH}"; \
${ECHO_CMD} 'exec ${PREFIX}/libexec/bfm -d ${DATADIR} "$$@"') \
> ${WRKDIR}/${PORTNAME}
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/libexec
cd ${WRKSRC}/data && \
${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc-bfm/* ${DOCSDIR}
.endif
.include <bsd.port.mk>