Lines 1-8
Link Here
|
1 |
PORTNAME= naev |
1 |
PORTNAME= naev |
2 |
PORTVERSION= 0.7.0 |
2 |
PORTVERSION= 0.10.5 |
3 |
PORTREVISION= 12 |
3 |
DISTVERSIONSUFFIX= -source |
4 |
CATEGORIES= games |
4 |
CATEGORIES= games |
5 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION}/ |
5 |
MASTER_SITES= https://github.com/naev/naev/releases/download/v${PORTVERSION}/ |
6 |
|
6 |
|
7 |
MAINTAINER= acm@FreeBSD.org |
7 |
MAINTAINER= acm@FreeBSD.org |
8 |
COMMENT= 2D action/RPG space game |
8 |
COMMENT= 2D action/RPG space game |
Lines 11-79
WWW= https://naev.org/
Link Here
|
11 |
LICENSE= GPLv3 |
11 |
LICENSE= GPLv3 |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
|
13 |
|
14 |
BROKEN_FreeBSD_13= ld: error: duplicate symbol: nglActiveTexture |
14 |
MY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mutagen>0:audio/py-mutagen@${PY_FLAVOR} \ |
15 |
BROKEN_FreeBSD_14= ld: error: duplicate symbol: nglActiveTexture |
15 |
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} |
16 |
|
16 |
BUILD_DEPENDS= ${MY_DEPENDS} |
17 |
LIB_DEPENDS= libpng.so:graphics/png \ |
17 |
LIB_DEPENDS= libamd.so:math/suitesparse-amd \ |
|
|
18 |
libbacktrace.so:devel/libbacktrace \ |
19 |
libblas.so:math/blas \ |
20 |
libcholmod.so:math/suitesparse-cholmod \ |
21 |
libcolamd.so:math/suitesparse-colamd \ |
22 |
libcxsparse.so:math/suitesparse-cxsparse \ |
23 |
libenet.so:net/enet \ |
18 |
libfreetype.so:print/freetype2 \ |
24 |
libfreetype.so:print/freetype2 \ |
|
|
25 |
libglpk.so:math/glpk \ |
26 |
libopenblas.so:math/openblas \ |
27 |
libpcre2-8.so:devel/pcre2 \ |
28 |
libphysfs.so:devel/physfs \ |
29 |
libpng.so:graphics/png \ |
30 |
libunibreak.so:textproc/libunibreak \ |
19 |
libvorbisfile.so:audio/libvorbis \ |
31 |
libvorbisfile.so:audio/libvorbis \ |
|
|
32 |
libwebp.so:graphics/webp \ |
20 |
libzip.so:archivers/libzip |
33 |
libzip.so:archivers/libzip |
21 |
RUN_DEPENDS= ${LOCALBASE}/${DATADIR_REL}/${DISTNAME}-ndata.zip:games/naev-data |
34 |
RUN_DEPENDS= ${DEPENDS} |
22 |
|
35 |
|
23 |
USES= autoreconf:build compiler:features gl gmake gnome pkgconfig sdl \ |
36 |
USES= desktop-file-utils gettext gl gnome luajit:luajit-openresty \ |
24 |
tar:bzip2 |
37 |
meson openal pkgconfig python sdl tar:xz |
25 |
GNU_CONFIGURE= yes |
|
|
26 |
USE_GL= gl glu |
38 |
USE_GL= gl glu |
27 |
USE_GNOME= libxml2 |
39 |
USE_GNOME= intltool libxml2 |
28 |
|
40 |
USE_SDL= sdl2 image2 |
29 |
CONFIGURE_ARGS= --with-ndata-path="${DATADIR}/${DISTNAME}-ndata.zip" \ |
|
|
30 |
--enable-debug=no |
31 |
CPPFLAGS+= -I${LOCALBASE}/include |
32 |
LIBS+= -L${LOCALBASE}/lib -lm |
33 |
|
34 |
PORTDATA= * |
35 |
PORTDOCS= * |
36 |
|
41 |
|
37 |
PLIST_FILES= bin/${PORTNAME} man/man6/${PORTNAME}.6.gz \ |
42 |
MESON_ARGS= -Ddocs_c=disabled -Ddocs_lua=disabled |
38 |
share/applications/${PORTNAME}.desktop \ |
|
|
39 |
share/appdata/${PORTNAME}.appdata.xml \ |
40 |
share/pixmaps/${PORTNAME}.png |
41 |
|
43 |
|
42 |
OPTIONS_DEFINE= DOCS OPENAL SDL2 SDL_MIXER |
44 |
# work around meson not looking for headers/libs in /usr/local |
43 |
OPTIONS_DEFAULT= LUA_JIT OPENAL SDL2 SDL_MIXER |
45 |
CFLAGS+= -I${LOCALBASE}/include |
44 |
OPTIONS_DEFAULT_powerpc64= LUA_SHARED |
46 |
LDFLAGS+= -L${LOCALBASE}/lib |
45 |
OPTIONS_EXCLUDE_powerpc64= LUA_JIT |
|
|
46 |
OPTIONS_SINGLE= LUA |
47 |
OPTIONS_SINGLE_LUA= LUA_INTERNAL LUA_SHARED LUA_JIT |
48 |
|
47 |
|
49 |
LUA_INTERNAL_DESC= Use bundled Lua |
48 |
WRKSRC= work/${PORTNAME}-${DISTVERSION} |
50 |
LUA_INTERNAL_CONFIGURE_ON= --enable-lua=internal |
|
|
51 |
LUA_SHARED_DESC= Use Lua from lang/lua51 |
52 |
LUA_SHARED_CONFIGURE_ON= --enable-lua=shared |
53 |
LUA_SHARED_USES= lua:51 |
54 |
LUA_JIT_DESC= Use LuaJIT from lang/luajit |
55 |
LUA_JIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit |
56 |
OPENAL_USES= openal |
57 |
OPENAL_CONFIGURE_WITH= openal |
58 |
SDL_MIXER_DESC= SDL_mixer sound backend |
59 |
SDL_MIXER_CONFIGURE_WITH= sdlmixer |
60 |
SDL2_DESC= Use SDL2 instead of SDL |
61 |
SDL2_CONFIGURE_WITH= sdl2 |
62 |
SDL2_USE= SDL=sdl2 |
63 |
SDL2_USE_OFF= SDL=sdl |
64 |
|
49 |
|
65 |
.include <bsd.port.pre.mk> |
50 |
PORTDATA= * |
66 |
|
|
|
67 |
.if ${COMPILER_TYPE} == "gcc" |
68 |
USE_GCC= yes |
69 |
.endif |
70 |
|
71 |
.if ${PORT_OPTIONS:MSDL_MIXER} |
72 |
. if ${PORT_OPTIONS:MSDL2} |
73 |
USE_SDL+= mixer2 |
74 |
. else |
75 |
USE_SDL+= mixer |
76 |
. endif |
77 |
.endif |
78 |
|
51 |
|
79 |
.include <bsd.port.post.mk> |
52 |
.include <bsd.port.mk> |