pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/math/djbfft Convert to the options framework.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4b2d24ac70a5
branches:  trunk
changeset: 498285:4b2d24ac70a5
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Fri Aug 19 05:07:42 2005 +0000

description:
Convert to the options framework.

diffstat:

 math/djbfft/Makefile   |  24 ++----------------------
 math/djbfft/options.mk |  25 +++++++++++++++++++++++++
 2 files changed, 27 insertions(+), 22 deletions(-)

diffs (70 lines):

diff -r d698bdfe3bfc -r 4b2d24ac70a5 math/djbfft/Makefile
--- a/math/djbfft/Makefile      Fri Aug 19 04:57:42 2005 +0000
+++ b/math/djbfft/Makefile      Fri Aug 19 05:07:42 2005 +0000
@@ -1,35 +1,15 @@
-# $NetBSD: Makefile,v 1.9 2005/08/19 03:55:00 schmonz Exp $
+# $NetBSD: Makefile,v 1.10 2005/08/19 05:07:42 schmonz Exp $
 
 DISTNAME=              djbfft-0.76
 CATEGORIES=            math
 MASTER_SITES=          http://cr.yp.to/djbfft/
 
 MAINTAINER=            tech-pkg%NetBSD.org@localhost
-HOMEPAGE=              http://pobox.com/~djb/djbfft.html
+HOMEPAGE=              http://cr.yp.to/djbfft.html
 COMMENT=               Extremely fast library for floating-point convolution
 
 DJB_RESTRICTED=                YES
 NOT_FOR_PLATFORM=      IRIX-*-*
 
-.ifdef(WITH_OPT_PENTIUM)
-DJB_CONFIG_CMDS=       ${ECHO} pentium > conf-opt
-.endif
-.ifdef(WITH_OPT_PPRO)
-DJB_CONFIG_CMDS=       ${ECHO} ppro > conf-opt
-.endif
-.if (${MACHINE_ARCH} == "sparc")
-DJB_CONFIG_CMDS=       ${ECHO} sparc > conf-opt
-.endif
-
-post-extract:
-.if (${MACHINE_ARCH} == "i386" && !WITH_OPT_PENTIUM)
-       @${ECHO} '===> Set WITH_OPT_PENTIUM to optimize for both Pentium and Pentium MMX'
-       @${ECHO} '     like processors.'
-.endif
-.if (${MACHINE_ARCH} == "i386" && !WITH_OPT_PPRO)
-       @${ECHO} '===> Set WITH_OPT_PPRO to optimize for Pentium Pro, Pentium II, and'
-       @${ECHO} '     Pentium III like processors.'
-.endif
-
 .include "../../mk/djbware.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r d698bdfe3bfc -r 4b2d24ac70a5 math/djbfft/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/math/djbfft/options.mk    Fri Aug 19 05:07:42 2005 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: options.mk,v 1.1 2005/08/19 05:07:42 schmonz Exp $
+
+PKG_OPTIONS_VAR=               PKG_OPTIONS.djbfft
+PKG_OPTIONS_OPTIONAL_GROUPS=   optimization
+PKG_OPTIONS_GROUP.optimization=        djbfft-pentium djbfft-ppro djbfft-sparc
+PKG_OPTIONS_LEGACY_VARS+=      WITH_OPT_PENTIUM:djbfft-pentium
+PKG_OPTIONS_LEGACY_VARS+=      WITH_OPT_PPRO:djbfft-ppro
+
+.if ${MACHINE_ARCH} == "sparc"
+PKG_SUGGESTED_OPTIONS= djbfft-sparc
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdjbfft-pentium)
+DJB_CONFIG_CMDS=        ${ECHO} pentium > conf-opt
+.endif
+
+.if !empty(PKG_OPTIONS:Mdjbfft-ppro)
+DJB_CONFIG_CMDS=        ${ECHO} ppro > conf-opt
+.endif
+
+.if !empty(PKG_OPTIONS:Mdjbfft-sparc)
+DJB_CONFIG_CMDS=        ${ECHO} sparc > conf-opt
+.endif



Home | Main Index | Thread Index | Old Index