From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 30 15:30:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id A2BC7671 for ; Mon, 30 Sep 2013 15:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (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 8096A2FAD for ; Mon, 30 Sep 2013 15:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8UFU0wn015068 for ; Mon, 30 Sep 2013 15:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8UFU0f6015067; Mon, 30 Sep 2013 15:30:00 GMT (envelope-from gnats) Resent-Date: Mon, 30 Sep 2013 15:30:00 GMT Resent-Message-Id: <201309301530.r8UFU0f6015067@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Sunpoet Po-Chuan Hsieh 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 ESMTP id E7AB6EE2 for ; Mon, 30 Sep 2013 15:25:06 +0000 (UTC) (envelope-from sunpoet@sunpoet.net) Received: from sunpoet.net (sunpoet.net [220.135.71.135]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B4F712F55 for ; Mon, 30 Sep 2013 15:25:06 +0000 (UTC) Received: by sunpoet.net (Postfix, from userid 1000) id 0B30C3C76; Mon, 30 Sep 2013 23:25:33 +0800 (CST) Message-Id: <20130930152534.0B30C3C76@sunpoet.net> Date: Mon, 30 Sep 2013 23:25:33 +0800 (CST) From: Sunpoet Po-Chuan Hsieh To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/182514: [PATCH] Mk/bsd.options.mk: add more OPTIONS helpers X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Sunpoet Po-Chuan Hsieh List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Sep 2013 15:30:00 -0000 >Number: 182514 >Category: ports >Synopsis: [PATCH] Mk/bsd.options.mk: add more OPTIONS helpers >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Sep 30 15:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Sunpoet Po-Chuan Hsieh >Release: FreeBSD 9.2-PRERELEASE amd64 >Organization: The FreeBSD project >Environment: System: FreeBSD bonjour.sunpoet.net 9.2-PRERELEASE FreeBSD 9.2-PRERELEASE #0 r255451: Wed Sep 11 02:56:55 CST 2013 sunpoet@bonjour.sunpoet.net:/usr/obj/usr/src/sys/bonjour amd64 >Description: - Add more OPTIONS helpers: MAKE_ARGS, PLIST_FILES, PLIST_DIRS and PLIST_DIRSTRY - Fix typo >How-To-Repeat: >Fix: --- bsd.options.mk.patch begins --- Index: Mk/bsd.options.mk =================================================================== --- Mk/bsd.options.mk (revision 328549) +++ Mk/bsd.options.mk (working copy) @@ -70,7 +70,7 @@ # WITHOUT - Unset options from the command line # # -# The following knobs are there to simplfy the handling of OPTIONS in simple +# The following knobs are there to simplify the handling of OPTIONS in simple # cases : # # OPTIONS_SUB When defined it will add to PLIST_SUB: @@ -93,9 +93,9 @@ # ${opt}_CMAKE_OFF When option is disabled, it will add its content to # the CMAKE_ARGS. # -# For each of CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CONFIGURE_ENV MAKE_ENV USES -# DISTFILES, defining ${opt}_${variable} will add it to the actual variable -# when the option is enabled. +# For each of CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CONFIGURE_ENV MAKE_ARGS MAKE_ENV +# USES DISTFILES PLIST_FILES PLIST_DIRS PLIST_DIRSTRY, defining +# ${opt}_${variable} will add it to the actual variable when the option is enabled. # # For each of the depends target PKG EXTRACT PATCH FETCH BUILD LIB RUN, # defining ${opt}_${deptype}_DEPENDS will add it to the actual dependency when @@ -392,7 +392,8 @@ . if defined(${opt}_CMAKE_ON) CMAKE_ARGS+= ${${opt}_CMAKE_ON} . endif -. for flags in CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CONFIGURE_ENV MAKE_ENV USES DISTFILES +. for flags in CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CONFIGURE_ENV MAKE_ARGS MAKE_ENV \ + USES DISTFILES PLIST_FILES PLIST_DIRS PLIST_DIRSTRY . if defined(${opt}_${flags}) ${flags}+= ${${opt}_${flags}} . endif --- bsd.options.mk.patch ends --- >Release-Note: >Audit-Trail: >Unformatted: