2013-05-31 14:40:56 +00:00
|
|
|
# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
|
2009-04-29 00:11:21 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= naev
|
2012-08-09 21:01:37 +00:00
|
|
|
PORTVERSION= 0.5.3
|
2009-04-29 00:11:21 +00:00
|
|
|
CATEGORIES= games
|
2011-06-24 19:33:10 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION} \
|
|
|
|
${MASTER_SITE_GOOGLE_CODE}
|
2009-04-29 00:11:21 +00:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
2013-08-02 08:14:21 +00:00
|
|
|
COMMENT= 2D action/RPG space game
|
2009-04-29 00:11:21 +00:00
|
|
|
|
2013-08-02 08:14:21 +00:00
|
|
|
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \
|
|
|
|
libfreetype.so:${PORTSDIR}/print/freetype2 \
|
|
|
|
libvorbisfile.so:${PORTSDIR}/audio/libvorbis
|
2009-04-29 00:11:21 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/${PORTNAME}/ndata-${PORTVERSION}:${PORTSDIR}/games/naev-data
|
|
|
|
|
2013-09-03 06:36:41 +00:00
|
|
|
USES= gmake pkgconfig
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= automake:env aclocal:env autoconf:env
|
2009-04-29 00:11:21 +00:00
|
|
|
USE_BZIP2= yes
|
2010-01-26 22:57:34 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2013-08-02 08:14:21 +00:00
|
|
|
USE_GL= glu
|
2009-04-29 00:11:21 +00:00
|
|
|
USE_GNOME= libxml2
|
2010-01-26 22:57:34 +00:00
|
|
|
USE_SDL= sdl image
|
2009-04-29 00:11:21 +00:00
|
|
|
|
2010-01-26 22:57:34 +00:00
|
|
|
CONFIGURE_ARGS= --with-ndata-path=${DATADIR}/ndata-${PORTVERSION}
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2010-01-26 22:57:34 +00:00
|
|
|
|
|
|
|
MAN6= naev.6
|
2009-04-29 00:11:21 +00:00
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2013-05-31 14:40:56 +00:00
|
|
|
OPTIONS_DEFINE= OPENAL SDL_MIXER
|
|
|
|
SDL_MIXER_DESC= SDL_mixer sound backend
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= OPENAL SDL_MIXER
|
2010-01-26 22:57:34 +00:00
|
|
|
|
2013-09-20 17:36:33 +00:00
|
|
|
NO_STAGE= yes
|
2011-11-09 07:02:24 +00:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-05-31 14:40:56 +00:00
|
|
|
.if ${PORT_OPTIONS:MOPENAL}
|
2013-12-25 23:29:34 +00:00
|
|
|
USES+= openal
|
2010-01-26 22:57:34 +00:00
|
|
|
CONFIGURE_ARGS+= --with-openal=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-openal=no
|
|
|
|
.endif
|
|
|
|
|
2013-05-31 14:40:56 +00:00
|
|
|
.if ${PORT_OPTIONS:MSDL_MIXER}
|
2010-01-26 22:57:34 +00:00
|
|
|
USE_SDL+= mixer
|
|
|
|
CONFIGURE_ARGS+= --with-sdlmixer=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-sdlmixer=no
|
|
|
|
.endif
|
2009-04-29 00:11:21 +00:00
|
|
|
|
|
|
|
do-install:
|
2013-08-02 08:14:21 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
2013-05-31 14:40:56 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${MAN6PREFIX}/man/man6
|
2009-04-29 00:11:21 +00:00
|
|
|
|
|
|
|
post-install:
|
2013-08-02 08:14:21 +00:00
|
|
|
@${ECHO_MSG}
|
2009-04-29 00:11:21 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2013-08-02 08:14:21 +00:00
|
|
|
@${ECHO_MSG}
|
2009-04-29 00:11:21 +00:00
|
|
|
|
2011-11-07 04:24:55 +00:00
|
|
|
.include <bsd.port.mk>
|