aboutsummaryrefslogtreecommitdiffstats
path: root/games/formido/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/formido/Makefile')
-rw-r--r--games/formido/Makefile55
1 files changed, 18 insertions, 37 deletions
diff --git a/games/formido/Makefile b/games/formido/Makefile
index f6d8232e9161..566655fb0622 100644
--- a/games/formido/Makefile
+++ b/games/formido/Makefile
@@ -2,61 +2,42 @@
# $FreeBSD$
PORTNAME= formido
-PORTVERSION= 1.0
-PORTREVISION= 9
+PORTVERSION= 1.0.1
CATEGORIES= games
-MASTER_SITES= http://koti.mbnet.fi/lsoft/formido/ \
+MASTER_SITES= http://www.mhgames.org/files/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
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/GPL_license.txt
-HISCOREDIR= /var/games/formido
+USE_SDL= sdl mixer image
+USE_GMAKE= yes
+MAKE_ARGS= CC="${CXX}" DATDIR="${DATADIR}" DEFCONFIGDIR="${DATADIR}"
+MAKE_JOBS_SAFE= yes
-CC= ${CXX}
-MAKE_ENV= DATDIR="${DATADIR}" HISCOREDIR="${HISCOREDIR}" \
- LINKFLAGS="${CXXFLAGS}" DEFAULT_CONFIG_FILE="${DATADIR}/formido.cfg"
+PLIST_FILES= bin/${PORTNAME}
-OPTIONS_DEFINE= MUSIC
-OPTIONS_DEFAULT=MUSIC
-MUSIC_DESC= Install music (6MB)
+PORTDATA= *
+PORTDOCS= *
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MMUSIC}
-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
+pre-build:
+ @${MKDIR} ${WRKSRC}/obj
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/formido ${PREFIX}/bin
${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR}
+.if !defined(NOPORTDATA)
+ cd ${WRKSRC}/data && ${COPYTREE_SHARE} '*' ${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/formido.cfg ${DATADIR}
-.if ${PORT_OPTIONS:MMUSIC}
- 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
-
-.if !exists(${HISCOREDIR})
-post-install:
- ${MKDIR} ${HISCOREDIR}
- ${CHGRP} games ${HISCOREDIR}
- ${CHMOD} g+w ${HISCOREDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
.endif
.include <bsd.port.mk>