From 08b4de5500ca52f6db1b5ba41984af01c5e18180 Mon Sep 17 00:00:00 2001 From: Eugene Grosbein Date: Tue, 6 Nov 2018 19:00:50 +0000 Subject: [PATCH] New port multimedia/kodi-addon-peripheral-joystick Joystick support for Kodi WWW: https://github.com/xbmc/peripheral.joystick PR: 231227 Submitted by: Ivan Rozhuk --- multimedia/Makefile | 1 + .../kodi-addon-peripheral-joystick/Makefile | 41 ++++++++ .../kodi-addon-peripheral-joystick/distinfo | 3 + .../kodi-addon-peripheral-joystick/pkg-descr | 3 + .../pkg-message | 7 ++ .../kodi-addon-peripheral-joystick/pkg-plist | 97 +++++++++++++++++++ 6 files changed, 152 insertions(+) create mode 100644 multimedia/kodi-addon-peripheral-joystick/Makefile create mode 100644 multimedia/kodi-addon-peripheral-joystick/distinfo create mode 100644 multimedia/kodi-addon-peripheral-joystick/pkg-descr create mode 100644 multimedia/kodi-addon-peripheral-joystick/pkg-message create mode 100644 multimedia/kodi-addon-peripheral-joystick/pkg-plist diff --git a/multimedia/Makefile b/multimedia/Makefile index 96552e8d0ca8..8870688315e6 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -184,6 +184,7 @@ SUBDIR += kissdx SUBDIR += kmplayer-kde4 SUBDIR += kodi + SUBDIR += kodi-addon-peripheral-joystick SUBDIR += kodi-addon-pvr-hts SUBDIR += kodi-addon-pvr-iptvsimple SUBDIR += kodi-devel diff --git a/multimedia/kodi-addon-peripheral-joystick/Makefile b/multimedia/kodi-addon-peripheral-joystick/Makefile new file mode 100644 index 000000000000..c6405394c3f2 --- /dev/null +++ b/multimedia/kodi-addon-peripheral-joystick/Makefile @@ -0,0 +1,41 @@ +# Created by: Rozhuk Ivan 2018 +# $FreeBSD$ + +PORTNAME= kodi-addon-peripheral-joystick +PORTVERSION= 1.3.4 +DISTVERSIONPREFIX=v +CATEGORIES= multimedia + +MAINTAINER= rozhuk.im@gmail.com +COMMENT= Joystick support for Kodi + +LICENSE= GPLv2+ + +BUILD_DEPENDS= ${LOCALBASE}/lib/kodi/KodiConfig.cmake:multimedia/kodi +LIB_DEPENDS= libp8-platform.so:devel/p8-platform \ + libkodiplatform.so:devel/kodi-platform \ + libudev.so:devel/libudev-devd +RUN_DEPENDS= kodi:multimedia/kodi + +USES= cmake:outsource,noninja + +USE_GITHUB= yes +GH_ACCOUNT= xbmc +GH_PROJECT= peripheral.joystick + +post-extract: + @${MKDIR} ${WRKSRC}/src/linux/ + @${CP} -f ${FILESDIR}/input.h ${WRKSRC}/src/linux/ + @${CP} -f ${FILESDIR}/input-event-codes.h ${WRKSRC}/src/linux/ + @${CP} -f ${FILESDIR}/joystick.h ${WRKSRC}/src/linux/ + @${CP} -f ${FILESDIR}/types.h ${WRKSRC}/src/linux/ + +post-patch: + @${REINPLACE_CMD} -e \ + 's|if(HAVE_LINUX_JOYSTICK_H)|if(1)|g ; \ + s|if(UDEV_FOUND)|if(1)|g' \ + ${WRKSRC}/CMakeLists.txt + @${REINPLACE_CMD} -e 's|#define __stat64 stat64|#define __stat64 stat|g' \ + ${WRKSRC}/src/utils/CommonIncludes.h + +.include diff --git a/multimedia/kodi-addon-peripheral-joystick/distinfo b/multimedia/kodi-addon-peripheral-joystick/distinfo new file mode 100644 index 000000000000..ea73b1b7bde7 --- /dev/null +++ b/multimedia/kodi-addon-peripheral-joystick/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1536326539 +SHA256 (xbmc-peripheral.joystick-v1.3.4_GH0.tar.gz) = 9a183e1f92ff2c68816bfa0056c65585a3e1129d924326359d7a5dfbcba6c56a +SIZE (xbmc-peripheral.joystick-v1.3.4_GH0.tar.gz) = 84198 diff --git a/multimedia/kodi-addon-peripheral-joystick/pkg-descr b/multimedia/kodi-addon-peripheral-joystick/pkg-descr new file mode 100644 index 000000000000..e52e1ac27339 --- /dev/null +++ b/multimedia/kodi-addon-peripheral-joystick/pkg-descr @@ -0,0 +1,3 @@ +Joystick support for Kodi + +WWW: https://github.com/xbmc/peripheral.joystick diff --git a/multimedia/kodi-addon-peripheral-joystick/pkg-message b/multimedia/kodi-addon-peripheral-joystick/pkg-message new file mode 100644 index 000000000000..ed441254b284 --- /dev/null +++ b/multimedia/kodi-addon-peripheral-joystick/pkg-message @@ -0,0 +1,7 @@ + +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +Do not forget install webcamd with joystick support and run it, +/dev/input/js* device is required. + +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! diff --git a/multimedia/kodi-addon-peripheral-joystick/pkg-plist b/multimedia/kodi-addon-peripheral-joystick/pkg-plist new file mode 100644 index 000000000000..8fd07e8129aa --- /dev/null +++ b/multimedia/kodi-addon-peripheral-joystick/pkg-plist @@ -0,0 +1,97 @@ +lib/kodi/addons/peripheral.joystick/peripheral.joystick.so +lib/kodi/addons/peripheral.joystick/peripheral.joystick.so.1.3.4 +lib/kodi/addons/peripheral.joystick/peripheral.joystick.so.17.6 +share/kodi/addons/peripheral.joystick/addon.xml +share/kodi/addons/peripheral.joystick/addon.xml.in +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/android/8Bitdo_Zero_GamePad_v05A0_p3232_11b_1h_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/android/Gamepad_v18D1_p2C40_11b_1h_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/android/Generic_USB_Joystick_v0079_p0006_11b_1h_4a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/android/Generic_X-Box_pad_v046D_pC21D_11b_1h_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/android/Logitech_Gamepad_F310_v046D_pC21D_11b_1h_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/android/NVIDIA_Corporation_NVIDIA_Controller_v01.03_v0955_p7210_11b_1h_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/android/NVIDIA_Corporation_NVIDIA_Controller_v01.04_v0955_p7214_11b_1h_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/android/Sony_Interactive_Entertainment_Wireless_Controller_v054C_p09CC_11b_1h_4a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/android/USB_Gamepad_v0079_p0011_11b_1h.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/android/Xbox_360_Wireless_Receiver_XBOX_v045E_p0291_11b_4a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/android/usb_gamepad_v0810_pE501_11b_2a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/android/virtual-remote_11b.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/application/Keyboard_1.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/8Bitdo_Zero_GamePad_v05A0_p3232_16b_4a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/GamePad_Pro_USB_v0428_p4001_10b_2a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/Gamepad_F310_v046D_pC21D_15b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/Generic_USB_Joystick_v0079_p0006_12b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/Logitech_Dual_Action_v046D_pC216_12b_5a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/PC_USB_Wired_Stick_8838_v0738_p8838_13b_4a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/PLAYSTATION_R_3_Controller_v054C_p0268_19b_4a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/PS_R__Ga_epad_v054C_p0268_19b_4a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/USB_GamePad_v0E8F_p3013_16b_10a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/USB_Gamepad_v0079_p0011_10b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/USB_Joystick_v0E8F_p0003_12b_5a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/Wireless_360_Controller_v045E_p028E_15b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/Wireless_Controller_v054C_p09CC_14b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/Xbox_360_Wired_Controller_v046D_pC21D_15b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/Xbox_One_Wired_Controller_v045E_p02DD_15b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/usb_gamepad____________v0810_pE501_10b_3a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/cocoa/usb_gamepad_v0810_pE501_10b_3a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/Adaptoid_v06F7_p1_14b_2a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/Bluetooth_HID_Port_v05A0_p3232_16b_1h_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/GamePad_Pro_USB_v0428_p4001_10b_2a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/Generic_USB_Joystick_v0079_p0006_12b_1h_5a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/Logitech_Dual_Action_v046D_pC216_12b_1h_4a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/Logitech_RumblePad_2_USB_v046D_pC218_12b_1h_4a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/MAYFLASH_GameCube_Controller_Adapter_v0079_p1844_16b_1h_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/PS_R__Ga_epad_v054C_p0268_19b_5a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/Twin_USB_Joystick_v0810_p0001_12b_1h_4a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/USB_GamePad_v0E8F_p3013_16b_1h_4a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/USB_Gamepad_v0079_p0011_10b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/USB_Joystick_v0E8F_p3_12b_1h_5a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/Wireless_Controller_v054C_p09CC_14b_1h_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/usb_gamepad____________v0810_pE501_10b_2a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/directinput/usb_gamepad_v0810_pE501_10b_2a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/8Bitdo_NES30_GamePad_16b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/8Bitdo_NES30_GamePad_Joystick_22b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/8Bitdo_SFC30_GamePad_Joystick_22b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/8Bitdo_Zero_GamePad_16b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/DragonRise_Inc._Generic_USB_Joystick_12b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Dual_PSX-USB_Adaptor_Dual_PSX-USB_Adaptor_16b_4a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/GPIO_Controller_1_9b_2a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/GPIO_Controller_2_9b_2a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Generic_USB_Joystick_12b_7a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Generic_X-Box_pad_11b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Gravis_GamePad_Pro_USB_10b_2a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/GreenAsia_Inc._USB_Joystick_12b_7a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/HuiJia_USB_GamePad_16b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Logitech_Gamepad_F310_11b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Logitech_Logitech_Dual_Action_12b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Logitech_Logitech_RumblePad_2_USB_12b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/MY-POWER_CO._LTD._2In1_USB_Joystick_12b_7a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Microsoft_X-Box_One_pad__Firmware_2015__11b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/NVIDIA_Corporation_NVIDIA_Controller_v01.03_14b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/PLAYSTATION_R_3_Controller.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/PLAYSTATION_R_3_Controller_17b_29a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/ShanWan_PS_R__Ga_epad_19b_27a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Sony_Computer_Entertainment_Wireless_Controller_14b_18a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Sony_Interactive_Entertainment_Wireless_Controller_14b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Sony_PLAYSTATION_R_3_Controller_19b_27a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/USB_Gamepad_10b_2a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Wireless_Controller_13b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Wireless_Controller_14b_18a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Wireless_Controller_14b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Wish_Technologies_Adaptoid_14b_2a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Xbox_360_Wireless_Receiver_15b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Xbox_360_Wireless_Receiver_15b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Xbox_360_Wireless_Receiver_XBOX_15b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/Xbox_360_Wireless_Receiver_XBOX_15b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/mayflash_limited_MAYFLASH_GameCube_Controller_Adap_16b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/usb_gamepad____________10b_2a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/linux/usb_gamepad_lowercase_10b_2a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/sdl/SDL_Game_Controller_15b_6a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/udev/8Bitdo_Zero_GamePad_v0A12_p0001_16b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/udev/Logitech_Gamepad_F310_v046D_pC21D_11b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/udev/Microsoft_X-Box_One_pad__Firmware_2015__v045E_p02DD_11b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/udev/Sony_Interactive_Entertainment_Wireless_Controller_v054C_p09CC_14b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/udev/Xbox_360_Wireless_Receiver__XBOX__v045E_p0291_15b_8a.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/xarcade/X-Arcade_Tankstick_Player_1_vAA55_p0101_14b.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/xarcade/X-Arcade_Tankstick_Player_2_vAA55_p0101_14b.xml +share/kodi/addons/peripheral.joystick/resources/buttonmaps/xml/xinput/Xbox_360-compatible_controller_15b_6a.xml +share/kodi/addons/peripheral.joystick/resources/joystickfamilies/joystickfamilies.xml