aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2007-01-09 15:39:39 +0800
committermaho <maho@FreeBSD.org>2007-01-09 15:39:39 +0800
commit8f8c1fdf45e3b7a9df3434e7c623f8d8455fe1b0 (patch)
tree0d38b5908f2fac499b8c1ecf543a7ec0003062b9 /cad
parentda695d36ab59c0fdeff6e47ddde9d8aa4a319b2c (diff)
downloadfreebsd-ports-gnome-8f8c1fdf45e3b7a9df3434e7c623f8d8455fe1b0.tar.gz
freebsd-ports-gnome-8f8c1fdf45e3b7a9df3434e7c623f8d8455fe1b0.tar.zst
freebsd-ports-gnome-8f8c1fdf45e3b7a9df3434e7c623f8d8455fe1b0.zip
*using shared libs.
*migrate to gfortran. *build with atlas is now optional.
Diffstat (limited to 'cad')
-rw-r--r--cad/calculix/Makefile36
-rw-r--r--cad/calculix/files/patch-ccx_VER+src+Makefile4
2 files changed, 25 insertions, 15 deletions
diff --git a/cad/calculix/Makefile b/cad/calculix/Makefile
index be354fd47990..fedcb137be47 100644
--- a/cad/calculix/Makefile
+++ b/cad/calculix/Makefile
@@ -28,13 +28,22 @@ EXTRACT_ONLY+= ${DIST_EXAMPLES}
MAINTAINER= maho@FreeBSD.org
COMMENT= A Three-Dimensional Structural Finite Element Program
-BUILD_DEPENDS= ${LOCALBASE}/lib/libarpack.a:${PORTSDIR}/math/arpack \
- ${LOCALBASE}/lib/liblapack.a:${PORTSDIR}/math/lapack \
- ${LOCALBASE}/lib/libspooles.a:${PORTSDIR}/math/spooles \
- ${LOCALBASE}/lib/libmetis.a:${PORTSDIR}/math/metis \
- ${LOCALBASE}/lib/libtaucs.a:${PORTSDIR}/math/taucs
-LIB_DEPENDS= atlas.1:${PORTSDIR}/math/atlas \
- glut.4:${PORTSDIR}/graphics/libglut
+LIB_DEPENDS= glut.4:${PORTSDIR}/graphics/libglut \
+ arpack:${PORTSDIR}/math/arpack \
+ spooles:${PORTSDIR}/math/spooles \
+ metis:${PORTSDIR}/math/metis \
+ taucs:${PORTSDIR}/math/taucs
+.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
+WITH_ATLAS= yes
+.endif
+.if defined(WITH_ATLAS)
+LIB_DEPENDS+= atlas.1:${PORTSDIR}/math/atlas
+BLAS_LIBS?= -lf77blas -latlas
+.else
+LIB_DEPENDS+= blas.1:${PORTSDIR}/math/blas
+LIB_DEPENDS+= lapack.3:${PORTSDIR}/math/lapack
+BLAS_LIBS= -lblas
+.endif
USE_BZIP2= yes
@@ -50,20 +59,21 @@ DIST_EXAMPLES= ccx_${PORTVERSION}.test${EXTRACT_SUFX} \
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GMAKE= yes
USE_GL= yes
-BLAS_LIBS?= -lf77blas -latlas
BROWSER?= mozilla
PSVIEWER?= gv
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 500000
-USE_GCC= 3.4
-.endif
+WANT_FORTRAN=yes
+USE_GCC=4.2+
-.if ${ARCH} == "amd64"
-FFLAGS+= -fPIC
+.if ${ARCH} == "sparc64"
CFLAGS+= -fPIC
+FFLAGS+= -fPIC
+.else
+CFLAGS+= -fpic
+FFLAGS+= -fpic
.endif
.if !defined(WITH_EXAMPLES)
diff --git a/cad/calculix/files/patch-ccx_VER+src+Makefile b/cad/calculix/files/patch-ccx_VER+src+Makefile
index 5bacc85e5d54..d197f6d05183 100644
--- a/cad/calculix/files/patch-ccx_VER+src+Makefile
+++ b/cad/calculix/files/patch-ccx_VER+src+Makefile
@@ -10,8 +10,8 @@
-CC=cc
-FC=g77
-+CC?=%%CC%%
-+FC?=%%FC%%
++CC=%%CC%%
++FC=%%FC%%
.c.o :
$(CC) $(CFLAGS) -c $<