1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/cad/pdnmesh/Makefile
Florent Thoumie d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00

52 lines
1.3 KiB
Makefile

# New ports collection makefile for: pdnmesh
# Date created: 25 August 2001
# Whom: Sarod Yatawatta <sarod@cs.pdn.ac.lk>
#
# $FreeBSD$
#
PORTNAME= pdnmesh
PORTVERSION= 0.2.1
PORTREVISION= 3
CATEGORIES= cad
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:S/$/:sf/} \
${MASTER_SITE_SUNSITE:S/$/:sun/}
MASTER_SITE_SUBDIR= ${PORTNAME}/:sf science/visualization/:sun
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:sf,sun
MAINTAINER= sarod@users.sf.net
COMMENT= A finite element program
LIB_DEPENDS= gtkglext:${PORTSDIR}/x11-toolkits/gtkglext
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
WITH_ATLAS= yes
.endif
.if defined(WITH_ATLAS)
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
BLAS= -lf77blas -latlas
LAPACK= -lalapack -lcblas
.else
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
BLAS= -lblas
LAPACK= -llapack
.endif
WANT_FORTRAN= yes #dummy but future use
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
FC= gfortran42
F77= gfortran42
CONFIGURE_ENV+= FC="${FC}" F77="${F77}" FFLAGS="${FFLAGS}" BLAS_LIBS="${BLAS}" LAPACK_LIBS="${LAPACK}"
USE_XLIB= yes
USE_GL= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}"
MAN1= pdnmesh.1
MAN5= pdnmesh_input.5
.include <bsd.port.post.mk>