From owner-freebsd-ports@FreeBSD.ORG Mon Mar 23 15:43:25 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E459290 for ; Mon, 23 Mar 2015 15:43:25 +0000 (UTC) Received: from resqmta-ch2-05v.sys.comcast.net (resqmta-ch2-05v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:37]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A9B7CF47 for ; Mon, 23 Mar 2015 15:43:25 +0000 (UTC) Received: from resomta-ch2-03v.sys.comcast.net ([69.252.207.99]) by resqmta-ch2-05v.sys.comcast.net with comcast id 73j21q00529Cfhx013jPKh; Mon, 23 Mar 2015 15:43:23 +0000 Received: from www.cyberbotx.com ([107.5.48.95]) by resomta-ch2-03v.sys.comcast.net with comcast id 73jP1q00523DSHF013jPTo; Mon, 23 Mar 2015 15:43:23 +0000 Received: from 192.168.2.2 (SquirrelMail authenticated user cyberbotx) by www.cyberbotx.com with HTTP; Mon, 23 Mar 2015 11:43:23 -0400 Message-ID: <9623862267593285ee2fb436666eba27.squirrel@www.cyberbotx.com> Date: Mon, 23 Mar 2015 11:43:23 -0400 Subject: Adding options framework variables that depend on variables coming after bsd.port.pre.mk From: "Naram Qashat" To: freebsd-ports@FreeBSD.org User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1427125403; bh=tbTkAQegSN/SK58wP6J/J8oQf9M4Iz6kS4d2g2KEqe8=; h=Received:Received:Received:Message-ID:Date:Subject:From:To: MIME-Version:Content-Type; b=X9LVNSstfCRoOJnr2Ox4E24ZaQy+/QMdUi3uI+gHXnqxfb56xGOx6MBAqEXvauFi1 quaziMsWJfXKNeYc697hu7rQu0nRhcVV04zuLWs8Y/Jnazf7z05IUK3vDXWi03QeID XRBLvgYD1Gvc9Mav6nXDZRtUe1wqnL9XwUBdngfS3gBI1TaRsOn0M3mp+8EZXXgkb6 SCw6F4ktixdt+rCueCFIgI9sXqut/UTpgJWtKjBXGpuEwxHqcpm1qrJobWrNXkAU8Q 6UbRslnRIIT5q3EYtXDkJYpojqb5aP5Z9zk6K4yP+JtHSuaPAPidiK6gQ784EtXUif el2NA0/YdtnoQ== X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2015 15:43:26 -0000 I'm wanting to add an options framework LIB_DEPENDS that depends on variables that normally come after bsd.port.pre.mk. In this case, I am trying to add a UTEMPTER_LIB_DEPENDS on sysutils/libutempter, but I want to check OPSYS and OSVERSION beforehand, since base FreeBSD 9.x contains utempter while any earlier FreeBSDs as well as non-FreeBSD OSes don't contain it and need the port. I cannot place the UTEMPTER_LIB_DEPENDS line after bsd.port.pre.mk because the options framework doesn't see it then, but I also cannot wrap it around an if conditional using OPSYS and OSVERSION before bsd.port.pre.mk because those variables aren't set yet. I've been told that there is a workaround, but I was not told what the workaround was. Does anyone know how this can be acomplished?