1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/math/matio/Makefile
Tijl Coosemans aedb352a71 - USES=fortran pathfix.
- Pass --enable-shared to configure instead of building a shared library
  in post-build.  This decreases the library version to zero so patch the
  Makefile to force it back to one.  The shared library also links with
  Fortran runtime libraries correctly now.
- Remove -fPIC from CFLAGS and FFLAGS now that the shared library is no
  longer created from the static library.
- Remove do-install.  Normal make install works just fine.
2013-12-25 22:40:54 +00:00

48 lines
875 B
Makefile

# Created by: rfarmer@predatorlabs.net
# $FreeBSD$
PORTNAME= matio
PORTVERSION= 1.3.4
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Library for reading/writing Matlab files
GNU_CONFIGURE= yes
USES= pathfix
USE_LDCONFIG= yes
OPTIONS_DEFINE= FORTRAN
FORTRAN_DESC= Build Fortran bindings
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
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MFORTRAN}
USES+= fortran
CONFIGURE_ARGS+= --enable-fortran
CONFIGURE_ENV+= FCFLAGS="${FFLAGS}"
PLIST_FILES+= include/matio.mod
MAKE_JOBS_UNSAFE=yes
.endif
post-patch:
@${REINPLACE_CMD} -e '/AM_LDFLAGS = /s/$$/ -version-info 1/' \
${WRKSRC}/src/Makefile.in
.include <bsd.port.mk>