From owner-freebsd-ports@freebsd.org Sat Aug 13 22:36:11 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 64902BB8330 for ; Sat, 13 Aug 2016 22:36:11 +0000 (UTC) (envelope-from rde@tavi.co.uk) Received: from kipling.tavi.co.uk (kipling.tavi.co.uk [81.187.145.130]) by mx1.freebsd.org (Postfix) with ESMTP id 2C84C1837 for ; Sat, 13 Aug 2016 22:36:10 +0000 (UTC) (envelope-from rde@tavi.co.uk) Received: from raksha.tavi.co.uk (raksha.tavi.co.uk [81.187.145.139]) by kipling.tavi.co.uk (Postfix) with ESMTP id 85E1275927 for ; Sat, 13 Aug 2016 23:36:08 +0100 (BST) Date: Sat, 13 Aug 2016 23:36:08 +0100 From: Bob Eager To: freebsd-ports@freebsd.org Subject: Re: requesting help with Variable OSREL in port Makefile Message-ID: <20160813233608.0b6b6df6@raksha.tavi.co.uk> In-Reply-To: <57AF9F07.9020208@a1poweruser.com> References: <57AF9F07.9020208@a1poweruser.com> X-Mailer: Claws Mail 3.12.0 (GTK+ 2.24.28; i386-portbld-freebsd10.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUwXjFLc0vD0cS7y7zw9PDZ4tkWSRaVrZZ+m39qi2tXfVj////7+/utwK4IPggAOAAJUUA7AAABKklEQVQ4jWPYjQMwDFYJp0NKEKCNJmEf9h8CsimXiL2e33s3/e7F7K2Cs3f3dCMkQkMKj4YuCY3K3iR+e7fMaiSjvkX0/5cFGrWpe2uLzOpaExUVqMS/8PX/Re5ey960OLBTZpFA8+IlSBKPQ92zNyUUBsosN58uIY0k8f+/ONCoYytkVuhWzVwNkYiYbqk5M3NmOVBi41YZ8RsGF7shEtFb5KJ3r969CyixM7OTPeFUxG2IxLO8/9/SvqXlc+/x3h295YzLlj2nIRJQj//nRvc5TEIal8RsXBLVuCQwIgoq/u80DomP6HEOk/iOS+IJLonZOCT+ReOQ+Lkbh0QKLonbOCR+7MYhsRqHBJrVcIl/1TgklqKLQyQ+tGKIgyQOqXpjig94diZRAgAXmDX6jyWafAAAAABJRU5ErkJggg====== MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Aug 2016 22:36:11 -0000 On Sat, 13 Aug 2016 18:28:23 -0400 qjail1 wrote: > >> .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 > >> IGNORE= builds only on 10 or greater than 10 > >> .endif > > > > That's OSVERSION. The OP asked about OSREL. > > > > (however, OSVERSION is more useful as one can test it numerically; > > it is documented in Chapter 16 of the Porter's Handbook, if the OP > > wants to know more) > > I read Chapter 16 of the Porter's Handbook before posting. It doesn't > say how you got to a "1000000" value for OSVERSION. Why so many zeros? Because it gets incremented often. And I guess gaps are left for new releases or whatever. > A 10.0 value is what I interpret to be the value for OSREL. Is that > correct? Well, yes. But you might want to check for 'greater than' rather than 'equal to', and OSRELEASE is much better for that.