diff options
author | Michael Johnson <ahze@FreeBSD.org> | 2004-11-10 11:29:18 +0000 |
---|---|---|
committer | Michael Johnson <ahze@FreeBSD.org> | 2004-11-10 11:29:18 +0000 |
commit | 7323b1f83ae50fa3f1c15297e21059d6a0697525 (patch) | |
tree | c80f5036afdcefb234fcd36e0830405a17ee3974 /math/fftw | |
parent | 55ecd7bb658d95c916d9a0b39657ee2602d9d3d4 (diff) | |
download | ports-7323b1f83ae50fa3f1c15297e21059d6a0697525.tar.gz ports-7323b1f83ae50fa3f1c15297e21059d6a0697525.zip |
Notes
Diffstat (limited to 'math/fftw')
-rw-r--r-- | math/fftw/Makefile | 32 | ||||
-rw-r--r-- | math/fftw/pkg-plist | 23 |
2 files changed, 37 insertions, 18 deletions
diff --git a/math/fftw/Makefile b/math/fftw/Makefile index 270748588fd5..09669bee10c1 100644 --- a/math/fftw/Makefile +++ b/math/fftw/Makefile @@ -7,36 +7,58 @@ PORTNAME= fftw PORTVERSION= 2.1.5 -PORTREVISION= 2 +PORTREVISION?= 2 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 +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 +USE_LIBTOOL_VER=15 CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} CONFIGURE_ENV= MAKEINFO="makeinfo --no-split" CONFIGURE_ARGS= --enable-shared INSTALLS_SHLIB= yes +PLIST_SUB= FFTW_SUFX="${FFTW_SUFX}" .include <bsd.port.pre.mk> +.if ${FFTW_FLAVOR}=="float" +CONFIGURE_ARGS+= --enable-float --enable-type-prefix + +FFTW_SUFX= s +FFTW_PKGNAMESUFFIX= -float + +INSTALL_TARGET= install-exec +PLIST_SUB+= DEF="@comment " +.else +INFO= fftw +PLIST_SUB+= DEF="" +.endif + .if ${ARCH} == "i386" CONFIGURE_ARGS+= --enable-i386-hacks .endif -post-extract: +post-patch: @${RM} ${WRKSRC}/doc/fftw.info* post-install: +.if ${FFTW_FLAVOR}=="default" .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/fftw.ps ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/fftw.ps ${DOCSDIR}/fftw.ps +.endif .endif .include <bsd.port.post.mk> diff --git a/math/fftw/pkg-plist b/math/fftw/pkg-plist index d019bd7f4cc0..f86714d348a6 100644 --- a/math/fftw/pkg-plist +++ b/math/fftw/pkg-plist @@ -1,13 +1,10 @@ -include/fftw.h -include/rfftw.h -@unexec install-info --delete %D/info/fftw.info %D/info/dir -info/fftw.info -@exec install-info %D/info/fftw.info %D/info/dir -lib/libfftw.a -lib/libfftw.so -lib/libfftw.so.2 -lib/librfftw.a -lib/librfftw.so -lib/librfftw.so.2 -%%PORTDOCS%%%%DOCSDIR%%/fftw.ps -%%PORTDOCS%%@dirrm %%DOCSDIR%% +%%DEF%%include/fftw.h +%%DEF%%include/rfftw.h +lib/lib%%FFTW_SUFX%%fftw.a +lib/lib%%FFTW_SUFX%%fftw.so +lib/lib%%FFTW_SUFX%%fftw.so.2 +lib/lib%%FFTW_SUFX%%rfftw.a +lib/lib%%FFTW_SUFX%%rfftw.so +lib/lib%%FFTW_SUFX%%rfftw.so.2 +%%DEF%%%%PORTDOCS%%%%DOCSDIR%%/fftw.ps +%%DEF%%%%PORTDOCS%%@dirrm %%DOCSDIR%% |