FreeBSD Bugzilla – Attachment 160965 Details for
Bug 201965
math/openblas doesn't install header files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Alternative Makefile patch
openblas.diff (text/plain), 3.35 KB, created by
Peter Jeremy
on 2015-09-13 10:21:20 UTC
(
hide
)
Description:
Alternative Makefile patch
Filename:
MIME Type:
Creator:
Peter Jeremy
Created:
2015-09-13 10:21:20 UTC
Size:
3.35 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 396748) >+++ Makefile (working copy) >@@ -3,12 +3,14 @@ > > PORTNAME= openblas > PORTVERSION= 0.2.14 >+DISTVERSIONPREFIX= v >+PORTREVISION= 1 > PORTEPOCH= 1 >-DISTVERSIONPREFIX= v > CATEGORIES= math > MASTER_SITES= GH NL/lapack/timing/:lapack_tmg > DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ >- large.tgz:lapack_tmg timing.tgz:lapack_tmg >+ large.tgz:lapack_tmg timing.tgz:lapack_tmg >+DIST_SUBDIR= openblas > > MAINTAINER= phd_kimberlite@yahoo.co.jp > COMMENT= Optimized BLAS library based on GotoBLAS2 >@@ -15,7 +17,6 @@ > > LICENSE= BSD3CLAUSE > >-DIST_SUBDIR= openblas > USE_GITHUB= yes > GH_ACCOUNT= xianyi > GH_PROJECT= OpenBLAS >@@ -32,7 +33,7 @@ > OPENBLAS_FILES= ${OPENBLAS_LIBS:S|$|.so|} ${OPENBLAS_LIBS:S|$|.so.${OPENBLAS_SVER}|} ${OPENBLAS_LIBS:S|$|.a|} > PLIST_FILES= ${OPENBLAS_FILES:S|^|lib/|} > >-OPTIONS_DEFINE= DYNAMIC_ARCH INTERFACE64 OPENMP AVX AVX2 >+OPTIONS_DEFINE= DYNAMIC_ARCH INTERFACE64 OPENMP AVX AVX2 CBLAS > > DYNAMIC_ARCH_DESC= Support multiple CPU types on i386 and amd64 > INTERFACE64_DESC= Use 8 byte integers on 64-bit architectures >@@ -39,6 +40,7 @@ > OPENMP_DESC= Use OpenMP for threading > AVX_DESC= Support Advanced Vector Extensions (AVX) > AVX2_DESC= Support Advanced Vector Extensions 2 (AVX2) >+CBLAS_DESC= Install C HEADERS FOR BLAS > > .if defined(PACKAGE_BUILDING) > OPTIONS_DEFAULT= DYNAMIC_ARCH >@@ -89,6 +91,44 @@ > BUILDFLAGS+= NO_AVX2=1 > .endif > >+.if ${PORT_OPTIONS:MCBLAS} >+CONFLICTS_INSTALL+= atlas-[0-9]* atlas-devel-[0-9]* cblas-[0-9]* >+OPENBLAS_HEADERS= cblas.h cblas_noconst.h >+PLIST_FILES+= ${OPENBLAS_HEADERS:S|^|include/|} >+PRIVATE_HEADERS= common.h \ >+ common_alpha.h \ >+ common_arm.h \ >+ common_arm64.h \ >+ common_c.h \ >+ common_d.h \ >+ common_ia64.h \ >+ common_interface.h \ >+ common_lapack.h \ >+ common_level1.h \ >+ common_level2.h \ >+ common_level3.h \ >+ common_linux.h \ >+ common_macro.h \ >+ common_mips64.h \ >+ common_param.h \ >+ common_power.h \ >+ common_q.h \ >+ common_reference.h \ >+ common_s.h \ >+ common_sparc.h \ >+ common_thread.h \ >+ common_x.h \ >+ common_x86.h \ >+ common_x86_64.h \ >+ common_z.h \ >+ config.h \ >+ param.h \ >+ symcopy.h >+PLIST_FILES+= ${PRIVATE_HEADERS:S|^|include/openblas/|} >+PLIST_DIRS+= include/openblas >+ >+.endif >+ > post-extract: > cd ${DISTDIR}/${DIST_SUBDIR} ; \ > ${CP} ${LARGE_FILE} ${TIMING_FILE} ${WRKSRC} >@@ -159,10 +199,25 @@ > USE_THREAD=1 ${BENCHMARK_THREADS_FLAG} ${MAKE_CMD} ${MAKE_ARGS} > > do-install: >- cd ${WRKDIR}/lib ; \ >- ${INSTALL_DATA} ${OPENBLAS_LIBS:S|$|.a|} ${OPENBLAS_LIBS:S|$|.so.${OPENBLAS_SVER}|} \ >- ${STAGEDIR}${PREFIX}/lib/ >- cd ${STAGEDIR}${PREFIX}/lib ; \ >+.if ${PORT_OPTIONS:MCBLAS} >+ ${MKDIR} ${WRKDIR}/include/openblas >+ cd ${WRKDIR}/ && \ >+ for i in ${OPENBLAS_HEADERS}; do \ >+ ${SED} 's:include ":include "openblas/:' \ >+ ${WRKSRC}/$$i > include/$$i ; \ >+ done >+ cd ${WRKDIR}/ && \ >+ for i in ${PRIVATE_HEADERS}; do \ >+ ${SED} 's:include ":include "openblas/:' \ >+ ${WRKSRC}/$$i > include/openblas/$$i ; \ >+ done >+ cd ${WRKDIR}/ && ${COPYTREE_SHARE} include ${STAGEDIR}${PREFIX} >+.endif >+ cd ${WRKDIR}/lib && \ >+ ${INSTALL_DATA} ${OPENBLAS_LIBS:S|$|.a|} \ >+ ${OPENBLAS_LIBS:S|$|.so.${OPENBLAS_SVER}|} \ >+ ${STAGEDIR}${PREFIX}/lib/ >+ cd ${STAGEDIR}${PREFIX}/lib && \ > for i in ${OPENBLAS_LIBS:S|$|.so|}; do \ > ${LN} -sf $$i.${OPENBLAS_SVER} $$i ; \ > done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 201965
:
159637
| 160965 |
167178