1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/games/naev/Makefile

67 lines
1.5 KiB
Makefile
Raw Normal View History

# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$
PORTNAME= naev
2012-08-09 21:01:37 +00:00
PORTVERSION= 0.5.3
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION} \
${MASTER_SITE_GOOGLE_CODE}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= acm@FreeBSD.org
COMMENT= 2D action/RPG space game
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png \
libfreetype.so:${PORTSDIR}/print/freetype2 \
libvorbisfile.so:${PORTSDIR}/audio/libvorbis
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
USE_BZIP2= yes
2010-01-26 22:57:34 +00:00
GNU_CONFIGURE= yes
USE_GL= glu
USE_GNOME= libxml2
2010-01-26 22:57:34 +00:00
USE_SDL= sdl image
2010-01-26 22:57:34 +00:00
CONFIGURE_ARGS= --with-ndata-path=${DATADIR}/ndata-${PORTVERSION}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
2010-01-26 22:57:34 +00:00
MAN6= naev.6
PLIST_FILES= bin/${PORTNAME}
SUB_FILES= pkg-message
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
NO_STAGE= yes
2011-11-09 07:02:24 +00:00
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENAL}
USES+= openal
2010-01-26 22:57:34 +00:00
CONFIGURE_ARGS+= --with-openal=yes
.else
CONFIGURE_ARGS+= --with-openal=no
.endif
.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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${MAN6PREFIX}/man/man6
post-install:
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
2011-11-07 04:24:55 +00:00
.include <bsd.port.mk>