From owner-freebsd-ports@FreeBSD.ORG Sun Nov 20 08:03:01 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 E39CD106566C for ; Sun, 20 Nov 2011 08:03:01 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (cl-414.sto-01.se.sixxs.net [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9940B8FC12 for ; Sun, 20 Nov 2011 08:03:01 +0000 (UTC) Received: from orion.SpringDaemons.com (c-76-102-116-104.hsd1.ca.comcast.net [76.102.116.104]) by mx0.deglitch.com (Postfix) with ESMTPA id 5434E8FC27; Sun, 20 Nov 2011 12:02:56 +0400 (MSK) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id C0B133A70C; Sun, 20 Nov 2011 00:03:04 -0800 (PST) Date: Sun, 20 Nov 2011 00:03:04 -0800 From: Stanislav Sedov To: Cy Schubert Message-Id: <20111120000304.343059f4.stas@FreeBSD.org> In-Reply-To: <201111181542.pAIFguLP008283@slippy.cwsent.com> References: <201111181542.pAIFguLP008283@slippy.cwsent.com> Organization: The FreeBSD Project X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Makefile Issue 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: Sun, 20 Nov 2011 08:03:02 -0000 On Fri, 18 Nov 2011 07:42:56 -0800 Cy Schubert mentioned: > 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. > Works here. Why do you think it doesn't work for you? -- Stanislav Sedov ST4096-RIPE () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments