diff options
author | schmonz <schmonz@pkgsrc.org> | 2005-08-19 05:07:42 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2005-08-19 05:07:42 +0000 |
commit | a19dd2bb83599544c531c199b36b6f86cbea2f89 (patch) | |
tree | f44e404ef70832f404a57f7c260b98ed2e2a79ac /math | |
parent | 5b58b28e3a04f118902472fa0b7d7597f1698a84 (diff) | |
download | pkgsrc-a19dd2bb83599544c531c199b36b6f86cbea2f89.tar.gz |
Convert to the options framework.
Diffstat (limited to 'math')
-rw-r--r-- | math/djbfft/Makefile | 24 | ||||
-rw-r--r-- | math/djbfft/options.mk | 25 |
2 files changed, 27 insertions, 22 deletions
diff --git a/math/djbfft/Makefile b/math/djbfft/Makefile index 9d84cf40b3d..64a490c7565 100644 --- a/math/djbfft/Makefile +++ b/math/djbfft/Makefile @@ -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 -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 --git a/math/djbfft/options.mk b/math/djbfft/options.mk new file mode 100644 index 00000000000..2aa41f79b61 --- /dev/null +++ b/math/djbfft/options.mk @@ -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 |