mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
e3b4370e6b
Changes: https://github.com/letoram/arcan/releases/tag/0.6.1.1 Reported by: Repology
113 lines
3.6 KiB
Makefile
113 lines
3.6 KiB
Makefile
PORTNAME= arcan
|
|
DISTVERSION= 0.6.1.1
|
|
CATEGORIES= multimedia
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= Display Server, Multimedia Framework, Game Engine
|
|
|
|
LICENSE= BSD3CLAUSE GPLv2+ LGPL21+
|
|
LICENSE_COMB= multi
|
|
LICENSE_FILE_BSD3CLAUSE=${WRKSRC:H}/data/distr/LICENSE.BSD
|
|
LICENSE_FILE_GPLv2+ = ${WRKSRC:H}/data/distr/LICENSE.GPL
|
|
LICENSE_FILE_LGPL21+ = ${WRKSRC:H}/data/distr/LICENSE.LGPL
|
|
|
|
BUILD_DEPENDS= evdev-proto>0:devel/evdev-proto
|
|
LIB_DEPENDS= libdrm.so:graphics/libdrm \
|
|
libfreetype.so:print/freetype2
|
|
RUN_DEPENDS= mesa-dri>0:graphics/mesa-dri
|
|
|
|
USES= cmake compiler:c11 gl iconv openal pkgconfig sqlite
|
|
USE_GITHUB= yes
|
|
USE_GL= egl gbm gl
|
|
USE_LDCONFIG= yes
|
|
GH_ACCOUNT= letoram
|
|
WRKSRC_SUBDIR= src
|
|
CMAKE_ON= HYBRID_HEADLESS
|
|
CMAKE_OFF= STATIC_LIBUVC
|
|
CMAKE_ARGS= -DDISTR_TAG:STRING="portbld" \
|
|
-DENGINE_BUILDTAG:STRING="${DISTVERSIONFULL}"
|
|
LDFLAGS+= -Wl,--as-needed # bzip2, ffmpeg, librt, libutil, lzma, zlib
|
|
LDFLAGS_i386= -Wl,-z,notext
|
|
|
|
OPTIONS_DEFINE= ESPEAK FFMPEG LUAJIT MANPAGES SDL SUID TESSERACT UVC VLC VNC WAYLAND
|
|
OPTIONS_DEFAULT=ESPEAK FFMPEG LUAJIT MANPAGES SDL SUID TESSERACT UVC VLC VNC WAYLAND
|
|
OPTIONS_SUB= yes
|
|
|
|
ESPEAK_DESC= Text to speech via eSpeak
|
|
ESPEAK_LIB_DEPENDS= libespeak.so:audio/espeak
|
|
|
|
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
|
|
|
|
MANPAGES_USE= RUBY=yes
|
|
MANPAGES_VARS= RUBY_NO_RUN_DEPENDS=yes
|
|
|
|
LUAJIT_DESC= Use LuaJIT instead of standard Lua
|
|
LUAJIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit-openresty
|
|
LUAJIT_USES_OFF= lua:51
|
|
LUAJIT_CMAKE_BOOL_OFF= DISABLE_JIT
|
|
|
|
SDL_USES= sdl
|
|
SDL_USE= SDL=sdl2
|
|
SDL_CMAKE_BOOL= HYBRID_SDL
|
|
|
|
SUID_DESC= setuid bit on "${PORTNAME}" binary
|
|
SUID_PLIST_SUB= MAYBE_SUID="@(,,4755) "
|
|
SUID_PLIST_SUB_OFF= MAYBE_SUID="@(,,0755) "
|
|
|
|
TESSERACT_DESC= Optical Character Recognition via Tesseract
|
|
TESSERACT_LIB_DEPENDS= libtesseract.so:graphics/tesseract
|
|
|
|
VLC_DESC= Video decode via libvlc
|
|
VLC_LIB_DEPENDS= libvlc.so:multimedia/vlc
|
|
|
|
UVC_DESC= USB video cameras via libuvc
|
|
UVC_LIB_DEPENDS= libuvc.so:multimedia/libuvc
|
|
UVC_CMAKE_BOOL= FSRV_DECODE_UVC
|
|
|
|
VNC_DESC= VNC client/server support
|
|
VNC_LIB_DEPENDS= libvncserver.so:net/libvncserver
|
|
|
|
WAYLAND_BUILD_DEPENDS= wayland-protocols>0:graphics/wayland-protocols
|
|
WAYLAND_LIB_DEPENDS= libwayland-server.so:graphics/wayland \
|
|
libxcb-icccm.so:x11/xcb-util-wm \
|
|
libxkbcommon.so:x11/libxkbcommon
|
|
WAYLAND_RUN_DEPENDS= xwayland-devel>0:x11-servers/xwayland-devel
|
|
WAYLAND_USES= xorg
|
|
WAYLAND_USE= XORG=xcb
|
|
WAYLAND_CMAKE_BOOL_OFF= DISABLE_WAYLAND
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -i.prefix 's,/usr/local,${PREFIX},g' \
|
|
${WRKSRC:H}/doc/${PORTNAME}.1 \
|
|
${WRKSRC}/engine/arcan_vr.c \
|
|
${WRKSRC}/frameserver/decode/default/decode_av.c \
|
|
${WRKSRC}/frameserver/terminal/default/arcterm.c \
|
|
${WRKSRC}/frameserver/terminal/default/cli.c \
|
|
${WRKSRC}/frameserver/terminal/default/cli_builtin.c \
|
|
${WRKSRC}/platform/posix/paths.c \
|
|
${WRKSRC}/shmif/arcan_shmif_debugif.c
|
|
|
|
pre-configure-MANPAGES-on:
|
|
@${RUBY} -C ${WRKSRC:H}/doc -Ku docgen.rb mangen 2>/dev/null
|
|
|
|
post-patch-ESPEAK-off:
|
|
@${REINPLACE_CMD} -i.noespeak '/find.*Espeak/d' \
|
|
${WRKSRC}/frameserver/decode/default/CMakeLists.txt
|
|
|
|
post-patch-FFMPEG-off:
|
|
@${REINPLACE_CMD} -i.noffmpeg '/pkg.*FFMPEG/d' \
|
|
${WRKSRC}/a12/CMakeLists.txt \
|
|
${WRKSRC}/frameserver/decode/default/CMakeLists.txt \
|
|
${WRKSRC}/frameserver/encode/default/CMakeLists.txt
|
|
|
|
post-patch-TESSERACT-off:
|
|
@${REINPLACE_CMD} -i.notesseract '/pkg.*tesseract/d' \
|
|
${WRKSRC}/frameserver/encode/default/CMakeLists.txt
|
|
|
|
post-patch-VNC-off:
|
|
@${REINPLACE_CMD} -i.novnc '/pkg.*libvnc/d' \
|
|
${WRKSRC}/frameserver/encode/default/CMakeLists.txt \
|
|
${WRKSRC}/frameserver/remoting/default/CMakeLists.txt
|
|
|
|
.include <bsd.port.mk>
|