andrewrk / node-groove

bindings to libgroove - music player backend library
MIT License
157 stars 16 forks source link

Suggestion: Package libgroove with node-groove #10

Closed mehcode closed 9 years ago

mehcode commented 9 years ago

An idea to make this easier to install on a random system. Package libgroove and build with this repository (perhaps a git submodule).

See https://github.com/atom/node-minidump for an example of what I mean.

andrewrk commented 9 years ago

I've considered this. Here's what libgroove dependency tree looks like:

So if I bundled libgroove, you'd still have to have these other 4 things on your system. I could try bundling them as well, but libav is a massive codebase which can require a long time to compile on some systems. It brings in additional dependencies as well. Same with SDL2. Typically when SDL2 is packaged, the package maintainer selects the correct configuration options to make sure it works with the system's audio framework.

So it's not just a few lines of C that need to be compiled, it's a rather complex dependency chain that is really solved most conveniently by installing a libgroove package. Fortunately, packages are available for popular distributions such as Ubuntu, Debian, FreeBSD, Arch, and Homebrew.