1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/games/formido/Makefile
Marcus von Appen 6506e45d69 - Update devel/sdl12 to version 1.2.14.
- Update audio/sdl_mixer to version 1.2.11.
- Update graphics/sdl_gfx to version 2.0.20.
- Update graphics/sdl_image to version 1.2.10.
- Bump portrevisions for all ports depending on audio/sdl_mixer and
  graphics/sdl_image.
- Update Mk/bsd.sdl.mk accordingly for the new shared lib versions.

PR:		ports/142147 ports/142248 ports/142249
Approved by:	miwi (mentor implicit)
2010-01-30 09:43:31 +00:00

65 lines
1.6 KiB
Makefile

# New ports collection makefile for: formido
# Date created: 19 Nov 2005
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= formido
PORTVERSION= 1.0
PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= http://koti.mbnet.fi/lsoft/formido/ \
http://mirror.amdmi3.ru/distfiles/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= 2D kill-em all with 3D rendered graphics
USE_BZIP2= yes
USE_GMAKE= yes
USE_SDL= sdl mixer image
HISCOREDIR= /var/games/formido
CC= ${CXX}
MAKE_ENV= DATDIR="${DATADIR}" HISCOREDIR="${HISCOREDIR}" \
LINKFLAGS="${CXXFLAGS}" DEFAULT_CONFIG_FILE="${DATADIR}/formido.cfg"
OPTIONS= MUSIC "Install music (6MB)" on
.include <bsd.port.pre.mk>
.ifdef(WITH_MUSIC)
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${PORTNAME}-music${EXTRACT_SUFX}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
PLIST_SUB+= MUSIC:=""
.else
PLIST_SUB+= MUSIC:="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|formido.cfg|.formido.cfg|g' ${WRKSRC}/src/*.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/formido ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/formido.cfg ${DATADIR}
.ifdef(WITH_MUSIC)
cd ${DATADIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${PORTNAME}-music${EXTRACT_SUFX} ${EXTRACT_AFTER_ARGS}
${CHOWN} root:wheel ${DATADIR}/*.ogg
${CHMOD} 644 ${DATADIR}/*.ogg
.endif
${CHGRP} games ${PREFIX}/bin/formido
${CHMOD} g+s ${PREFIX}/bin/formido
post-install:
.if !exists(${HISCOREDIR})
${MKDIR} ${HISCOREDIR}
${CHGRP} games ${HISCOREDIR}
${CHMOD} g+w ${HISCOREDIR}
.endif
.include <bsd.port.post.mk>