Package-Manager: Portage-2.3.13, Repoman-2.3.3
LICENSE="CC0-1.0"
SLOT="0"
KEYWORDS="~amd64 ~ppc64"
-IUSE="static"
+IUSE="static native-cflags"
DEPEND=""
RDEPEND="${DEPEND}"
}
src_configure() {
- econf $(use_enable static)
+ econf \
+ $(use_enable static) \
+ $(use_enable native-cflags native)
}
src_compile() {
- # respect our CFLAGS
- emake CFLAGS="${CFLAGS}"
+ # respect our CFLAGS when native-cflags is not in effect
+ emake $(use native-cflags && echo no)CFLAGS="${CFLAGS}"
}
src_install() {
Official implementations from BLAKE2 project.
</longdescription>
+ <use>
+ <flag name="native-cflags">
+ Use CFLAGS as determined by configure script. These flags will
+ enable all CPU specific features it find available, to further
+ optimise the implementation. This discards any existing CFLAGS
+ set in make.conf or similar.
+ </flag>
+ </use>
</pkgmetadata>