From owner-svn-ports-all@FreeBSD.ORG Wed Dec 12 19:29:30 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A16C5B10; Wed, 12 Dec 2012 19:29:30 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 6C3588FC0A; Wed, 12 Dec 2012 19:29:30 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qBCJTUqA029489; Wed, 12 Dec 2012 19:29:30 GMT (envelope-from bdrewery@svn.freebsd.org) Received: (from bdrewery@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qBCJTUD2029488; Wed, 12 Dec 2012 19:29:30 GMT (envelope-from bdrewery@svn.freebsd.org) Message-Id: <201212121929.qBCJTUD2029488@svn.freebsd.org> From: Bryan Drewery Date: Wed, 12 Dec 2012 19:29:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r308784 - 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.14 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, 12 Dec 2012 19:29:30 -0000 Author: bdrewery Date: Wed Dec 12 19:29:29 2012 New Revision: 308784 URL: http://svnweb.freebsd.org/changeset/ports/308784 Log: - Trim header - Convert to new options framework Modified: head/math/matio/Makefile Modified: head/math/matio/Makefile ============================================================================== --- head/math/matio/Makefile Wed Dec 12 19:22:21 2012 (r308783) +++ head/math/matio/Makefile Wed Dec 12 19:29:29 2012 (r308784) @@ -1,9 +1,5 @@ -# New ports collection makefile for: matio -# Date created: 14 February 2010 -# Whom: rfarmer@predatorlabs.net -# +# Created by: rfarmer@predatorlabs.net # $FreeBSD$ -# PORTNAME= matio PORTVERSION= 1.3.4 @@ -18,7 +14,8 @@ USE_LDCONFIG= yes CFLAGS+= -fPIC -OPTIONS= FORTRAN "Build Fortran bindings" OFF +OPTIONS_DEFINE= FORTRAN +FORTRAN_DESC= Build Fortran bindings .include @@ -29,7 +26,7 @@ PLIST_FILES= include/matio.h \ lib/libmatio.so.1 \ libdata/pkgconfig/matio.pc -.if !defined(WITHOUT_FORTRAN) +.if ${PORT_OPTIONS:MFORTRAN} USE_FORTRAN= yes FFLAGS+= -fPIC @@ -41,7 +38,7 @@ PLIST_FILES+= include/matio.mod .endif post-build: -.if defined(WITHOUT_FORTRAN) +.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 @@ -57,7 +54,7 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/src/matioConfig.h ${PREFIX}/include ${INSTALL_PROGRAM} ${WRKSRC}/src/libmatio.so.1 ${PREFIX}/lib ${INSTALL_DATA} ${WRKSRC}/matio.pc ${PREFIX}/libdata/pkgconfig -.if !defined(WITHOUT_FORTRAN) +.if ${PORT_OPTIONS:MFORTRAN} ${INSTALL_DATA} ${WRKSRC}/src/matio.mod ${PREFIX}/include .endif