On Wed, Jun 27, 2018 at 10:17:15AM +0300, Leonid Bobrov wrote: > I need help to go further. After reading Porter's hanbook, > bsd.port.mk(5) and print/poppler example I am confused what to do. > > I put resulting ports at https://github.com/mazocomp/mystuff
I didnt look at it, but the general idea is: - dont change the current build options - set MULTI_PACKAGES=-main -server - create pkg/PLIST-server with only the server files, and what is needed to run the server without having the client installed (if possible) - move the remaining files to pkg/PLIST-main - make the -main subpackage depend on the -server subpackage if it needs to use some data files, or split them in a third -data subpackage.. - set LIB_DEPENDS-main and LIB_DEPENDS-server accordingly (afaict, postgresql should be in the latter, make port-lib-depends-check will help you there) i dont think you need flavors or pseudo flavors or setting BUILD_PACKAGES.
