I am currently supporting devices which are running FreeBSD 9.2, as well as 10. And I need to somehow install a newer version of archivers/libarchive than that which is available for these FreeBSD versions (3.2.1 seems to have first become available in 11.0). I also can't change anything in /usr/ports (that is, I need to keep the new libarchive port in a completely different directory). Also, the build script that assembles the device's environment can only use make
to compile the ports, as far as I know.
My own idea of building libarchive 3.2.1 is:
check out the ports tree from ports/tags/RELEASE_11_0_0/ from SVN, then only leave the libarchive and its dependencies, as well as the contents of the ports/Mk directory.
cd path/to/new/ports/arhivers/libarchive and run
make
, probably specifying the alternative search path for the.include
d .mk-files via-I
. Possibly also change the value of thePORTSDIR
variable?
Am I missing something (is my approach even valid..?)? Is there a better way to accomplish this?