diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-06-05 14:11:19 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-06-05 14:11:19 +0000 |
commit | f0a27c9d1e21708adb37dacd3ab2eedc42f8de41 (patch) | |
tree | ec1089fe1fadf7b9d5cd9edb4c02870285b16ea9 /math/levmar | |
parent | 3d895fa85950b077cf12aa31f0c7de85288e1df1 (diff) | |
download | ports-f0a27c9d1e21708adb37dacd3ab2eedc42f8de41.tar.gz ports-f0a27c9d1e21708adb37dacd3ab2eedc42f8de41.zip |
Convert to new options framework
Notes
Notes:
svn path=/head/; revision=319993
Diffstat (limited to 'math/levmar')
-rw-r--r-- | math/levmar/Makefile | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/math/levmar/Makefile b/math/levmar/Makefile index c84df644149d..204d05138d1f 100644 --- a/math/levmar/Makefile +++ b/math/levmar/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: levmar -# Date created: 18 May 2010 -# Whom: Eijiro Shibusawa <ej-sib@ice.uec.ac.jp> -# +# Created by: Eijiro Shibusawa <ej-sib@ice.uec.ac.jp> # $FreeBSD$ -# PORTNAME= levmar PORTVERSION= 2.5 @@ -13,7 +9,7 @@ MASTER_SITES= http://www.ics.forth.gr/~lourakis/levmar/ EXTRACT_SUFX= .tgz MAINTAINER= phd_kimberlite@yahoo.co.jp -COMMENT= A GPL-licensed library implementing the Levenberg-Marquardt algorithm +COMMENT= GPL-licensed library implementing the Levenberg-Marquardt algorithm LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE @@ -22,7 +18,8 @@ USE_LDCONFIG= yes USE_FORTRAN= yes MAKE_JOBS_SAFE= yes -OPTIONS= PROFILE "Build a profiling library" Off +OPTIONS_DEFINE= PROFILE +PROFILE_DESC= Build a profiling library .include <bsd.port.pre.mk> @@ -53,10 +50,10 @@ BLAS= -lptf77blas LAPACK= -lalapack -lptcblas .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} PORTDOCS= README.txt .endif -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} PORTEXAMPLES= lmdemo.c Makefile.demo .endif PLIST_FILES= include/levmar.h \ @@ -64,7 +61,7 @@ PLIST_FILES= include/levmar.h \ lib/liblevmar.so \ lib/liblevmar.so.2 -.if defined(WITH_PROFILE) +.if ${PORT_OPTIONS:MPROFILE} .if defined(NOPROFILE) || defined(NO_PROFILE) || defined(WITHOUT_PROFILE) IGNORE = you have defined WITH_PROFILE, but have also defined\ WITHOUT_PROFILE, NOPROFILE, or NO_PROFILE @@ -89,11 +86,11 @@ post-extract: ${WRKSRC}/Makefile.demo post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} @(cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) .endif -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR} @(cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}) .endif |