Date: Sat, 10 Oct 2009 14:39:40 -0500 From: Alex Stangl <alex@stangl.us> To: freebsd-ports@freebsd.org Subject: Enforcing library version in a port Makefile? Message-ID: <20091010193940.GA66957@scout.stangl.us>
next in thread | raw e-mail | index | archive | help
Hi, I am trying to create a new port. The software I am trying to port uses scons which calls out to pkg-config to check for certain minimal library version #s (e.g., sndfile >= 1.0.18, libcurl >= 7). I would like to enforce these same checks upfront in the Makefile rather than letting the build potentially blow up in scons. Section 5.7.8 of the Porter's Handbook says that all of the _DEPENDS variables *except LIB_DEPENDS* can enforce minimal dependency versions. It's not clear why LIB_DEPENDS is excluded here, or what the correct alternative approach is. It doesn't seem like putting LIB_DEPENDS= curl.5 is equivalent to libcurl >= 7. Hopefully there's a straightforward way to accomplish this, without having to patch or scrap the scons config file. Unfortunately I have not been able to find the answers from searching the net, so I hope somebody here can help. Thanks, Alex
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091010193940.GA66957>