Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2011 07:42:56 -0800
From:      Cy Schubert <Cy.Schubert@komquats.com>
To:        freebsd-ports@freebsd.org
Subject:   Makefile Issue
Message-ID:  <201111181542.pAIFguLP008283@slippy.cwsent.com>

next in thread | raw e-mail | index | archive | help
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 <Cy.Schubert@komquats.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.





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