From owner-svn-ports-all@FreeBSD.ORG Wed Dec 25 22:40:55 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 095A6EF0; Wed, 25 Dec 2013 22:40:55 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CFA4C1921; Wed, 25 Dec 2013 22:40:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBPMesJQ045122; Wed, 25 Dec 2013 22:40:54 GMT (envelope-from tijl@svn.freebsd.org) Received: (from tijl@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBPMesdE045110; Wed, 25 Dec 2013 22:40:54 GMT (envelope-from tijl@svn.freebsd.org) Message-Id: <201312252240.rBPMesdE045110@svn.freebsd.org> From: Tijl Coosemans Date: Wed, 25 Dec 2013 22:40:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337461 - head/math/matio X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Dec 2013 22:40:55 -0000 Author: tijl Date: Wed Dec 25 22:40:54 2013 New Revision: 337461 URL: http://svnweb.freebsd.org/changeset/ports/337461 Log: - 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. Modified: head/math/matio/Makefile (contents, props changed) Modified: head/math/matio/Makefile ============================================================================== --- head/math/matio/Makefile Wed Dec 25 22:13:09 2013 (r337460) +++ head/math/matio/Makefile Wed Dec 25 22:40:54 2013 (r337461) @@ -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 +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 -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