Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Feb 2007 21:30:51 -0500
From:      Chuck Swiger <cswiger@mac.com>
To:        Anders Troback <freebsd@troback.com>
Cc:        FreeBSD <freebsd-ports@freebsd.org>
Subject:   Re: Python and gramps...
Message-ID:  <45E2465B.4000406@mac.com>
In-Reply-To: <20070225222547.4214d91c@devil.troback.com>
References:  <20070223232142.11fe263f@devil.troback.com> <6669CD12-8C90-4CB4-92B8-CB673B8A502E@mac.com> <20070224083317.79ebd5fa@devil.troback.com> <45E18F69.8080009@mac.com> <20070225222547.4214d91c@devil.troback.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Anders Troback wrote:
[ ... ]
> I can check the version like this (I think):
> 
> .    if !defined(WITH_BDB_VER) 
> WITH_BDB_VER= 42
> .    endif
> .    if (${WITH_BDB_VER} < 42)
> BROKEN=   Does not run with less than db42
> .    endif
> 
> But how do I know if the dependency ports are compiled with the right
> version? Is this the right way of doing this or is there a better way?

Take a look at the Makefiles for textproc/redland or mail/exim for a simple or 
more complex pair of examples.  For all of them, consider:

   find /usr/ports -name Makefile -print0 | xargs -0 grep -l WITH_BDB_VER

You might find looking at /usr/ports/Mk/bsd.database.mk to answer a lot of 
questions one might have, too.

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45E2465B.4000406>