blob: 0265f1a64376f026e00aa04e218cbc711fed3e41 (
plain)
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
54
55
56
57
58
59
60
61
|
# New ports collection makefile for: formido
# Date created: 19 Nov 2005
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#
PORTNAME= formido
PORTVERSION= 1.0
CATEGORIES= games
MASTER_SITES= http://koti.mbnet.fi/lsoft/formido/
MAINTAINER= amdmi3@mail.ru
COMMENT= 2D kill-em all with 3D rendered graphics
USE_BZIP2= yes
USE_GMAKE= yes
USE_SDL= sdl mixer image
HISCOREDIR= /var/games/formido
MAKE_ENV= DATDIR="${DATADIR}" HISCOREDIR="${HISCOREDIR}" \
CC="${CXX}" 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>
|