1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/games/naev/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

77 lines
1.9 KiB
Makefile

# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$
PORTNAME= naev
PORTVERSION= 0.7.0
PORTREVISION= 6
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
MAINTAINER= acm@FreeBSD.org
COMMENT= 2D action/RPG space game
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libpng.so:graphics/png \
libfreetype.so:print/freetype2 \
libvorbisfile.so:audio/libvorbis \
libzip.so:archivers/libzip
RUN_DEPENDS= ${LOCALBASE}/${DATADIR_REL}/${DISTNAME}-ndata.zip:games/naev-data
USES= autoreconf:build compiler:features gmake pkgconfig tar:bzip2
GNU_CONFIGURE= yes
USE_GL= gl glu
USE_GNOME= libxml2
CONFIGURE_ARGS= --with-ndata-path="${DATADIR}/${DISTNAME}-ndata.zip" \
--enable-debug=no
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lm
PORTDATA= *
PORTDOCS= *
PLIST_FILES= bin/${PORTNAME} man/man6/${PORTNAME}.6.gz \
share/applications/${PORTNAME}.desktop \
share/appdata/${PORTNAME}.appdata.xml \
share/pixmaps/${PORTNAME}.png
OPTIONS_DEFINE= DOCS OPENAL SDL2 SDL_MIXER
OPTIONS_DEFAULT= LUA_JIT OPENAL SDL2 SDL_MIXER
OPTIONS_SINGLE= LUA
OPTIONS_SINGLE_LUA= LUA_INTERNAL LUA_SHARED LUA_JIT
LUA_INTERNAL_DESC= Use bundled Lua
LUA_INTERNAL_CONFIGURE_ON= --enable-lua=internal
LUA_SHARED_DESC= Use Lua from lang/lua51
LUA_SHARED_CONFIGURE_ON= --enable-lua=shared
LUA_SHARED_USES= lua:51
LUA_JIT_DESC= Use LuaJIT from lang/luajit
LUA_JIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit
OPENAL_USES= openal
OPENAL_CONFIGURE_WITH= openal
OPENAL_VARS= LLD_UNSAFE=yes # cf. PR 226980
SDL_MIXER_DESC= SDL_mixer sound backend
SDL_MIXER_CONFIGURE_WITH= sdlmixer
SDL2_DESC= Use SDL2 instead of SDL
SDL2_CONFIGURE_WITH= sdl2
SDL2_USE= SDL=sdl2
SDL2_USE_OFF= SDL=sdl
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == "gcc"
USE_GCC= yes
.endif
.if ${PORT_OPTIONS:MSDL_MIXER}
. if ${PORT_OPTIONS:MSDL2}
USE_SDL+= mixer2
. else
USE_SDL+= mixer
. endif
.endif
.include <bsd.port.post.mk>