From owner-freebsd-ports@FreeBSD.ORG Tue Jul 27 20:56:45 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C02B16A4CE for ; Tue, 27 Jul 2004 20:56:45 +0000 (GMT) Received: from mailtest.sd73.bc.ca (mailtest.sd73.bc.ca [142.24.13.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E8F043D55 for ; Tue, 27 Jul 2004 20:56:45 +0000 (GMT) (envelope-from fcash-ml@sd73.bc.ca) Received: from localhost (localhost [127.0.0.1]) by mailtest.sd73.bc.ca (Postfix) with ESMTP id BF76825050 for ; Tue, 27 Jul 2004 13:56:45 -0700 (PDT) Received: from mailtest.sd73.bc.ca ([127.0.0.1]) by localhost (mailtest.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 34558-06 for ; Tue, 27 Jul 2004 13:56:45 -0700 (PDT) Received: from [192.168.0.166] (unknown [192.168.0.166]) by mailtest.sd73.bc.ca (Postfix) with ESMTP id 608C524FA7 for ; Tue, 27 Jul 2004 13:56:45 -0700 (PDT) From: Freddie Cash Organization: School District 73 - Kamloops, BC To: ports@freebsd.org Date: Tue, 27 Jul 2004 20:56:42 -0700 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200407272056.42144.fcash-ml@sd73.bc.ca> X-Virus-Scanned: by amavisd-new at sd73.bc.ca Subject: Adding dependencies based on OPTIONS X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jul 2004 20:56:45 -0000 Is there an easy way to add dependencies (LIB_DEPENDS in particular) based on whether or not an option is selected via OPTIONS?? I'm looking at adding virus scanning to the DansGuardian port. There are two methods I can think of for doing this: create a new port that includes the AV support, or add it as an option to the existing port. The AV support requires that the clamav and esmtp ports are installed first, and that about a dozen extra patches are applied to the DG source. I'm not sure how to go about specificing the LIB_DEPENDS (or if that is even the correct DEPENDS to use?), or how to specify using the aditional patches. I've toyed with EXTRA_PATCHES and PATCHFILES, using OPTIONS, and LIB_DEPENDS, but I can't get the port to pick up the LIB_DEPENDS. Am I going about this the wrong way, or have I just misinterpreted things? Is there a way to get the ports framework to do this automatically, or am I going to have to write a custom pre-build: target to satisfy the dependencies and patching?? -- Freddie Cash, CCNT CCLP Helpdesk / Network Support Tech. School District 73 (250) 377-HELP [377-4357] fcash-ml@sd73.bc.ca