Bug 71272 - [PATCH] math/fftw - add slave port for Single Percision
Summary: [PATCH] math/fftw - add slave port for Single Percision
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Michael Johnson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-02 06:10 UTC by Michael Johnson
Modified: 2004-11-10 11:38 UTC (History)
0 users

See Also:


Attachments
file.shar (1.08 KB, text/plain)
2004-09-02 06:10 UTC, Michael Johnson
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Johnson 2004-09-02 06:10:10 UTC
- add slave port for Single Percision

Fix: -- Begin math-fftw.patch --

-- End math-fftw.patch --

-- Begin math-fftw-float.shar --



-- End math-fftw-float.shar ----3Pwp9w9U0LtkpDS7Bi0pQYgim5V4RuLDOf00VBaVU1tHbGhs
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

Index: Makefile
===================================================================
RCS file: /usr/opt/cvs/freebsd-src/ports/math/fftw/Makefile,v
retrieving revision 1.18
diff -u -r1.18 Makefile
--- Makefile	9 Jul 2004 17:42:33 -0000	1.18
+++ Makefile	2 Sep 2004 04:58:56 -0000
@@ -7,36 +7,52 @@
 
 PORTNAME=	fftw
 PORTVERSION=	2.1.5
-PORTREVISION=	2
+PORTREVISION?=	3
 CATEGORIES=	math
 MASTER_SITES=	ftp://ftp.fftw.org/pub/fftw/ 		\
 		ftp://ftp.fftw.org/pub/fftw/old/ 	\
 		ftp://theory.lcs.mit.edu/pub/fftw/	\
 		ftp://pm.cse.rmit.edu.au/pub/dsp/fftw/
+PKGNAMESUFFIX=	${FFTW_PKGNAMESUFFIX}
 
-MAINTAINER=	Lars.Koeller@Uni-Bielefeld.DE
-COMMENT=	Fast C routines to compute the Discrete Fourier Transform
+MAINTAINER?=	Lars.Koeller@Uni-Bielefeld.DE
+COMMENT?=	Fast C routines to compute the Discrete Fourier Transform
 
+# current flavors: default, float
+FFTW_FLAVOR?=	default
+FFTW_SUFIX=
+
+USE_REINPLACE=	yes
 USE_GMAKE=	yes
 USE_INC_LIBTOOL_VER=13
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ENV=	MAKEINFO="makeinfo --no-split"
-CONFIGURE_ARGS=	--enable-shared
+CONFIGURE_ARGS+=	--enable-shared
 INSTALLS_SHLIB=	yes
 
 .include <bsd.port.pre.mk>
 
+.if ${FFTW_FLAVOR}!="default"
+INSTALL_TARGET=	install-exec
+.endif
+
+.if ${FFTW_FLAVOR}=="float"
+CONFIGURE_ARGS+=	--enable-float --enable-type-prefix
+FFTW_SUFX=		f
+FFTW_PKGNAMESUFFIX=	-float
+.endif
+
 .if ${ARCH} == "i386"
 CONFIGURE_ARGS+=	--enable-i386-hacks
 .endif
 
-post-extract:
+post-patch:
 	@${RM} ${WRKSRC}/doc/fftw.info*
 
 post-install:
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/fftw.ps ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/fftw.ps ${DOCSDIR}/fftw${FFTW_SUFX}.ps
 .endif
 
 .include <bsd.port.post.mk>
Comment 1 Michael Johnson freebsd_committer freebsd_triage 2004-10-31 01:50:50 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ahze

Handle
Comment 2 Michael Johnson freebsd_committer freebsd_triage 2004-11-10 07:06:35 UTC
Dear Maintainer,
	Please see http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/71272
Do you approve or disapprove of this patch?

Michael
Comment 3 Michael Johnson freebsd_committer freebsd_triage 2004-11-10 07:07:36 UTC
State Changed
From-To: open->feedback

Asked maintainer for feedback
Comment 4 lars.koeller 2004-11-10 07:34:43 UTC
----------

In reply to mike johnson who wrote:
=20
> Dear Maintainer,
> =09Please see http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dports/71=
272
> Do you approve or disapprove of this patch?

Yes, but it should be added an OPTION line where it is possible to se=
t=20
the FFTW_FLAVOR.

This has the great advantage of persistence and one can automatically=
=20
update the ports.

Regards

Lars

--=20
 Lars K=F6ller      \   Raum   : V0-318 (Tel: 4964)
  Leitung Systeme  \  E-Mail : Lars.Koeller@Uni-Bielefeld.DE
  und Serverdienste \ PGP-Key: http://www.uk.pgp.net/pgpnet/wwwkeys.h=
tml
----------- FreeBSD, what else? ---- http://www.de.freebsd.org ------=
---
Comment 5 Michael Johnson freebsd_committer freebsd_triage 2004-11-10 08:00:54 UTC
FFTW_FLAVOR will be defined by the new port math/fftw-float
so you don't need both..

See math/fftw3 math/fftw3-float math/fftw3-long for an example on how 
this works

Michael
On Nov 10, 2004, at 2:34 AM, Lars Köller wrote:

> ----------
>
> In reply to mike johnson who wrote:
>
>> Dear Maintainer,
>> 	Please see http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/71272
>> Do you approve or disapprove of this patch?
>
> Yes, but it should be added an OPTION line where it is possible to set
> the FFTW_FLAVOR.
>
> This has the great advantage of persistence and one can automatically
> update the ports.
>
> Regards
>
> Lars
>
> -- 
>  Lars Köller      \   Raum   : V0-318 (Tel: 4964)
>   Leitung Systeme  \  E-Mail : Lars.Koeller@Uni-Bielefeld.DE
>   und Serverdienste \ PGP-Key: 
> http://www.uk.pgp.net/pgpnet/wwwkeys.html
> ----------- FreeBSD, what else? ---- http://www.de.freebsd.org 
> ---------

>
Comment 6 Michael Johnson freebsd_committer freebsd_triage 2004-11-10 11:38:13 UTC
State Changed
From-To: feedback->closed

Committed