blob: 304702c5300350cf734b3f8a6c90e601ba348a7d (
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
54
55
|
# New ports collection makefile for: luola
# Date created: 20 Jan 2006
# Whom: Dmitry Marakasov <amdmi3@mail.ru>
#
# $FreeBSD$
#
PORTNAME= luola
PORTVERSION= 1.3.0
CATEGORIES= games
MASTER_SITES= http://www.luolamies.org/software/luola/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
stdlevels-5.2${EXTRACT_SUFX} \
nostalgia-1.1${EXTRACT_SUFX}
DIST_SUBDIR= luola
MAINTAINER= amdmi3@mail.ru
COMMENT= Multiplayer Cave-flying game
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_SDL= sdl image ttf
CONFIGURE_ARGS= --program-prefix=''
OPTIONS= SDL_GFX "Enable sdl_gfx for nicer graphics" on \
SOUND "Enable sound" on
.include <bsd.port.pre.mk>
.if defined(WITHOUT_SDL_GFX)
CONFIGURE_ARGS+= --disable-sdl-gfx
.else
USE_SDL+= gfx
.endif
.if !defined(WITHOUT_SOUND)
CONFIGURE_ARGS+= --enable-sound
USE_SDL+= mixer
.endif
post-patch:
@${REINPLACE_CMD} -e 's|SDL/|SDL11/|' ${WRKSRC}/src/audio.c ${WRKSRC}/src/startup.c ${WRKSRC}/tools/lcmaptool.c
@${REINPLACE_CMD} -e '/LIBS=.*-lSDL_/ s|\(SDL_[a-z]*\)|\1 `sdl11-config --libs`|' ${WRKSRC}/configure
post-install:
@${INSTALL_DATA} ${WRKDIR}/*.lev ${WRKDIR}/*.png ${DATADIR}/levels
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in README FAQ
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>
|