Integrated DEBUG related macros to WITH_DEBUG/WITHOUT_DEBUG

Stijn Hoop stijn at win.tue.nl
Sun Nov 13 07:37:35 PST 2005


On Sun, Nov 13, 2005 at 04:31:19PM +0100, Stijn Hoop wrote:
> --- /home/stijn/FreeBSD/src/bsd.port.mk.orig	Sun Nov 13 16:13:44 2005
> +++ bsd.port.mk	Sun Nov 13 16:29:34 2005
> @@ -1375,6 +1375,14 @@
>  WWWOWN?=	www
>  WWWGRP?=	www
>  
> +# Set WITH_DEBUG if WITH_<portname>_DEBUG is defined
> +_TMP_DEBUG=	WITH_${PORTNAME:U}_DEBUG
> +.if defined(${_TMP_DEBUG})
> +WITH_DEBUG=	yes
> +.else
> +.undef WITH_DEBUG
> +.endif
> +
>  .endif
>  # End of pre-makefile section.

Too quick... scratch the 'else' clause there...

--Stijn

-- 
The sexual urge of the camel is stranger than anyone thinks.
He's lived for years on the desert, and tried to seduce the Sphinx.
But the Sphinxs center of pleasure lies buried deep in the Nile,
which accounts for the hump on the camel and the Sphinxs inscrutable smile.
		-- Frantic Fran, http://www.franticfran.com/jokes.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20051113/ffc32528/attachment-0001.bin


More information about the freebsd-ports mailing list