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 Note -main is client: mazocomp$ make show=SUBPACKAGE -main mazocomp$ make show=BUILD_PACKAGES -main -server mazocomp$ The problem here is that when I do `make build`, the test inside Makefile: .if ${BUILD_PACKAGES:M-main} CONFIGURE_ENV += CXXFLAGS="-I${X11BASE}/include" .endif .if ${BUILD_PACKAGES:M-server} CONFIGURE_ARGS+= -DBUILD_CLIENT=FALSE -DBUILD_SERVER=TRUE .endif Matches both conditions and instead of client I get server with -I/usr/X11R6/include building. Should I manually set BUILD_PACKAGES? After a bit of thinking I came up to this: PSEUDO_FLAVORS = no_main no_server FLAVOR ?= no_server Which resulted in: mazocomp$ make show=BUILD_PACKAGES -main mazocomp$ env FLAVOR='no_main' make show=BUILD_PACKAGES -server mazocomp$ env SUBPACKAGE=-main make show=BUILD_PACKAGES -main mazocomp$ env FLAVOR='' make show=BUILD_PACKAGES -main -server mazocomp$ env SUBPACKAGE=-server make show=BUILD_PACKAGES -main mazocomp$ I don't want to write a complex script, is there an easy way? Should I manually set BUILD_PACKAGES?
