FreeBSD Bugzilla – Attachment 146041 Details for
Bug 192823
[patch] fix math/atlas port OPTIONS handling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix option handling
atlas-options.patch (text/plain), 3.37 KB, created by
Don Lewis
on 2014-08-19 16:11:12 UTC
(
hide
)
Description:
patch to fix option handling
Filename:
MIME Type:
Creator:
Don Lewis
Created:
2014-08-19 16:11:12 UTC
Size:
3.37 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 365264) >+++ Makefile (working copy) >@@ -22,11 +22,12 @@ > CONFLICTS= atlas-devel-[0-9]* cblas-[0-9]* > MANUAL_PACKAGE_BUILD= Optimizes for the local machine. > >-OPTIONS_DEFINE= ARCHDEF TSC WALL_TIMER >-OPTIONS_DEFAULT= SHARED >+OPTIONS_DEFINE= DOCS DATA ARCHDEF TSC WALL_TIMER >+OPTIONS_DEFAULT= DATA SHARED > OPTIONS_MULTI= BUILDTYPE > OPTIONS_MULTI_BUILDTYPE=SHARED STATIC > ARCHDEF_DESC= Use a specified architectural default >+DATA_DESC= Install tuning data and logs from the build > SHARED_DESC= Build static PIC archives and shared libraries > STATIC_DESC= Build static (non-PIC) archives > TSC_DESC= If WALL_TIMER is enabled, use the TSC >@@ -57,11 +58,10 @@ > LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas > .endif > >-.for i in DATA DOCS >-. if !defined(NOPORT${i}) >-PORT${i}= * >-. endif >-.endfor >+.if ${PORT_OPTIONS:MDATA} >+PORTDATA= * >+.endif >+PORTDOCS= * > > .if ${PORT_OPTIONS:MARCHDEF} > . if defined(ARCHDEF) >@@ -118,9 +118,9 @@ > @${CAT} ${FILESDIR}/tuning-message > > do-configure: >- @if [ "x${WITH_WALL_TIMER}" != "x" ] ; then \ >+ @if [ ${PORT_OPTIONS:MWALL_TIMER} ] ; then \ > TIMEFLAG= ; \ >- if [ \( ${ARCH} = "i386" -o ${ARCH} = "amd64" \) -a "x${WITH_TSC}" != "x" ] ; then \ >+ if [ \( ${ARCH} = "i386" -o ${ARCH} = "amd64" \) -a ${PORT_OPTIONS:MTSC} ] ; then \ > freq=`${SYSCTL} -ni machdep.tsc_freq` ; \ > if [ "x$${freq}" != "x" ] ; then \ > if [ $${freq} -gt 1000000 ] ; then \ >@@ -153,8 +153,7 @@ > @${ECHO_CMD} "Building the LAPACK archives with ${opt} ATLAS flags:" > F77FLAGS="`${MAKE} -f ${WRKSRC}/saved_flags -V F77FLAGS` ${EXTRA_FFLAGS}" ; \ > LW=`${MAKE} -C ${PORTSDIR}/math/lapack -V ${${opt:tu}_LAPACK_WRKSRC}` ; \ >- ${MAKE} -C ${PORTSDIR}/math/lapack WITH_${opt:tu}=yes \ >- clean patch ; \ >+ ${MAKE} -C ${PORTSDIR}/math/lapack WITH=${opt:tu} clean patch ; \ > cd $${LW} ; ${SETENV} ${MAKE_ENV:NFFLAGS=*} EXTRAFLAGS="${${opt:tu}_FLAGS}" \ > FFLAGS="-pipe $${F77FLAGS}" ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} \ > ARCH="${AR}" lapacklib ; \ >@@ -249,10 +248,14 @@ > @${MKDIR} ${STAGEDIR}${PREFIX}/include/atlas/${opt} > ${INSTALL_DATA} ${WRKSRC}/${opt}/include/* \ > ${STAGEDIR}${PREFIX}/include/atlas/${opt} >+. if ${PORT_OPTIONS:MDATA} > @${MKDIR} ${STAGEDIR}${DATADIR}/${opt} >- (cd ${WRKSRC}/${opt}/bin ; ${TAR} -czf INSTALL_LOG.tgz INSTALL_LOG ; \ >- ${INSTALL_DATA} INSTALL_LOG.tgz ${STAGEDIR}${DATADIR}/${opt}) >- ${INSTALL_DATA} ${WRKSRC}/${opt}/ARCHS/*.tgz ${STAGEDIR}${DATADIR}/${opt} >+ (cd ${WRKSRC}/${opt}/bin; \ >+ ${COPYTREE_SHARE} INSTALL_LOG ${STAGEDIR}${DATADIR}/${opt}) >+ (cd ${WRKSRC}/${opt}/ARCHS; \ >+ ${COPYTREE_SHARE} "*" ${STAGEDIR}${DATADIR}/${opt} \ >+ "! -name Makefile -and ! -name *.tgz") >+. endif > . endif > .endfor > .if ${PORT_OPTIONS:MDOCS} >Index: pkg-plist >=================================================================== >--- pkg-plist (revision 365264) >+++ pkg-plist (working copy) >@@ -94,6 +94,8 @@ > %%SHARED%%include/atlas/shared/smm.h > %%SHARED%%include/atlas/shared/zXover.h > %%SHARED%%include/atlas/shared/zmm.h >+%%STATIC%%@dirrm include/atlas/static >+%%SHARED%%@dirrm include/atlas/shared > @dirrm include/atlas > %%STATIC%%lib/libalapack.a > %%SHARED%%lib/libalapack_pic.a >@@ -119,5 +121,3 @@ > %%SHARED%%lib/libptf77blas_pic.a > %%SHARED%%lib/libptf77blas.so.2 > %%SHARED%%lib/libptf77blas.so >-%%STATIC%%@dirrm include/atlas/static >-%%SHARED%%@dirrm include/atlas/shared
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 192823
: 146041