mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
d4fa20069e
PR: 198684 Submitted by: lightside@gmx.com Approved by: maintainer timeout
64 lines
1.5 KiB
Makefile
64 lines
1.5 KiB
Makefile
# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= naev
|
|
PORTVERSION= 0.6.0
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}/
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= 2D action/RPG space game
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
|
|
libfreetype.so:${PORTSDIR}/print/freetype2 \
|
|
libvorbisfile.so:${PORTSDIR}/audio/libvorbis \
|
|
libzip.so:${PORTSDIR}/archivers/libzip \
|
|
libcsparse.so:${PORTSDIR}/math/suitesparse
|
|
RUN_DEPENDS= ${DATADIR}/ndata-${PORTVERSION}.zip:${PORTSDIR}/games/naev-data
|
|
|
|
USES= autoreconf:build gmake pkgconfig tar:bzip2
|
|
GNU_CONFIGURE= yes
|
|
USE_GL= glu
|
|
USE_GNOME= libxml2
|
|
|
|
CONFIGURE_ARGS= --with-ndata-path="${DATADIR}/ndata-${PORTVERSION}.zip" \
|
|
--enable-debug=no
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LIBS+= -L${LOCALBASE}/lib -lm
|
|
|
|
PORTDATA= *
|
|
PORTDOCS= *
|
|
|
|
PLIST_FILES= bin/${PORTNAME} man/man6/naev.6.gz \
|
|
share/applications/${PORTNAME}.desktop \
|
|
share/appdata/${PORTNAME}.appdata.xml \
|
|
share/pixmaps/${PORTNAME}.png
|
|
|
|
OPTIONS_DEFINE= DOCS OPENAL SDL2 SDL_MIXER
|
|
OPTIONS_DEFAULT= OPENAL SDL2 SDL_MIXER
|
|
|
|
OPENAL_USES= openal
|
|
OPENAL_CONFIGURE_WITH= openal
|
|
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.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MSDL_MIXER}
|
|
. if ${PORT_OPTIONS:MSDL2}
|
|
USE_SDL+= mixer2
|
|
. else
|
|
USE_SDL+= mixer
|
|
. endif
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|