blob: 6c3af7d3ab5c8e78ec3b7f2226076ca43f4f8d9b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# 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
NO_STAGE= 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>
|