diff options
author | naddy <naddy@FreeBSD.org> | 2013-09-24 21:01:06 +0000 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2013-09-24 21:01:06 +0000 |
commit | adc384c9f311510e8f27581079bc0cb9b5fcd4f6 (patch) | |
tree | a68b1ab25fb7cc0ef0899abc57b05d6d59fc84ea | |
parent | 3b07a84ccd4c3243b46ba9b26a4f31d6c0e82e7a (diff) | |
download | FreeBSD-ports-adc384c9f311510e8f27581079bc0cb9b5fcd4f6.zip FreeBSD-ports-adc384c9f311510e8f27581079bc0cb9b5fcd4f6.tar.gz |
If ${opt}_CPPFLAGS is defined, its value will be appended to CPPFLAGS
depending on the status of option ${opt}.
Approved by: bapt
-rw-r--r-- | Mk/bsd.options.mk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mk/bsd.options.mk b/Mk/bsd.options.mk index 55778a7..81437ec 100644 --- a/Mk/bsd.options.mk +++ b/Mk/bsd.options.mk @@ -93,9 +93,9 @@ # ${opt}_CMAKE_OFF When option is disabled, it will add its content to # the CMAKE_ARGS. # -# For each of CFLAGS 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_ENV USES +# DISTFILES, 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,7 @@ CONFIGURE_ARGS+= ${${opt}_CONFIGURE_ON} . if defined(${opt}_CMAKE_ON) CMAKE_ARGS+= ${${opt}_CMAKE_ON} . endif -. for flags in CFLAGS CXXFLAGS LDFLAGS CONFIGURE_ENV MAKE_ENV USES DISTFILES +. for flags in CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CONFIGURE_ENV MAKE_ENV USES DISTFILES . if defined(${opt}_${flags}) ${flags}+= ${${opt}_${flags}} . endif |