mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
ed37e28885
Smash Battle is a cross platform, 8-bit style game where two, three or four player face off against each other. The game was inspired by the mario battle minigame from mario 3 when we started developing, but changed a lot over time. WWW: http://smashbattle.condor.tv/ PR: 167855 Submitted by: nemysis@gmx.ch Feature safe: yes
55 lines
1.5 KiB
Makefile
55 lines
1.5 KiB
Makefile
# Created by: nemysis@gmx.ch
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= smashbattle
|
|
PORTVERSION= 110224
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/beta-${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}-${DISTVERSION}-src
|
|
|
|
MAINTAINER= nemysis@gmx.ch
|
|
COMMENT= 8-bit style platform battle game
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/battle/Battle
|
|
|
|
USE_ZIP= yes
|
|
EXTRACT_AFTER_ARGS= -d ${WRKDIR}/${DISTNAME}
|
|
USE_GMAKE= yes
|
|
USE_DOS2UNIX= *.cpp *.h *.ini Makefile
|
|
ALL_TARGET= battle
|
|
USE_SDL= sdl image mixer
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
pre-extract:
|
|
@${MKDIR} ${WRKDIR}/${DISTNAME}
|
|
|
|
PLIST_FILES= bin/${PORTNAME} \
|
|
share/applications/${PORTNAME}.desktop \
|
|
share/applications/${PORTNAME}fs.desktop \
|
|
share/pixmaps/${PORTNAME}.png
|
|
PLIST_DIRSTRY= share/applications
|
|
|
|
PORTDATA= *
|
|
|
|
SUB_FILES= ${PORTNAME}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/share/games/smashbattle/gfx/SB.png|${PORTNAME}|' \
|
|
-e 's|/usr/local/bin/smashbattle|${PORTNAME}|' \
|
|
${WRKSRC}/linux/${PORTNAME}.desktop ${WRKSRC}/linux/${PORTNAME}fs.desktop
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
|
|
${MKDIR} ${DATADIR}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/battle ${DATADIR}/${PORTNAME}
|
|
@(cd ${WRKSRC} && ${COPYTREE_SHARE} "gfx music sfx stage" ${DATADIR})
|
|
${INSTALL_DATA} ${WRKSRC}/gfx/SB.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
|
|
${MKDIR} ${PREFIX}/share/applications
|
|
${INSTALL_DATA} ${WRKSRC}/linux/${PORTNAME}.desktop ${PREFIX}/share/applications/
|
|
${INSTALL_DATA} ${WRKSRC}/linux/${PORTNAME}fs.desktop ${PREFIX}/share/applications/
|
|
|
|
.include <bsd.port.mk>
|