aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2015-01-12 05:06:02 +0800
committerthierry <thierry@FreeBSD.org>2015-01-12 05:06:02 +0800
commit27b4ae48dde2e29b2f0db41f0da22889287b643f (patch)
treeff7f4bc6e40878ca54faef61f49dfb81e33439b6 /graphics
parent740e1918618e3116d37b50b3dd35861d01044390 (diff)
downloadfreebsd-ports-gnome-27b4ae48dde2e29b2f0db41f0da22889287b643f.tar.gz
freebsd-ports-gnome-27b4ae48dde2e29b2f0db41f0da22889287b643f.tar.zst
freebsd-ports-gnome-27b4ae48dde2e29b2f0db41f0da22889287b643f.zip
Uses blaslapack.mk.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/cimg/Makefile31
1 files changed, 12 insertions, 19 deletions
diff --git a/graphics/cimg/Makefile b/graphics/cimg/Makefile
index 585cfbd5b777..94afcb0bdb8b 100644
--- a/graphics/cimg/Makefile
+++ b/graphics/cimg/Makefile
@@ -28,6 +28,15 @@ ONLY_FOR_ARCHS_REASON= "invokes i386 asm"
TARBALLREVISION=3
USES= zip
+
+.if !defined(WITHOUT_LAPACK)
+. if defined(WITH_ATLAS)
+USES+= blaslapack:atlas
+. else
+USES+= blaslapack
+. endif
+.endif
+
WRKSRC= ${WRKDIR}/${DISTNAME:C/_/-/}
BUILD_WRKSRC= ${WRKSRC}/examples
MAKE_ENV= X11PATH=${LOCALBASE} LOCALBASE=${LOCALBASE}
@@ -92,22 +101,6 @@ NO_BUILD= yes
.include <bsd.port.pre.mk>
-.if ${PORT_OPTIONS:MDOCS}
-. if !defined(WITHOUT_LAPACK)
-. if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS)
-WITH_ATLAS= yes
-. endif
-. if defined(WITH_ATLAS)
-LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas
-LAPACK_LIB= -L${LOCALBASE}/lib -lalapack -lcblas -lf77blas
-. else
-LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas
-LIB_DEPENDS+= liblapack.so:${PORTSDIR}/math/lapack
-LAPACK_LIB= -L${LOCALBASE}/lib -llapack -lblas
-. endif
-. endif
-.endif
-
pre-configure:
.if ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e 's|make|${MAKE_CMD}|' ${BUILD_WRKSRC}/Makefile
@@ -120,9 +113,9 @@ pre-configure:
${BUILD_WRKSRC}/Makefile
. endif
. if !defined(WITHOUT_LAPACK)
- ${REINPLACE_CMD} -e 's|#CIMG_LAPACK_CFLAGS|CIMG_LAPACK_CFLAGS|' \
- -e 's|#CIMG_LAPACK_LDFLAGS|CIMG_LAPACK_LDFLAGS|' \
- -e 's|-lblas -llapack|${LAPACK_LIB}|' \
+ ${REINPLACE_CMD} -e 's|#CIMG_LAPACK_CFLAGS|CIMG_LAPACK_CFLAGS|' \
+ -e 's|#CIMG_LAPACK_LDFLAGS|CIMG_LAPACK_LDFLAGS|' \
+ -e 's|-lblas -llapack|-L${LOCALBASE}/lib ${BLASLIB} ${LAPACKLIB}|' \
${BUILD_WRKSRC}/Makefile
. endif
. if defined(WITH_XSHM)