- Add Mk/Scripts/autodeps.sh: analyze ELF binaries from the plist to automatically determine library dependencies per subpackage. Each subpackage gets its own analysis based on its own plist, naturally scoping dependencies to what the subpackage actually ships.
- Modify create-manifest.sh: include autodeps output in the manifest"s deps section via .include(try=true) so pkg resolves real library dependencies instead of relying on manually curated LIB_DEPENDS.
- Modify bsd.port.mk:
- Add ${METADIR}.${sp}/autodeps target per subpackage, run before package creation
- Make ${WRKDIR_PKGFILE} depend on the autodeps target
- Remove LIB_DEPENDS_ALL from RUN-DEPENDS-LIST since autodeps now handles runtime library dependency detection
- Add SUBPACKAGE build scoping: make build SUBPACKAGE=libs aggregates only BUILD_DEPENDS + BUILD_DEPENDS.libs, excluding dependencies of other subpackages
This makes subpackage dependency management automatic and accurate:
each subpackage"s real library needs are detected at package creation
time, and the main package can declare dependencies on its subpackages
via SELF_DEPENDS (already supported without modification).