From b847c16670504718544a0b591ac8988333b241d0 Mon Sep 17 00:00:00 2001 From: krion Date: Tue, 12 Oct 2004 12:59:39 +0000 Subject: Update to version 2004.10.04 PR: ports/72531 Submitted by: Ports Fury --- math/fxt/Makefile | 37 ++++++++++++++++++++++++++++--------- 1 file changed, 28 insertions(+), 9 deletions(-) (limited to 'math/fxt/Makefile') diff --git a/math/fxt/Makefile b/math/fxt/Makefile index c6bea66f6a98..5ccccd2f1f02 100644 --- a/math/fxt/Makefile +++ b/math/fxt/Makefile @@ -7,8 +7,7 @@ # PORTNAME= fxt -PORTVERSION= 2003.02.18 -PORTREVISION= 1 +PORTVERSION= 2004.10.04 CATEGORIES= math MASTER_SITES= http://www.jjj.de/fxt/ EXTRACT_SUFX= .tgz @@ -18,14 +17,34 @@ COMMENT= FFT code and related stuff WRKSRC= ${WRKDIR}/${PORTNAME} +USE_GCC= 3.4 +USE_REINPLACE= yes USE_GMAKE= yes MAKEFILE= makefile - -.include - -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile with gcc 3.4.2" +MAKE_ENV= CXX="${CXX}" OFLAGS="${CXXFLAGS}" + +post-patch: + @${REINPLACE_CMD} -e 's|^OFLAGS|#OFLAGS|g ; \ + s|^ARCHFLAG|#ARCHFLAG|g ; \ + s|^WFLAGS|#WFLAGS|g ; \ + s|^GFLAGS|#GFLAGS|g ; \ + s|^PFLAGS|#PFLAGS|g ; \ + s|^FXT_CXXFLAGS|#FXT_CXXFLAGS|g' ${WRKSRC}/makefile + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libfxt.a ${PREFIX}/lib + @${MKDIR} ${PREFIX}/include/fxt + ${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include/fxt +.for dir in aux0 aux1 aux2 bits bmat bpol chirpzt correlation comb \ + comb/bucket convolution dctdst demo ds fft fht graph graph/bucket \ + haar matrix matrixfft mod mult ntt perm perm/bucket realfft simplfft \ + sort sort/bucket test walsh wavelet + @${MKDIR} ${PREFIX}/include/fxt/${dir} + ${INSTALL_DATA} ${WRKSRC}/${dir}/*.h ${PREFIX}/include/fxt/${dir} +.endfor +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/00*.txt ${DOCSDIR} .endif - -.include +.include -- cgit