freebsd-ports/games/luola/Makefile
Pav Lucistnik 5bc2b70b04 Luola is a 2D arcade game where you fly a small V shaped ship in
different kinds of levels. It's genre "Luolalentely" (Cave-flying)
is (or was) very popular here in Finland. Though cavern-flying games
are not originally Finnish, nowdays most of them are.

PR:		ports/92038
Submitted by:	Dmitry Marakasov <amdmi3@mail.ru>
2006-01-22 20:04:34 +00:00

55 lines
1.3 KiB
Makefile

# 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>