svn commit: r334256 - head/Mk

Eitan Adler eadler at FreeBSD.org
Mon Nov 18 19:48:22 UTC 2013


Author: eadler
Date: Mon Nov 18 19:48:21 2013
New Revision: 334256
URL: http://svnweb.freebsd.org/changeset/ports/334256

Log:
  Add the ability to build specific ports with WITH_DEBUG
  
  Reviewed by:	Ilya A. Arkhipov <rum1cro at yandex.ru>
  Reviewed by:	bsam
  Approved by:	portmgr (bapt)

Modified:
  head/Mk/bsd.port.mk

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Mon Nov 18 19:35:09 2013	(r334255)
+++ head/Mk/bsd.port.mk	Mon Nov 18 19:48:21 2013	(r334256)
@@ -311,6 +311,8 @@ FreeBSD_MAINTAINER=	portmgr at FreeBSD.org
 #                         passed to the compiler by setting DEBUG_FLAGS. It is
 #                         set to "-g" at default.
 #
+# WITH_DEBUG_PORTS		- A list of origins for which WITH_DEBUG will be set
+#
 # WITH_SSP_PORTS
 # 				- If set, SSP_FLAGS (defaults to -fstack-protector)
 #				  is added to CFLAGS and the necessary flags
@@ -1303,6 +1305,12 @@ MAKE_ENV+=	TMPDIR="${TMPDIR}"
 CONFIGURE_ENV+=	TMPDIR="${TMPDIR}"
 .endif # defined(TMPDIR)
 
+.if defined(WITH_DEBUG_PORTS)
+.if ${WITH_DEBUG_PORTS:M${PKGORIGIN}}
+WITH_DEBUG=	yes
+.endif
+.endif
+
 # Reset value from bsd.own.mk.
 .if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG)
 STRIP=	#none


More information about the svn-ports-head mailing list