From owner-svn-ports-all@FreeBSD.ORG Mon Nov 18 19:48:22 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5E973CAD; Mon, 18 Nov 2013 19:48:22 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4DEEA22FF; Mon, 18 Nov 2013 19:48:22 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAIJmMVs046926; Mon, 18 Nov 2013 19:48:22 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAIJmMHj046925; Mon, 18 Nov 2013 19:48:22 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201311181948.rAIJmMHj046925@svn.freebsd.org> From: Eitan Adler Date: Mon, 18 Nov 2013 19:48:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r334256 - head/Mk X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Nov 2013 19:48:22 -0000 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 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@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