ports/161154: [maintainer-update] please update math/lapacke

Eijiro Shibusawa phd_kimberlite at yahoo.co.jp
Fri Sep 30 11:50:11 UTC 2011


The following reply was made to PR ports/161154; it has been noted by GNATS.

From: Eijiro Shibusawa <phd_kimberlite at yahoo.co.jp>
To: bug-followup at FreeBSD.org, phd_kimberlite at yahoo.co.jp
Cc:  
Subject: Re: ports/161154: [maintainer-update] please update math/lapacke
Date: Fri, 30 Sep 2011 20:43:10 +0900

 This is a multi-part message in MIME format.
 --------------000706040901090808060604
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 
 --------------000706040901090808060604
 Content-Type: text/plain;
  name="lapacke_patch.txt"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="lapacke_patch.txt"
 
 diff -uNr /usr/ports/math/lapacke/./Makefile ./Makefile
 --- /usr/ports/math/lapacke/./Makefile	2011-09-24 07:24:04.000000000 +0900
 +++ ./Makefile	2011-09-30 20:01:00.000000000 +0900
 @@ -7,20 +7,24 @@
  
  PORTNAME=	lapacke
  PORTVERSION=	1.0.0.009
 +PORTREVISION=	1
  CATEGORIES=	math
 -MASTER_SITES=	ftp://ftp.netlib.org/lapack/ \
 -		http://netlib.org/lapack/
 +MASTER_SITES=	NL
 +MASTER_SITE_SUBDIR=	lapack
  DISTNAME=	${PORTNAME}
  EXTRACT_SUFX=	.tgz
  
  MAINTAINER=	phd_kimberlite at yahoo.co.jp
  COMMENT=	Standard C language APIs for LAPACK
  
 -#LICENSE=	BSD
 +LICENSE=	BSD
  LICENSE_FILE=	${WRKSRC}/LICENSE
  
  USE_LDCONFIG=	yes
  USE_FORTRAN=	yes
 +MAKE_JOBS_SAFE=	yes
 +
 +OPTIONS=	PROFILE "Build a profiling library" Off
  
  .include <bsd.port.pre.mk>
  
 @@ -28,7 +32,7 @@
  
  .if exists(${LOCALBASE}/lib/libgoto2p.so)
  WITH_BLAS?=	gotoblas
 -.elif exists(${LOCALBASE}/lib/libatlas_r.so)
 +.elif exists(${LOCALBASE}/lib/libatlas.so)
  WITH_BLAS?=	atlas
  .else
  WITH_BLAS?=	reference
 @@ -40,34 +44,46 @@
  BLAS=		-lblas
  LAPACK=		-llapack
  .elif ${WITH_BLAS} == "gotoblas"
 -LIB_DEPENDS=	goto2:${PORTSDIR}/math/gotoblas
 -BLAS=		-lpthread -lgoto2p
 -LAPACK=		-lpthread -lgoto2p
 +CFLAGS+=	${PTHREAD_CFLAGS}
 +LDFLAGS+=	${PTHREAD_LIBS}
 +LIB_DEPENDS=	goto2.1:${PORTSDIR}/math/gotoblas
 +BLAS=		-lgoto2p
 +LAPACK=		-lgoto2p
  WITHOUT_LAPACK_LATEST=	yes
  .elif ${WITH_BLAS} == "atlas"
 -LIB_DEPENDS=	atlas:${PORTSDIR}/math/atlas
 -BLAS=		-lpthread -lptf77blas -lptcblas -latlas_r
 -LAPACK=		-lpthread -lalapack_r
 +CFLAGS+=	${PTHREAD_CFLAGS}
 +LDFLAGS+=	${PTHREAD_LIBS}
 +LIB_DEPENDS=	atlas.2:${PORTSDIR}/math/atlas
 +BLAS=		-lptf77blas -lptcblas -latlas
 +LAPACK=		-lalapack
  .endif
  
 -LDFLAGS+=	-L${LOCALBASE}/lib -lgfortran -lgcc_s
 -LDADD?=		-lgfortran -lgcc_s
 -MAKE_ENV=	LDADD="${LDADD}"
 +LDFLAGS+=	-L${LOCALBASE}/lib
  .if defined(WITHOUT_LAPACK_LATEST)
  MAKE_ENV+=	WITHOUT_LAPACK_LATEST=yes
  .endif
  
  .if !defined(NOPORTDOCS)
 -PORTDOCS=	README \
 -		LICENSE
 +PORTDOCS=	README
 +
  .endif
  PLIST_FILES=	include/lapacke.h \
  		include/lapacke_utils.h \
  		lib/liblapacke.a \
  		lib/liblapacke.so \
  		lib/liblapacke.so.1
 -.if !(defined(NOPROFILE) || defined(NO_PROFILE) || defined(WITHOUT_PROFILE))
 +
 +.if defined(WITH_PROFILE)
 +.if defined(NOPROFILE) || defined(NO_PROFILE) || defined(WITHOUT_PROFILE)
 +IGNORE =	you have defined WITH_PROFILE, but have also defined\
 +WITHOUT_PROFILE, NOPROFILE, or NO_PROFILE
 +.elif !exists(/usr/lib/libc_p.a)
 +IGNORE	=	you have chosen WITH_PROFILE, but have not installed the\
 +base system profiling libraries
 +.endif
  PLIST_FILES+=	lib/liblapacke_p.a
 +.else
 +MAKE_ENV+=	NO_PROFILE=
  .endif
  
  post-patch:
 diff -uNr /usr/ports/math/lapacke/./files/patch-testing+Makefile ./files/patch-testing+Makefile
 --- /usr/ports/math/lapacke/./files/patch-testing+Makefile	1970-01-01 09:00:00.000000000 +0900
 +++ ./files/patch-testing+Makefile	2011-09-30 20:01:00.000000000 +0900
 @@ -0,0 +1,16 @@
 +--- ./testing/Makefile.orig	2010-10-01 17:17:25.000000000 +0900
 ++++ ./testing/Makefile	2011-09-30 19:38:00.000000000 +0900
 +@@ -35,9 +35,9 @@
 + include ../make.inc
 + 
 + all:
 +-	cd utils && $(MAKE)
 +-	cd interface && $(MAKE)
 ++	cd ${.CURDIR}/utils && $(MAKE)
 ++	cd ${.CURDIR}/interface && $(MAKE)
 + 
 + clean:
 +-	cd utils && $(MAKE) clean
 +-	cd interface && $(MAKE) clean
 ++	cd ${.CURDIR}/utils && $(MAKE) clean
 ++	cd ${.CURDIR}/interface && $(MAKE) clean
 
 --------------000706040901090808060604--



More information about the freebsd-ports-bugs mailing list