I'm one of the developers on the Motion project.
We are trying to merge the popular
motion-mmal fork used by a lot of Raspberry Pi users back into the main project's github repository.
To build with MMAL camera support, the
libraspberrypi-dev package is required to be present (and I guess to run, the
libraspberrypi0 package needs to be a dependency of the built package too) — so that we can build/run with the MMAL camera interface files.
What is the correct way to achieve this? The
libraspberrypi packages aren't present in Debian as a I understand it, so I believe the upstream Debian package can't mention those.
Is the only way to have a completely separate package with a different name that is only available in Raspbian — that seems less than optimal as it means anyone that installs
motion will get a version that doesn't support the Raspberry Pi camera, even though the Raspberry Pi support is there in the upstream source code.
I've searched but didn't find much on this subject; https://raspberrypi.stackexchange.com/a/37300/10976 is relevant but I think may be more about the case where the upstream source code doesn't have Raspberry Pi support.
Further confusing me is the fact that raspbian is apparently targeting boards other than raspberry pi, so I don't entirely see how to depend on raspberry pi specific libraries even in raspbian.