freebsd-ports/games/naev/Makefile
Marcus von Appen 6506e45d69 - Update devel/sdl12 to version 1.2.14.
- Update audio/sdl_mixer to version 1.2.11.
- Update graphics/sdl_gfx to version 2.0.20.
- Update graphics/sdl_image to version 1.2.10.
- Bump portrevisions for all ports depending on audio/sdl_mixer and
  graphics/sdl_image.
- Update Mk/bsd.sdl.mk accordingly for the new shared lib versions.

PR:		ports/142147 ports/142248 ports/142249
Approved by:	miwi (mentor implicit)
2010-01-30 09:43:31 +00:00

73 lines
1.7 KiB
Makefile

# New ports collection makefile for: naev
# Date created: 2009-04-26
# Whom: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= naev
PORTVERSION= 0.4.1
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= acm@FreeBSD.org
COMMENT= A 2d action/rpg space game
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
freetype:${PORTSDIR}/print/freetype2
RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/ndata-${PORTVERSION}:${PORTSDIR}/games/naev-data
USE_AUTOTOOLS= automake:19:env aclocal:19:env autoconf:262:env
USE_BZIP2= yes
USE_DOS2UNIX= conf.example
GNU_CONFIGURE= yes
USE_GL= gl
USE_GMAKE= yes
USE_GNOME= libxml2
USE_SDL= sdl image
CONFIGURE_ARGS= --with-ndata-path=${DATADIR}/ndata-${PORTVERSION}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
MAN6= naev.6
PLIST_FILES= bin/${PORTNAME}
SUB_FILES= pkg-message
OPTIONS= OPENAL "Use the OpenAL sound backend" on \
SDL_MIXER "Use the SDL_mixer sound backend" on
.include <bsd.port.pre.mk>
.if !defined(NOPORTDOCS)
PLIST_FILES+= %%DOCSDIR%%/conf.example
PLIST_DIRS= %%DOCSDIR%%
.endif
.if defined(WITH_OPENAL)
USE_OPENAL= yes
CONFIGURE_ARGS+= --with-openal=yes
.else
CONFIGURE_ARGS+= --with-openal=no
.endif
.if defined(WITH_SDL_MIXER)
USE_SDL+= mixer
CONFIGURE_ARGS+= --with-sdlmixer=yes
.else
CONFIGURE_ARGS+= --with-sdlmixer=no
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${PREFIX}/man/man6
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/conf.example ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>