aboutsummaryrefslogtreecommitdiff
path: root/science/mpb
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2013-12-27 21:28:47 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2013-12-27 21:28:47 +0000
commit5a345c47493d20048b276088ef207755f194e7d2 (patch)
tree4838170b5cfee79a9123264c1e6bbf32b9d57658 /science/mpb
parentdd3c0327f0956d99b44aed46efce4b3d78183c56 (diff)
downloadports-5a345c47493d20048b276088ef207755f194e7d2.tar.gz
ports-5a345c47493d20048b276088ef207755f194e7d2.zip
Notes
Diffstat (limited to 'science/mpb')
-rw-r--r--science/mpb/Makefile39
-rw-r--r--science/mpb/pkg-plist3
2 files changed, 23 insertions, 19 deletions
diff --git a/science/mpb/Makefile b/science/mpb/Makefile
index 79c91d13f0e2..2d1d38375820 100644
--- a/science/mpb/Makefile
+++ b/science/mpb/Makefile
@@ -12,38 +12,39 @@ COMMENT= MIT Photonic-Bands
LICENSE= GPLv2
-MAKE_JOBS_UNSAFE= yes
-
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
-LIB_DEPENDS= fftw:${PORTSDIR}/math/fftw \
- hdf5:${PORTSDIR}/science/hdf5 \
- ctl:${PORTSDIR}/science/libctl \
- guile:${PORTSDIR}/lang/guile
+LIB_DEPENDS= libfftw.so:${PORTSDIR}/math/fftw \
+ libhdf5.so:${PORTSDIR}/science/hdf5 \
+ libctl.so:${PORTSDIR}/science/libctl \
+ libguile.so:${PORTSDIR}/lang/guile
-USE_FORTRAN= yes
+OPTIONS_DEFINE= ATLAS
+ATLAS_DESC= Use math/atlas instead of math/lapack
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+USES= fortran
GNU_CONFIGURE= yes
+MAKE_JOBS_UNSAFE= yes
+
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if exists(${LOCALBASE}/lib/libatlas.so) && !defined(WITH_BLAS)
-WITH_ATLAS= yes
-.endif
-.if defined(WITH_ATLAS)
-LIB_DEPENDS+= atlas:${PORTSDIR}/math/atlas
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MATLAS}
+LIB_DEPENDS+= libatlas.so:${PORTSDIR}/math/atlas
CONFIGURE_ARGS+= --with-lapack=-lalapack
.else
-LIB_DEPENDS+= blas:${PORTSDIR}/math/blas
-LIB_DEPENDS+= lapack:${PORTSDIR}/math/lapack
+LIB_DEPENDS+= libblas.so:${PORTSDIR}/math/blas \
+ liblapack.so:${PORTSDIR}/math/lapack
CONFIGURE_ARGS+= --with-lapack=-llapack
.endif
-MAN1= mpb.1 mpb-data.1 mpb-split.1
-
post-patch:
@${REINPLACE_CMD} -e 's|-lhdf5 |-lhdf5 ${PTHREAD_LIBS} |g' \
${WRKSRC}/configure
+ @${REINPLACE_CMD} \
+ -e '/INSTALL/s/$$(prefix)/$$(DESTDIR)$$(prefix)/' \
+ -e '/INSTALL/s/$$(mandir)/$$(DESTDIR)$$(mandir)/' \
+ ${WRKSRC}/mpb-ctl/Makefile.in ${WRKSRC}/utils/Makefile.in
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/science/mpb/pkg-plist b/science/mpb/pkg-plist
index 6bb62c7e2c94..50722719fa4f 100644
--- a/science/mpb/pkg-plist
+++ b/science/mpb/pkg-plist
@@ -1,5 +1,8 @@
bin/mpb
bin/mpb-split
bin/mpb-data
+man/man1/mpb.1.gz
+man/man1/mpb-data.1.gz
+man/man1/mpb-split.1.gz
share/libctl/specs/mpb.scm
@dirrmtry share/libctl/specs