I'm currently working on some of the kde4 Makefiles, and I'm running into a few confusing parts.
First off regarding SHARED_LIBS. I have some unversioned .so files that are installed (ie. libname.so versus libname.so.2.0, not symlinked. Some are plugins, and I'm not sure if we handle those differently. I suppose one solution would be to rename them to have version info and make the nonversioned name simply symlink to that. Next is some confusion regarding WANTLIB and LIB_DEPENDS. According to this thread: http://marc.info/?l=openbsd-tech&m=127807849026376&w=2 it seems that WANTLIB is to declare all the libraries (shared only?) that are required by the package, while LIB_DEPENDS is to indicate the actual ports that provide the required libs (save those in userland layout, such as libc, Xorg libs, etc.). If so, I notice that LIB_DEPENDS let you indicate required libraries from the package as well. Is this only used when library versions need to be taken into account (I didn't see a way to indicate that with WANTLIB)? Finally, how does conditional requirements work? Say there are two packages that provide libfoo, and conflict with each other. However, a package that depends on libfoo can use either version. Is there a way to handle marking this sort of conditional dep? If any of this is covered in a man page or webpage somewhere that I missed, simply point me to it and I'll figure it out on my own. I've already looked over the porting pages on openbsd.org, and the man page for bsd.port.mk. Hopefully I didn't miss something completely obvious. Thanks ahead of time for all responses and keep up the good work! - Onteria