Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2012 19:29:30 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308784 - head/math/matio
Message-ID:  <201212121929.qBCJTUD2029488@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.options.mk>
 
@@ -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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212121929.qBCJTUD2029488>