ports/71272: [PATCH] math/fftw - add slave port for Single Percision
michael johnson
ahze at ahze.net
Thu Sep 2 05:10:11 UTC 2004
>Number: 71272
>Category: ports
>Synopsis: [PATCH] math/fftw - add slave port for Single Percision
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Sep 02 05:10:10 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: michael johnson
>Release: 5.3
>Organization:
>Environment:
>Description:
- add slave port for Single Percision
>How-To-Repeat:
>Fix:
-- Begin math-fftw.patch --
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 at Uni-Bielefeld.DE
-COMMENT= Fast C routines to compute the Discrete Fourier Transform
+MAINTAINER?= Lars.Koeller at 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>
-- End math-fftw.patch --
-- Begin math-fftw-float.shar --
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# fftw-float/
# fftw-float/Makefile
# fftw-float/pkg-plist
#
echo c - fftw-float/
mkdir -p fftw-float/ > /dev/null 2>&1
echo x - fftw-float/Makefile
sed 's/^X//' >fftw-float/Makefile << 'END-of-fftw-float/Makefile'
X# New ports collection makefile for: fftw-float
X# Date created: 2004-09-02
X# Whom: Michael Johnson <ahze at ahze.net>
X#
X# $FreeBSD$
X#
X
XPORTREVISION= 0
X
XCOMMENT= Fast C routines (Single Percision)
X
XFFTW_FLAVOR= float
XMASTERDIR= ${.CURDIR}/../fftw
X
X.include "${MASTERDIR}/Makefile"
END-of-fftw-float/Makefile
echo x - fftw-float/pkg-plist
sed 's/^X//' >fftw-float/pkg-plist << 'END-of-fftw-float/pkg-plist'
Xlib/libdfftw.a
Xlib/libdfftw.so
Xlib/libdfftw.so.2
Xlib/libdrfftw.a
Xlib/libdrfftw.so
Xlib/libdrfftw.so.2
X%%DOCSDIR%%/fftwf.ps
X at unexec rmdir %D/%%DOCSDIR%% 2>/dev/null || true
END-of-fftw-float/pkg-plist
exit
-- End math-fftw-float.shar --
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list