From owner-freebsd-ports@FreeBSD.ORG Mon Feb 26 02:30:57 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D776816A401 for ; Mon, 26 Feb 2007 02:30:57 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.freebsd.org (Postfix) with ESMTP id A9B1913C4A5 for ; Mon, 26 Feb 2007 02:30:57 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 8C7AF6102; Sun, 25 Feb 2007 21:30:56 -0500 (EST) X-Virus-Scanned: amavisd-new at codefab.com Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LKqPbtcAqf6V; Sun, 25 Feb 2007 21:30:54 -0500 (EST) Received: from [192.168.1.251] (pool-68-161-114-230.ny325.east.verizon.net [68.161.114.230]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 782885EB4; Sun, 25 Feb 2007 21:30:53 -0500 (EST) Message-ID: <45E2465B.4000406@mac.com> Date: Sun, 25 Feb 2007 21:30:51 -0500 From: Chuck Swiger User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Anders Troback 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> In-Reply-To: <20070225222547.4214d91c@devil.troback.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Subject: Re: Python and gramps... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 02:30:57 -0000 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