Lines 2-11
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= RetroArch |
4 |
PORTNAME= RetroArch |
5 |
PORTVERSION= 1.3.6 |
5 |
PORTVERSION= 1.7.1 |
6 |
DISTVERSIONPREFIX= v |
6 |
DISTVERSIONPREFIX= v |
7 |
PORTREVISION= 9 |
7 |
CATEGORIES= games emulators |
8 |
CATEGORIES= games |
|
|
9 |
|
8 |
|
10 |
MAINTAINER= yuri@FreeBSD.org |
9 |
MAINTAINER= yuri@FreeBSD.org |
11 |
COMMENT= Cross-platform entertainment system based on libretro API |
10 |
COMMENT= Cross-platform entertainment system based on libretro API |
Lines 19-30
LIB_DEPENDS= libxkbcommon.so:x11/libxkbcommon \
Link Here
|
19 |
|
18 |
|
20 |
BROKEN_powerpc64= fails to compile: features_cpu.c: undefined reference to __mftb |
19 |
BROKEN_powerpc64= fails to compile: features_cpu.c: undefined reference to __mftb |
21 |
|
20 |
|
22 |
OPTIONS_DEFINE= FFMPEG OSS JACK PULSEAUDIO ALSA SDL OPENGL OPENAL NETPLAY PYTHON V4L FREETYPE FBO |
21 |
OPTIONS_DEFINE= FFMPEG OSS JACK PULSEAUDIO ALSA SDL OPENGL OPENAL PYTHON V4L FREETYPE WAYLAND |
23 |
OPTIONS_DEFAULT=FFMPEG OSS PULSEAUDIO SDL OPENGL OPENAL NETPLAY PYTHON V4L FREETYPE FBO |
22 |
OPTIONS_DEFAULT=FFMPEG OSS PULSEAUDIO SDL OPENGL OPENAL PYTHON V4L FREETYPE |
24 |
FFMPEG_DESC= On-the-fly recording of gameplay with libavcodec |
23 |
FFMPEG_DESC= On-the-fly recording of gameplay with libavcodec |
25 |
NETPLAY_DESC= Peer-to-peer netplay |
|
|
26 |
PYTHON_DESC= Script support in shaders |
24 |
PYTHON_DESC= Script support in shaders |
27 |
FBO_DESC= OpenGL render-to-texture |
25 |
WAYLAND_DESC= Wayland display support |
28 |
|
26 |
|
29 |
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg |
27 |
FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg |
30 |
FFMPEG_CONFIGURE_ENABLE=ffmpeg |
28 |
FFMPEG_CONFIGURE_ENABLE=ffmpeg |
Lines 42-67
OPENGL_USE= GL=gl,egl,gbm
Link Here
|
42 |
OPENGL_CONFIGURE_ENABLE=opengl |
40 |
OPENGL_CONFIGURE_ENABLE=opengl |
43 |
OPENAL_USES= openal:soft |
41 |
OPENAL_USES= openal:soft |
44 |
OPENAL_CONFIGURE_ENABLE=al |
42 |
OPENAL_CONFIGURE_ENABLE=al |
45 |
NETPLAY_CONFIGURE_ENABLE= netplay |
|
|
46 |
PYTHON_CONFIGURE_ENABLE=python |
43 |
PYTHON_CONFIGURE_ENABLE=python |
47 |
PYTHON_USES= python:3.4+ |
44 |
PYTHON_USES= python:3.6 |
48 |
V4L_LIB_DEPENDS= libv4l2.so:multimedia/libv4l |
45 |
V4L_LIB_DEPENDS= libv4l2.so:multimedia/libv4l |
49 |
V4L_BUILD_DEPENDS= v4l_compat>0:multimedia/v4l_compat |
46 |
V4L_BUILD_DEPENDS= v4l_compat>0:multimedia/v4l_compat |
50 |
V4L_CONFIGURE_ENABLE= v4l2 |
47 |
V4L_CONFIGURE_ENABLE= v4l2 |
51 |
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2 |
48 |
FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2 |
52 |
FREETYPE_CONFIGURE_ENABLE= freetype |
49 |
FREETYPE_CONFIGURE_ENABLE= freetype |
53 |
FBO_CONFIGURE_ENABLE= fbo |
50 |
WAYLAND_BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto \ |
|
|
51 |
${LOCALBASE}/include/linux/kd.h:graphics/svgalib |
52 |
WAYLAND_LIB_DEPENDS= libwayland-client.so:graphics/wayland \ |
53 |
libwayland-server.so:graphics/wayland \ |
54 |
libwayland-egl.so:graphics/mesa-libs |
55 |
WAYLAND_CONFIGURE_ENABLE= wayland |
54 |
|
56 |
|
55 |
CFLAGS+= -pthread |
57 |
CONFIGURE_ARGS+=--enable-threads --disable-udev |
56 |
LDFLAGS+= -pthread |
|
|
57 |
CONFIGURE_ARGS+=--enable-threads |
58 |
CONFIGURE_ENV+= MAN_DIR=${MANPREFIX}/man |
58 |
CONFIGURE_ENV+= MAN_DIR=${MANPREFIX}/man |
59 |
|
59 |
|
60 |
USES= compiler:c++11-lib gmake pkgconfig shebangfix |
60 |
USES= compiler:c++11-lib gmake pkgconfig shebangfix |
61 |
USE_GITHUB= yes |
61 |
USE_GITHUB= yes |
62 |
GH_ACCOUNT= libretro |
62 |
GH_ACCOUNT= libretro |
63 |
SUB_FILES= pkg-message |
63 |
SUB_FILES= pkg-message |
64 |
GNU_CONFIGURE= yes |
64 |
HAS_CONFIGURE= yes |
65 |
CONFIGURE_ARGS+=--global-config-dir=${LOCALBASE}/etc |
65 |
CONFIGURE_ARGS+=--global-config-dir=${LOCALBASE}/etc |
66 |
USE_XORG= x11 xcb xext xinerama xv xxf86vm |
66 |
USE_XORG= x11 xcb xext xinerama xv xxf86vm |
67 |
LLD_UNSAFE= yes |
67 |
LLD_UNSAFE= yes |
Lines 87-93
post-patch-PYTHON-on:
Link Here
|
87 |
|
87 |
|
88 |
post-install: |
88 |
post-install: |
89 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/retroarch |
89 |
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/retroarch |
90 |
@${REINPLACE_CMD} -e 's|# libretro_directory =|libretro_directory = "${PREFIX}/libexec/libretro"|' \ |
90 |
@${REINPLACE_CMD} \ |
|
|
91 |
-e 's|# libretro_directory =|libretro_directory = "${PREFIX}/lib/libretro"|' \ |
92 |
-e 's|# libretro_info_path =|libretro_info_path = "${PREFIX}/share/libretro/info"|' \ |
93 |
-e 's|# assets_directory =|assets_directory = "${PREFIX}/share/libretro/assets"|' \ |
94 |
-e 's|# video_shader_dir =|video_shader_dir = "${PREFIX}/share/libretro/shaders"|' \ |
95 |
-e 's|# video_filter_dir =|video_filter_dir = "${PREFIX}/lib/retroarch/filters/video"|' \ |
96 |
-e 's|# audio_filter_dir =|audio_filter_dir = "${PREFIX}/lib/retroarch/filters/audio"|' \ |
97 |
-e 's|# joypad_autoconfig_dir =|joypad_autoconfig_dir = "${PREFIX}/share/retroarch/autoconfig"|' \ |
98 |
-e 's|# menu_show_core_updater = true|menu_show_core_updater = false|' \ |
91 |
${STAGEDIR}${PREFIX}/etc/retroarch.cfg |
99 |
${STAGEDIR}${PREFIX}/etc/retroarch.cfg |
92 |
|
100 |
|
93 |
.include <bsd.port.mk> |
101 |
.include <bsd.port.mk> |