multimedia/kodi-devel: Unbreak GBM and WAYLAND
- Disable them on FreeBSD 10 as they are unlikely to work there - Make sure the necessary evdev headers can be found xbmc/windowing/wayland/WindowDecorator.cpp:16:10: fatal error: 'linux/input-event-codes.h' file not found #include <linux/input-event-codes.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~ - Explicitly link with libpthread and librt to get past the configure stage with GBM=on /usr/local/lib/libepoll-shim.so: undefined reference to `timer_settime' /usr/local/lib/libepoll-shim.so: undefined reference to `timer_delete' /usr/local/lib/libepoll-shim.so: undefined reference to `pthread_getthreadid_np' /usr/local/lib/libepoll-shim.so: undefined reference to `pthread_create' /usr/local/lib/libepoll-shim.so: undefined reference to `timer_create' /usr/local/lib/libepoll-shim.so: undefined reference to `timer_getoverrun' PR: 232299
This commit is contained in:
parent
9974539960
commit
6aca968342
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=482209
@ -86,6 +86,7 @@ OPTIONS_SINGLE= PLATFORM
|
||||
OPTIONS_SINGLE_PLATFORM= GBM RPI WAYLAND X11
|
||||
OPTIONS_EXCLUDE_amd64= RPI
|
||||
OPTIONS_EXCLUDE_i386= RPI
|
||||
OPTIONS_EXCLUDE_FreeBSD_10= GBM WAYLAND
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
OPTIONS_GROUP= SOUND
|
||||
@ -105,11 +106,11 @@ CEC_CMAKE_BOOL= ENABLE_CEC
|
||||
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus
|
||||
DBUS_CMAKE_BOOL= ENABLE_DBUS
|
||||
|
||||
GBM_BUILD_DEPENDS= v4l_compat>=0:multimedia/v4l_compat
|
||||
GBM_CMAKE_ON= -DCORE_PLATFORM_NAME:STRING="gbm" \
|
||||
-DGBM_RENDER_SYSTEM:STRING="gl"
|
||||
GBM_CFLAGS= -I${LOCALBASE}/include/libepoll-shim
|
||||
GBM_LDFLAGS= -L${LOCALBASE}/lib -lepoll-shim
|
||||
GBM_CFLAGS= -I${LOCALBASE}/include/libepoll-shim \
|
||||
-I${WRKDIR}/evdev-proto
|
||||
GBM_LDFLAGS= -L${LOCALBASE}/lib -lepoll-shim -lpthread -lrt
|
||||
GBM_LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \
|
||||
libinput.so:x11/libinput \
|
||||
libxkbcommon.so:x11/libxkbcommon
|
||||
@ -163,8 +164,8 @@ VAAPI_LIB_DEPENDS= libva.so:multimedia/libva
|
||||
VDPAU_CMAKE_BOOL= ENABLE_VDPAU
|
||||
VDPAU_LIB_DEPENDS= libvdpau.so:multimedia/libvdpau
|
||||
|
||||
WAYLAND_BUILD_DEPENDS= v4l_compat>=0:multimedia/v4l_compat \
|
||||
wayland-protocols>=0:graphics/wayland-protocols
|
||||
WAYLAND_BUILD_DEPENDS= wayland-protocols>=0:graphics/wayland-protocols
|
||||
WAYLAND_CFLAGS= -I${WRKDIR}/evdev-proto
|
||||
WAYLAND_CMAKE_ON= -DCORE_PLATFORM_NAME:STRING="wayland" \
|
||||
-DWAYLAND_RENDER_SYSTEM:STRING="gl"
|
||||
WAYLAND_LIB_DEPENDS= libinput.so:x11/libinput \
|
||||
@ -184,6 +185,15 @@ X11_USE= XORG=x11,xext,xrandr
|
||||
PORTDATA= *
|
||||
.endif
|
||||
|
||||
# Avoid patching evdev header locations (too much pointless churn)
|
||||
post-extract-GBM-on:
|
||||
@${MKDIR} ${WRKDIR}/evdev-proto/linux
|
||||
@${CP} /usr/include/dev/evdev/* ${WRKDIR}/evdev-proto/linux
|
||||
|
||||
post-extract-WAYLAND-on:
|
||||
@${MKDIR} ${WRKDIR}/evdev-proto/linux
|
||||
@${CP} /usr/include/dev/evdev/* ${WRKDIR}/evdev-proto/linux
|
||||
|
||||
post-patch:
|
||||
# Do not try to download dvdnav/dvdread during the build, instead
|
||||
# we'll manually point the build to the system's libdvd{nav,read}.so
|
||||
|
Loading…
Reference in New Issue
Block a user