openbsd-ports/math/matio/Makefile

50 lines
1.2 KiB
Makefile
Raw Normal View History

2010-07-18 06:50:11 -04:00
# $OpenBSD: Makefile,v 1.7 2010/07/18 10:50:12 steven Exp $
COMMENT= library for reading and writing Matlab MAT files
2006-12-01 19:19:11 -05:00
DISTNAME= matio-1.3.2
2010-07-18 06:50:11 -04:00
REVISION= 0
2006-12-01 19:19:11 -05:00
SHARED_LIBS= matio 1.0
CATEGORIES= math
HOMEPAGE= http://sourceforge.net/projects/matio/
# LGPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=matio/}
2006-12-01 19:19:11 -05:00
EXTRACT_SUFX= .tar.bz2
2010-05-23 09:29:32 -04:00
MODULES= fortran
MODFORTRAN_WANTG77=Yes
WANTLIB= ${MODFORTRAN_WANTLIB} m
BUILD_DEPENDS= ${MODFORTRAN_BUILD_DEPENDS}
LIB_DEPENDS= ${MODFORTRAN_LIB_DEPENDS}
2006-10-29 13:05:50 -05:00
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--enable-fortran=no \
--enable-test=yes
2006-12-01 19:19:11 -05:00
TESTS= copy write writecompressed writecell readslab \
writeslab writesparse writenan writeinf readslab4 ind2sub sub2ind \
write_compressed_cell write_compressed_sparse
do-regress:
.for t in ${TESTS}
@echo "Testing ${t}"
@cd ${WRKBUILD}/test && ./test_mat ${t}
.endfor
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/matio
${INSTALL_DATA} ${WRKSRC}/libmatio.pdf ${PREFIX}/share/doc/matio
@rm -rf ${PREFIX}/share/matio
@rm -rf ${PREFIX}/bin/test_*
.include <bsd.port.mk>