Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Nov 2011 00:03:04 -0800
From:      Stanislav Sedov <stas@FreeBSD.org>
To:        Cy Schubert <Cy.Schubert@komquats.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Makefile Issue
Message-ID:  <20111120000304.343059f4.stas@FreeBSD.org>
In-Reply-To: <201111181542.pAIFguLP008283@slippy.cwsent.com>
References:  <201111181542.pAIFguLP008283@slippy.cwsent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 18 Nov 2011 07:42:56 -0800
Cy Schubert <Cy.Schubert@komquats.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111120000304.343059f4.stas>