diff options
Diffstat (limited to 'multimedia/droidcam')
-rw-r--r-- | multimedia/droidcam/Makefile | 47 | ||||
-rw-r--r-- | multimedia/droidcam/distinfo | 6 | ||||
-rw-r--r-- | multimedia/droidcam/pkg-message | 47 |
3 files changed, 54 insertions, 46 deletions
diff --git a/multimedia/droidcam/Makefile b/multimedia/droidcam/Makefile index 3fcf62a366c0..937d659a0d21 100644 --- a/multimedia/droidcam/Makefile +++ b/multimedia/droidcam/Makefile @@ -1,11 +1,10 @@ PORTNAME= droidcam DISTVERSIONPREFIX= v -DISTVERSION= 2.1.3 -PORTREVISION= 3 +DISTVERSION= 2.1.4 CATEGORIES= multimedia MAINTAINER= nxjoseph@protonmail.com -COMMENT= GNU/Linux/nix client for DroidCam +COMMENT= Turn your mobile device(s) into a wireless/usb webcam WWW= https://github.com/dev47apps/droidcam-linux-client LICENSE= GPLv2 @@ -14,63 +13,39 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat LIB_DEPENDS= libappindicator3.so:devel/libappindicator \ libasound.so:audio/alsa-lib \ - libatk-1.0.so:accessibility/at-spi2-core \ - libcairo-gobject.so:graphics/cairo \ - libcairo.so:graphics/cairo \ libdbusmenu-glib.so:devel/libdbusmenu \ - libgdk-3.so:x11-toolkits/gtk30 \ - libgdk_pixbuf-2.0.so:graphics/gdk-pixbuf2 \ - libgio-2.0.so:devel/glib20 \ - libglib-2.0.so:devel/glib20 \ - libgobject-2.0.so:devel/glib20 \ - libgtk-3.so:x11-toolkits/gtk30 \ - libharfbuzz.so:print/harfbuzz \ - libpango-1.0.so:x11-toolkits/pango \ - libpangocairo-1.0.so:x11-toolkits/pango \ libspeex.so:audio/speex \ libswscale.so:multimedia/ffmpeg \ libturbojpeg.so:graphics/libjpeg-turbo \ - libusbmuxd-2.0.so:comms/libusbmuxd \ - libwayland-client.so:graphics/wayland \ - libX11.so:x11/libX11 + libusbmuxd-2.0.so:comms/libusbmuxd RUN_DEPENDS= adb:devel/android-tools \ - ffmpeg:multimedia/ffmpeg \ usbmuxd:comms/usbmuxd \ webcamd:multimedia/webcamd -USES= desktop-file-utils gettext-runtime gmake gnome pkgconfig xorg +USES= gmake gnome pkgconfig xorg USE_GITHUB= yes GH_ACCOUNT= dev47apps GH_PROJECT= droidcam-linux-client -USE_GNOME= cairo gdkpixbuf glib20 gtk30 pango +USE_GNOME= atk cairo gdkpixbuf glib20 gtk30 pango USE_XORG= x11 PLIST_FILES= bin/${PORTNAME} \ bin/${PORTNAME}-cli \ share/applications/${PORTNAME}.desktop \ - share/pixmaps/${PORTNAME}-icon.png + share/pixmaps/${PORTNAME}.png -OPTIONS_DEFINE= NLS -OPTIONS_SUB= yes - -NLS_USES= gettext -NLS_CONFIGURE_ENABLE= nls - -pre-configure: - ${REINPLACE_CMD} -e 's,/opt/${PORTNAME}-icon.png,${PREFIX}/share/pixmaps/${PORTNAME}-icon.png,' \ +post-patch: + ${REINPLACE_CMD} -e 's,/opt/${PORTNAME}-icon.png,${PREFIX}/share/pixmaps/${PORTNAME}.png,' \ + -e 's,/usr/local/bin/${PORTNAME},${PREFIX}/bin/${PORTNAME},' \ ${WRKSRC}/src/${PORTNAME}.c \ ${WRKSRC}/${PORTNAME}.desktop - ${REINPLACE_CMD} -e 's,Exec=/usr/local/bin/${PORTNAME},${PREFIX}/bin/${PORTNAME},' \ - -e 's,TryExec=/usr/local/bin/${PORTNAME},${PREFIX}/bin/${PORTNAME},' \ - ${WRKSRC}/${PORTNAME}.desktop do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \ - ${STAGEDIR}${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-cli \ + ${WRKSRC}/${PORTNAME}-cli \ ${STAGEDIR}${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/icon2.png \ - ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}-icon.png + ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \ ${STAGEDIR}${PREFIX}/share/applications diff --git a/multimedia/droidcam/distinfo b/multimedia/droidcam/distinfo index 63fcc18059f2..d1ebd35ba509 100644 --- a/multimedia/droidcam/distinfo +++ b/multimedia/droidcam/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1726741616 -SHA256 (dev47apps-droidcam-linux-client-v2.1.3_GH0.tar.gz) = 86d18029364d8ecd8b1a8fcae4cc37122f43683326fe49922b2ce2c8cf01e49d -SIZE (dev47apps-droidcam-linux-client-v2.1.3_GH0.tar.gz) = 86110 +TIMESTAMP = 1751236292 +SHA256 (dev47apps-droidcam-linux-client-v2.1.4_GH0.tar.gz) = 785c2d760b410b90b78a4f9604656e462a5c2eb9c1a351c61237dd57c36c0a4a +SIZE (dev47apps-droidcam-linux-client-v2.1.4_GH0.tar.gz) = 86139 diff --git a/multimedia/droidcam/pkg-message b/multimedia/droidcam/pkg-message index e8ecaf3f601d..9257b9b00b11 100644 --- a/multimedia/droidcam/pkg-message +++ b/multimedia/droidcam/pkg-message @@ -1,14 +1,47 @@ [ { type: install message: <<EOM -Connect your phone with USB then follow these steps but -"-d", "-N" and "-S" parameters may be different for you. -To learn them, just run webcamd as root and without parameters. -Don't forget to Change $USER and $GROUP according to your normal user. +DroidCam requires webcamd which depend on `cuse` module to work properly. + NOTE: use either sudo or became root for steps right below. + - To enable it permanently on every boot: + # sysrc kld_list+=cuse # kldload cuse - # webcamd -d ugen0.2 -N Xiaomi-Redmi-Note-12 -S 1234567 \ - -M 0 -v 0 -B -U $USER -G $GROUP -c v4l2loopback -Now, you can run the program and use it. + - To enable it only for current session: + # kldload cuse + +NOTE: use either sudo or became root for steps right below. + replace $USER with your normal user's name and $GROUP + with your normal user's group to own the /dev/videoX device. +To start webcamd service to use your mobile device as a webcam wirelessly. + # webcamd -B -U $USER -G $GROUP -c v4l2loopback +To start webcamd service to use your mobile device as a wired USB webcam. + NOTE: The flags -d, -N, -S and -M will be different for you, replace accordingly. + You can learn these by just running `webcamd` with sudo or root, it will guide you. + # webcamd -B -d ugen0.4 -N Xiaomi-Redmi-Note-12 -S 1234567 -M 0 -B -U $USER -G $GROUP -c v4l2loopback + +To use your mobile device as a webcam wirelessly. + 1. Install DroidCam to your mobile device from Play Store. + 2. Open the DroidCam app and give required permissions. + 3. Keep the information shown on the app. + 4. Launch DroidCam GUI on your PC. + 5. Be sure that you have selected WiFi/LAN mode. + 6. Enter your device's WiFi IP address and port number correctly + then start the webcam using the start button. + +NOTE: You need to enable USB debugging in your mobile device + from Developer Options first. +To use your mobile device as a wired USB webcam. + 1. Install DroidCam to your mobile device from Play Store. + 2. Open the DroidCam app and give required permissions. + 3. Keep the information shown on the app. + 4. Launch DroidCam GUI on your PC. + 5. Be sure that you have selected USB (Android/IOS) mode. + 6. Enter your device's port number correctly + then start the webcam using the start button. + NOTE: If you get the error: No devices detected, run these commands below + either with sudo or as root. + # adb kill-server (may fail, keep going) + # adb start server (this may require you to accept a question on your mobile device's screen) EOM } ] |