Closed PaddyMac closed 3 years ago
Not a build target actually but this is what I did:
Install the linux coapp (using the linux emulator) in order to set up .mozilla/native-messaging-hosts and all the other stuff. Verify it works (using firefox 60-esr). Compile the coapp under FreeBSD 11.2 and replace the linux binary by it. You can also throw away all this converter crap and use native ffmpeg from the ports.
For compiling just the coapp binary (no install stuff et.al.):
Install from ports: node10 npm-node10 c-ares libuv libnghttp2 git python27
unpack vdhcoapp-1.2.4.tar.gz cd vdhcoapp-1.2.4 patch < patch-2-vdhcoapp npm install npm install --save-dev pkg patch < patch-4-pkg-fetch export GIT_SSL_NO_VERIFY=true
CC=clang CXX=clang++ ./node_modules/.bin/pkg index.js --target node10-freebsd-x86 -b
As soon as it says "Compiling Node.js from sources", do:
If compile fails for some reason do ONLY ONCE: patch < patch-6-pkg-fetch
and fix the error and retry the compile and patch procedure from above (patch-6-pkg-fetch just modifes the build process so you don't have to re-download everything).
If it works you'll end up with a giant file named "index" which can be used to replace that linux thing. You can also rename it to "freebsd_coapp" or whatever but be sure to fix the path in .mozilla/native-messaging-hosts/net.downloadhelper.coapp.json
+1
We do not have the resource to maintain FreeBSD versions of the coapp. Thanks aafbsd for the recipe.
Yay …