Baby steps… The cmake scripts want to install everything to hardcoded /boot/system, this obviously doesn’t work.
In haikuporter we can pass these vars instead, but I don’t see one to abstract the system dir. It would’ve been nice to do something like
make install DESTDIR=$sysDir and call it a day.
The way I see it, there are 3 options:
Find a way to build the recipe without modifying original scripts.
Ask mantainer(s) to modify rtl_sdr install scripts, to take Haiku into account and do a proper install - this I’m not sure they’ll see as worthy of their time, but I can try.
If all else fails, a manual INSTALL() by hand? ie.
install -d $libDir some_libs and iterate for bin, includes etc – took a look at some recipes and it’s doable, if a bit ugly.
Unless there is a better way?
(BTW - why insist on cmake if rtl_sdr built fine with autotools? Because it’s a stable library, but development stagnated long time ago and it’s on maintenance mode now. There are newer, better mantained forks with more features, and the one I’m trying to build dropped autotools support.)