aboutsummaryrefslogtreecommitdiff
path: root/math/matio
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2013-12-25 22:40:54 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2013-12-25 22:40:54 +0000
commitaedb352a712a0bcf45ee29834465c30ed61a4880 (patch)
treef4a607aa59561a9224313c6fccfb707bb6641be8 /math/matio
parent8431d3384f63d6d29e68d07167ee93ec96112866 (diff)
downloadports-aedb352a712a0bcf45ee29834465c30ed61a4880.tar.gz
ports-aedb352a712a0bcf45ee29834465c30ed61a4880.zip
Notes
Diffstat (limited to 'math/matio')
-rw-r--r--math/matio/Makefile37
1 files changed, 10 insertions, 27 deletions
diff --git a/math/matio/Makefile b/math/matio/Makefile
index d345942e2735..a27641abc1c7 100644
--- a/math/matio/Makefile
+++ b/math/matio/Makefile
@@ -3,6 +3,7 @@
PORTNAME= matio
PORTVERSION= 1.3.4
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= SF
@@ -10,55 +11,37 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Library for reading/writing Matlab files
GNU_CONFIGURE= yes
+USES= pathfix
USE_LDCONFIG= yes
-CFLAGS+= -fPIC
-
OPTIONS_DEFINE= FORTRAN
FORTRAN_DESC= Build Fortran bindings
-.include <bsd.port.options.mk>
+CONFIGURE_ARGS= --enable-shared
PLIST_FILES= include/matio.h \
include/matioConfig.h \
lib/libmatio.a \
lib/libmatio.la \
+ lib/libmatio.so \
lib/libmatio.so.1 \
libdata/pkgconfig/matio.pc
-.if ${PORT_OPTIONS:MFORTRAN}
-USE_FORTRAN= yes
+.include <bsd.port.options.mk>
-FFLAGS+= -fPIC
+.if ${PORT_OPTIONS:MFORTRAN}
+USES+= fortran
CONFIGURE_ARGS+= --enable-fortran
CONFIGURE_ENV+= FCFLAGS="${FFLAGS}"
PLIST_FILES+= include/matio.mod
-USES+= gmake
MAKE_JOBS_UNSAFE=yes
.endif
-post-build:
-.if !${PORT_OPTIONS:MFORTRAN}
- (cd ${WRKSRC}/src && ${CC} ${CFLAGS} -shared -o libmatio.so.1 snprintf.o \
- endian.o io.o inflate.o read_data.o mat5.o mat4.o mat.o)
-.else
- (cd ${WRKSRC}/src && ${CC} ${CFLAGS} -shared -o libmatio.so.1 snprintf.o \
- endian.o io.o inflate.o read_data.o mat5.o mat4.o mat.o matio_internal.o \
- matio.o)
-.endif
-
-do-install:
- ${INSTALL_DATA} ${WRKSRC}/src/.libs/libmatio.lai ${STAGEDIR}${PREFIX}/lib/libmatio.la
- ${INSTALL_DATA} ${WRKSRC}/src/.libs/libmatio.a ${STAGEDIR}${PREFIX}/lib
- ${INSTALL_DATA} ${WRKSRC}/src/matio.h ${STAGEDIR}${PREFIX}/include
- ${INSTALL_DATA} ${WRKSRC}/src/matioConfig.h ${STAGEDIR}${PREFIX}/include
- ${INSTALL_PROGRAM} ${WRKSRC}/src/libmatio.so.1 ${STAGEDIR}${PREFIX}/lib
- ${INSTALL_DATA} ${WRKSRC}/matio.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
-.if ${PORT_OPTIONS:MFORTRAN}
- ${INSTALL_DATA} ${WRKSRC}/src/matio.mod ${STAGEDIR}${PREFIX}/include
-.endif
+post-patch:
+ @${REINPLACE_CMD} -e '/AM_LDFLAGS = /s/$$/ -version-info 1/' \
+ ${WRKSRC}/src/Makefile.in
.include <bsd.port.mk>