diff options
Diffstat (limited to 'math/atlas/Makefile')
-rw-r--r-- | math/atlas/Makefile | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/math/atlas/Makefile b/math/atlas/Makefile index a4dfb0ea4eed..fd58671a95f8 100644 --- a/math/atlas/Makefile +++ b/math/atlas/Makefile @@ -23,13 +23,9 @@ CONFLICTS= atlas-devel-[0-9]* cblas-[0-9]* MANUAL_PACKAGE_BUILD= Optimizes for the local machine. OPTIONS_DEFINE= DOCS DATA ARCHDEF TSC WALL_TIMER -OPTIONS_DEFAULT= DATA SHARED -OPTIONS_MULTI= BUILDTYPE -OPTIONS_MULTI_BUILDTYPE=SHARED STATIC +OPTIONS_DEFAULT= DATA 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 WALL_TIMER_DESC= Use less robust timing with higher resolution @@ -73,17 +69,7 @@ IGNORE= you have set WITH_ARCHDEF, but have not defined ARCHDEF . endif .endif -.if ${PORT_OPTIONS:MSHARED} USE_LDCONFIG= yes -.endif - -.for opt in SHARED STATIC -. if ${PORT_OPTIONS:M${opt}} -PLIST_SUB+= ${opt}="" -. else -PLIST_SUB+= ${opt}="@comment " -. endif -.endfor EXTRA_FLAGS?= -Wl,-rpath=${_GCC_RUNTIME} SHARED_FLAGS= ${PICFLAG} -DPIC @@ -147,7 +133,6 @@ post-configure: do-build: .for opt in shared static -. if ${PORT_OPTIONS:M${opt:tu}} @${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}` ; \ @@ -181,7 +166,6 @@ do-build: fi ; \ ${ECHO_CMD} "Building ${opt} ATLAS:" ; cd ${WRKSRC}/${opt} ; \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} all -. endif .endfor L1= ${FC} $${F77FLAGS} ${SHARED_FLAGS} ${LDFLAGS} -shared -Wl,-x \ @@ -190,15 +174,12 @@ L2= -Wl,--no-whole-archive -Wl,--as-needed -lpthread post-build: .for opt in shared static -. if ${PORT_OPTIONS:M${opt:tu}} @${ECHO_CMD} "Timing ${opt} ATLAS:" (cd ${WRKSRC}/${opt} ; ${SETENV} ${MAKE_ENV} \ ${MAKE_CMD} ${MAKE_ARGS} time ; \ cd ARCHS ; ${SETENV} ${MAKE_ENV} \ ${MAKE_CMD} ${MAKE_ARGS} ArchNew tarfile) -. endif .endfor -.if ${PORT_OPTIONS:MSHARED} @${ECHO_CMD} "Building ATLAS shared libraries:" @F77FLAGS="`${MAKE} -f ${WRKSRC}/saved_flags -V F77FLAGS` ${EXTRA_FFLAGS}" ; \ cd ${WRKSRC}/shared/lib ; \ @@ -208,7 +189,6 @@ post-build: ${L1}libcblas.so.2 -o libcblas.so.2 libcblas.a ${L2} libatlas.so.2 ; \ ${L1}libptcblas.so.2 -o libptcblas.so.2 libptcblas.a ${L2} libatlas.so.2 ; \ ${L1}libalapack.so.2 -o libalapack.so.2 liblapack.a ${L2} libatlas.so.2 -.endif .if defined(MAINTAINER_MODE) STATIC_BLAS= ${LOCALBASE}/lib/libblas.a @@ -216,33 +196,26 @@ SHARED_BLAS= -L${LOCALBASE}/lib -lblas check regression-test test: build . for opt in shared static -. if ${PORT_OPTIONS:M${opt:tu}} @${ECHO_CMD} "Testing ${opt} ATLAS:" @cd ${WRKSRC}/${opt} ; ${SETENV} ${MAKE_ENV} BLAS="${${opt:tu}_BLAS}" \ ${MAKE_CMD} ${MAKE_ARGS} check ptcheck error_report -. endif . endfor .endif do-install: .for i in libatlas libcblas libf77blas liblapack libptcblas libptf77blas -. if ${PORT_OPTIONS:MSTATIC} ${INSTALL_DATA} ${WRKSRC}/static/lib/${i}.a \ ${STAGEDIR}${PREFIX}/lib/${i:S|lapack|alapack|}.a -. endif -. if ${PORT_OPTIONS:MSHARED} ${INSTALL_DATA} ${WRKSRC}/shared/lib/${i}.a \ ${STAGEDIR}${PREFIX}/lib/${i:S|lapack|alapack|}_pic.a ${INSTALL_LIB} ${WRKSRC}/shared/lib/${i:S|lapack|alapack|}.so.2 \ ${STAGEDIR}${PREFIX}/lib ${LN} -sf ${i:S|lapack|alapack|}.so.2 \ ${STAGEDIR}${PREFIX}/lib/${i:S|lapack|alapack|}.so -. endif .endfor ${INSTALL_DATA} ${WRKSRC}/include/cblas.h ${WRKSRC}/include/clapack.h \ ${STAGEDIR}${PREFIX}/include .for opt in shared static -. if ${PORT_OPTIONS:M${opt:tu}} @${MKDIR} ${STAGEDIR}${PREFIX}/include/atlas/${opt} ${INSTALL_DATA} ${WRKSRC}/${opt}/include/* \ ${STAGEDIR}${PREFIX}/include/atlas/${opt} @@ -254,7 +227,6 @@ do-install: ${COPYTREE_SHARE} "*" ${STAGEDIR}${DATADIR}/${opt} \ "! -name Makefile -and ! -name *.tgz") . endif -. endif .endfor .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} |