From owner-freebsd-ports@FreeBSD.ORG Fri Nov 18 15:57:58 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 639FC106566B for ; Fri, 18 Nov 2011 15:57:58 +0000 (UTC) (envelope-from Cy.Schubert@komquats.com) Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 29F4A8FC0C for ; Fri, 18 Nov 2011 15:57:57 +0000 (UTC) Received: from pd2ml3so-ssvc.prod.shaw.ca ([10.0.141.148]) by pd4mo1so-svcs.prod.shaw.ca with ESMTP; 18 Nov 2011 08:42:57 -0700 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=1h8qd3w5pbyJS47frJc7V6h9QwwiBhgsQMy9mbCO+wA= c=1 sm=1 a=QrugwKR0C_UA:10 a=wAGQQ9Az6v0A:10 a=BLceEmwcHowA:10 a=ICAaq7hcmGcA:10 a=kj9zAlcOel0A:10 a=2Er20JxOMs3KTlR2XTlUiQ==:17 a=40EnbplkAAAA:8 a=BWvPGDcYAAAA:8 a=6I5d2MoRAAAA:8 a=Ve1JEfWOS3QrQ-pzEcEA:9 a=CjuIK1q_8ugA:10 a=V7tsTZBp22UA:10 a=SV7veod9ZcQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO spqr.komquats.com) ([24.68.73.211]) by pd2ml3so-dmz.prod.shaw.ca with ESMTP; 18 Nov 2011 08:42:57 -0700 Received: from slippy.cwsent.com (slippy2 [10.1.2.91]) by spqr.komquats.com (Postfix) with ESMTP id CFE2C46B6C for ; Fri, 18 Nov 2011 07:42:56 -0800 (PST) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.14.5/8.14.5) with ESMTP id pAIFguLP008283 for ; Fri, 18 Nov 2011 07:42:56 -0800 (PST) (envelope-from Cy.Schubert@komquats.com) Message-Id: <201111181542.pAIFguLP008283@slippy.cwsent.com> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.komquats.com/ To: freebsd-ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 18 Nov 2011 07:42:56 -0800 Subject: Makefile Issue X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Cy Schubert List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2011 15:57:58 -0000 Hi everyone, Can anyone enlighten me as to why this following make fragment doesn't work? It falls through to .else. PKGNAMESUFFIX= -devel .if defined(PKGNAMESUFFIX) && !empty(PKGNAMESUFFIX) MASTER_SITES= http://www.fwbuilder.org/nightly_builds/fwbuilder-5.0/build- ${BUILD}/ PORTVERSION= ${DISTVERSION}.b${BUILD} .else MASTER_SITES= SF/${PORTNAME}/Current_Packages/${PORTVERSION} DISTVERSIONSUFFIX= .${BUILD} .endif If I replace PKGNAMESUFFIX= -devel and the .if defined... with PKGNAMESUFFIX= "-devel" .if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == "-devel" it works. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.