diff --git a/math/openblas/Makefile b/math/openblas/Makefile index f29882457ee7..963e6823dba5 100644 --- a/math/openblas/Makefile +++ b/math/openblas/Makefile @@ -85,6 +85,9 @@ MANUAL_PACKAGE_BUILD= Optimizes for the build machine. .if ${PORT_OPTIONS:MDYNAMIC_ARCH} BUILDFLAGS+= DYNAMIC_ARCH=1 +PLIST_SUB+= DYNARCH="" +.else +PLIST_SUB+= DYNARCH="@comment " .endif .if ${PORT_OPTIONS:MINTERFACE64} @@ -201,7 +204,10 @@ do-install: ${WRKSRC}/interface/*.c ${MKDIR} ${STAGEDIR}${PREFIX}/include/openblas ${INSTALL_DATA} ${WRKSRC}/openblas_*.h ${STAGEDIR}${PREFIX}/include/openblas - ${INSTALL_DATA} ${WRKSRC}/cblas.h ${WRKSRC}/config_kernel.h ${WRKSRC}/config_last.h ${WRKSRC}/l1param.h ${WRKSRC}/l2param.h ${WRKSRC}/symcopy.h \ + ${INSTALL_DATA} ${WRKSRC}/cblas.h ${WRKSRC}/config_last.h ${WRKSRC}/l1param.h ${WRKSRC}/l2param.h ${WRKSRC}/symcopy.h \ ${STAGEDIR}${PREFIX}/include/openblas +do-install-DYNAMIC_ARCH-on: + ${INSTALL_DATA} ${WRKSRC}/config_kernel.h ${STAGEDIR}${PREFIX}/include/openblas + .include diff --git a/math/openblas/pkg-plist b/math/openblas/pkg-plist index 88ee3f7b158c..908883c637d2 100644 --- a/math/openblas/pkg-plist +++ b/math/openblas/pkg-plist @@ -29,7 +29,7 @@ include/openblas/openblas_common_x86_64.h include/openblas/openblas_common_z.h include/openblas/openblas_common_zarch.h include/openblas/openblas_config.h -include/openblas/config_kernel.h +%%DYNARCH%%include/openblas/config_kernel.h include/openblas/config_last.h include/openblas/openblas_cpuid.h include/openblas/l1param.h