Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= arpack |
8 |
PORTNAME= arpack |
9 |
PORTVERSION= 96 |
9 |
PORTVERSION= 96 |
10 |
PORTREVISION= 8 |
10 |
PORTREVISION= 9 |
11 |
CATEGORIES= math |
11 |
CATEGORIES= math |
12 |
MASTER_SITES= http://www.caam.rice.edu/software/ARPACK/SRC/ |
12 |
MASTER_SITES= http://www.caam.rice.edu/software/ARPACK/SRC/ |
13 |
DISTFILES= ${PORTNAME}${PORTVERSION}.tar.gz patch.tar.gz |
13 |
DISTFILES= ${PORTNAME}${PORTVERSION}.tar.gz patch.tar.gz |
Lines 17-31
Link Here
|
17 |
DIST_SUBDIR= arpack |
17 |
DIST_SUBDIR= arpack |
18 |
EXTRACT_ONLY= ${PORTNAME}${PORTVERSION}.tar.gz |
18 |
EXTRACT_ONLY= ${PORTNAME}${PORTVERSION}.tar.gz |
19 |
|
19 |
|
20 |
PATCH_SITES= http://mathema.tician.de/news.tiker.net/files/ |
|
|
21 |
PATCHFILES= arpack-arscnd-3.patch.gz |
22 |
PATCH_DIST_STRIP= -p1 |
23 |
|
24 |
MAINTAINER= stephen@FreeBSD.org |
20 |
MAINTAINER= stephen@FreeBSD.org |
25 |
COMMENT= Argand Library: large eigenvalue subroutines (serial version) |
21 |
COMMENT= Argand Library: large eigenvalue subroutines (serial version) |
26 |
|
22 |
|
|
|
23 |
OPTIONS= MANGLE_LAPACK_NAMES "Mangle LAPACK names" Off |
24 |
|
27 |
LDFLAGS+= -L${LOCALBASE}/lib |
25 |
LDFLAGS+= -L${LOCALBASE}/lib |
28 |
USE_FORTRAN= yes |
26 |
USE_FORTRAN= yes |
|
|
27 |
FFLAGS+= -ffixed-line-length-none |
29 |
USE_LDCONFIG= yes |
28 |
USE_LDCONFIG= yes |
30 |
WRKSRC = ${WRKDIR}/ARPACK |
29 |
WRKSRC = ${WRKDIR}/ARPACK |
31 |
|
30 |
|
Lines 46-51
Link Here
|
46 |
|
45 |
|
47 |
.include <bsd.port.pre.mk> |
46 |
.include <bsd.port.pre.mk> |
48 |
|
47 |
|
|
|
48 |
.if defined(WITH_MANGLE_LAPACK_NAMES) |
49 |
PATCH_SITES= http://mathema.tician.de/news.tiker.net/files/ |
50 |
PATCHFILES= arpack-arscnd-3.patch.gz |
51 |
PATCH_DIST_STRIP= -p1 |
52 |
USE_PERL5_BUILD= yes |
53 |
.endif |
54 |
|
49 |
.if exists(${LOCALBASE}/lib/libatlas_r.so) |
55 |
.if exists(${LOCALBASE}/lib/libatlas_r.so) |
50 |
WITH_BLAS?= atlas |
56 |
WITH_BLAS?= atlas |
51 |
.else |
57 |
.else |
Lines 69-83
Link Here
|
69 |
post-extract: |
75 |
post-extract: |
70 |
@${TAR} -C ${WRKDIR} -xzf ${_DISTDIR}/patch.tar.gz |
76 |
@${TAR} -C ${WRKDIR} -xzf ${_DISTDIR}/patch.tar.gz |
71 |
@${GZIP_CMD} ${WRKSRC}/DOCUMENTS/ex-*.doc |
77 |
@${GZIP_CMD} ${WRKSRC}/DOCUMENTS/ex-*.doc |
72 |
|
|
|
73 |
post-patch: |
78 |
post-patch: |
74 |
@${REINPLACE_CMD} -E \ |
79 |
@${REINPLACE_CMD} -E \ |
75 |
-e '/^(home|AR|FC|LDFLAGS|MAKE|PLAT|RANLIB|SHELL)[[:space:]]+=/d' \ |
80 |
-e '/^(home|AR|FC|LDFLAGS|MAKE|PLAT|RANLIB|SHELL)[[:space:]]+=/d' \ |
76 |
-e '/^ARPACKLIB[[:space:]]+=/s/_\$$\(PLAT\)//' \ |
81 |
-e '/^ARPACKLIB[[:space:]]+=/s/_\$$\(PLAT\)//' \ |
77 |
-e '\|^BLASLIB[[:space:]]+=|s|=.*|= ${LDFLAGS} ${BLAS}|' \ |
82 |
-e '\|^BLASLIB[[:space:]]+=|s|=.*|= ${LDFLAGS} ${BLAS}|' \ |
78 |
-e '/^DIRS[[:space:]]+=/s/\$$\(BLASdir\)//' \ |
83 |
-e '/^DIRS[[:space:]]+=/s/\$$\(BLASdir\)//' \ |
79 |
-e '\|^FFLAGS[[:space:]]+=|s|=.*|= ${FFLAGS} $${PICFLAG}|' \ |
84 |
-e '\|^FFLAGS[[:space:]]+=|s|=.*|= ${FFLAGS} $${PICFLAG} -ffixed-line-length-none|' \ |
80 |
${WRKSRC}/ARmake.inc |
85 |
${WRKSRC}/ARmake.inc |
|
|
86 |
.if defined(WITH_MANGLE_LAPACK_NAMES) |
87 |
@${SETENV} FILESDIR=${FILESDIR} WRKSRC=${WRKSRC} WRKDIR=${WRKDIR} \ |
88 |
${PERL} ${SCRIPTDIR}/mangle-lapack-names.pl |
89 |
.else |
90 |
@${CP} ${FILESDIR}/arpack.h ${WRKDIR}/ |
91 |
.endif |
92 |
.if defined(WITH_MANGLE_LAPACK_NAMES) |
93 |
@cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/UTIL+arscnd.f-patch |
94 |
.else |
95 |
@cd ${WRKSRC} && ${PATCH} < ${FILESDIR}/UTIL+second.f-patch |
96 |
.endif |
81 |
@${CP} -R ${WRKSRC} ${WRKSRC}_SHARED |
97 |
@${CP} -R ${WRKSRC} ${WRKSRC}_SHARED |
82 |
|
98 |
|
83 |
do-build: |
99 |
do-build: |
Lines 90-96
Link Here
|
90 |
${LD} -Bshareable -o libarpack.so.1 -x -soname libarpack.so.1 --whole-archive libarpack.a |
106 |
${LD} -Bshareable -o libarpack.so.1 -x -soname libarpack.so.1 --whole-archive libarpack.a |
91 |
|
107 |
|
92 |
do-install: |
108 |
do-install: |
93 |
@${INSTALL_DATA} ${FILESDIR}/arpack.h ${PREFIX}/include |
109 |
@${INSTALL_DATA} ${WRKDIR}/arpack.h ${PREFIX}/include |
94 |
@${INSTALL_DATA} ${WRKSRC}/libarpack.a ${PREFIX}/lib |
110 |
@${INSTALL_DATA} ${WRKSRC}/libarpack.a ${PREFIX}/lib |
95 |
@${INSTALL_DATA} ${WRKSRC}_SHARED/libarpack.so.1 ${PREFIX}/lib |
111 |
@${INSTALL_DATA} ${WRKSRC}_SHARED/libarpack.so.1 ${PREFIX}/lib |
96 |
@${LN} -sf libarpack.so.1 ${PREFIX}/lib/libarpack.so |
112 |
@${LN} -sf libarpack.so.1 ${PREFIX}/lib/libarpack.so |
Lines 108-114
Link Here
|
108 |
@cd ${WRKSRC}/EXAMPLES/SIMPLE ; ${SETENV} ${MAKE_ENV} \ |
124 |
@cd ${WRKSRC}/EXAMPLES/SIMPLE ; ${SETENV} ${MAKE_ENV} \ |
109 |
PICFLAG= home="${WRKSRC}" \ |
125 |
PICFLAG= home="${WRKSRC}" \ |
110 |
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} simple ; ${SIMPLETESTS:S|^|./|:S|$| ; |} |
126 |
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} simple ; ${SIMPLETESTS:S|^|./|:S|$| ; |} |
111 |
@cd ${WRKSRC}_SHARED/EXAMPLES/SIMPLE ; ${SETENV} ${MAKE_ENV} \ |
127 |
cd ${WRKSRC}_SHARED/EXAMPLES/SIMPLE ; ${SETENV} ${MAKE_ENV} \ |
112 |
PICFLAG=${PICFLAG} home="${WRKSRC}_SHARED" \ |
128 |
PICFLAG=${PICFLAG} home="${WRKSRC}_SHARED" \ |
113 |
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} simple ; ${SIMPLETESTS:S|^|./|:S|$| ; |} |
129 |
${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} simple ; ${SIMPLETESTS:S|^|./|:S|$| ; |} |
114 |
|
130 |
|