Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#60440 closed request (fixed)

scrcpy : display and control of Android devices

Reported by: jbouttier Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port:

Description

Hi,

I'd like to suggest creating a port for scrcpy (see also its Wikipedia page). It allows to view and control the display of (sufficiently recent) Android devices with USB debugging enabled.

I managed to compile the client using just already existing ports. See the build instructions which suggests using Homebrew :

# runtime dependencies
brew install sdl2 ffmpeg

# client build dependencies
brew install pkg-config meson

Fortunately this is easy to adapt to MacPorts : replace "brew" by "port" and "sdl2" by "libsdl2". One also needs the port android-platform-tools since scrcpy uses adb.

I did not try to compile the server (executed on the Android device), as it requires the Android SDK, etc. But the precompiled server works fine, provided it matches the version of the client. I am not sure how the server could be provided via MacPorts (after all, it is just a "firmware" not to be executed on the Mac), but maybe this issue was already resolved for other ports ?

Change History (3)

comment:1 Changed 3 years ago by Marcel Bochtler <marcel.bochtler@…>

In a87c04a2c9472c0925ffc9a4260a8fd849788f86/macports-ports (master):

scrcpy: new port (https://github.com/macports/macports-ports/pull/10600)

Add scrcpy a tool to display and control Android devices.

Resolves: #60440

comment:2 Changed 3 years ago by harens (Haren S)

Resolution: fixed
Status: newclosed

comment:3 Changed 3 years ago by jbouttier

Very nice, thanks !

Note: See TracTickets for help on using tickets.