2002-05-15 20:10:16 +00:00
|
|
|
# New ports collection makefile for: djbfft
|
|
|
|
# Date created: Wed May 15 16:29:51 BRT 2002
|
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= djbfft
|
|
|
|
PORTVERSION= 0.76
|
2005-04-17 23:07:53 +00:00
|
|
|
PORTREVISION= 2
|
2002-05-15 20:10:16 +00:00
|
|
|
CATEGORIES= math
|
|
|
|
MASTER_SITES= http://cr.yp.to/djbfft/
|
|
|
|
|
2007-04-01 19:39:19 +00:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2003-02-23 19:58:35 +00:00
|
|
|
COMMENT= An extremely fast library for floating-point convolution
|
2002-05-15 20:10:16 +00:00
|
|
|
|
2006-09-03 17:36:56 +00:00
|
|
|
RESTRICTED= Forbidden to redistribute - we have patches to the distribution.
|
2002-05-16 00:08:59 +00:00
|
|
|
|
2004-03-09 01:09:46 +00:00
|
|
|
DISABLE_SIZE= yes
|
2002-05-15 20:10:16 +00:00
|
|
|
ALL_TARGET=
|
|
|
|
INSTALL_TARGET=setup check
|
|
|
|
|
2004-04-13 22:59:18 +00:00
|
|
|
HEADER_FILES= complex4.h complex8.h fftc4.h fftc8.h fftfreq.h \
|
|
|
|
fftr4.h fftr8.h real4.h real8.h
|
|
|
|
LIB_FILES= libdjbfft.a
|
|
|
|
|
2002-05-15 20:10:16 +00:00
|
|
|
post-patch:
|
2003-11-13 13:30:42 +00:00
|
|
|
@${FIND} ${WRKSRC} -type f -exec \
|
2005-04-17 23:07:53 +00:00
|
|
|
${REINPLACE_CMD} -E -e 's!(djbfft.a)!lib\1!' {} \;
|
|
|
|
@${REINPLACE_CMD} -E 's|("include)|\1/${PORTNAME}|' ${WRKSRC}/hier.c
|
2002-05-15 20:10:16 +00:00
|
|
|
|
|
|
|
do-configure:
|
2004-01-31 04:00:09 +00:00
|
|
|
@${ECHO_CMD} '${CC} ${CFLAGS} -fPIC' > ${WRKSRC}/conf-cc
|
2002-05-15 20:10:16 +00:00
|
|
|
@${ECHO_CMD} '${CC}' > ${WRKSRC}/conf-ld
|
|
|
|
@${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-home
|
|
|
|
.ifdef(WITH_OPT_PENTIUM)
|
|
|
|
@${ECHO_CMD} 'pentium' > ${WRKSRC}/conf-opt
|
|
|
|
.endif
|
|
|
|
.ifdef(WITH_OPT_PPRO)
|
|
|
|
@${ECHO_CMD} 'ppro' > ${WRKSRC}/conf-opt
|
|
|
|
.endif
|
|
|
|
.ifdef(WITH_OPT_SPARC)
|
|
|
|
@${ECHO_CMD} 'sparc' > ${WRKSRC}/conf-opt
|
|
|
|
.endif
|
|
|
|
|
2006-05-03 20:06:38 +00:00
|
|
|
pre-su-install:
|
2002-05-15 20:10:16 +00:00
|
|
|
@${MKDIR} ${PREFIX}/include/${PORTNAME}
|
|
|
|
|
2004-04-13 22:59:18 +00:00
|
|
|
do-install:
|
|
|
|
.for file in ${HEADER_FILES}
|
2004-04-14 22:39:23 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/include/${PORTNAME}
|
2004-04-13 22:59:18 +00:00
|
|
|
.endfor
|
|
|
|
.for file in ${LIB_FILES}
|
2004-04-14 22:39:23 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/lib
|
2004-04-13 22:59:18 +00:00
|
|
|
.endfor
|
|
|
|
|
2002-05-15 20:10:16 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
pre-everything::
|
|
|
|
.ifndef(WITH_OPT_PENTIUM)
|
|
|
|
@${ECHO_MSG} '===> Set WITH_OPT_PENTIUM to optimize for both Pentium and Pentium MMX'
|
|
|
|
@${ECHO_MSG} ' like processors.'
|
|
|
|
.endif
|
|
|
|
.ifndef(WITH_OPT_PPRO)
|
|
|
|
@${ECHO_MSG} '===> Set WITH_OPT_PPRO to optimize for Pentium Pro, Pentium II, and'
|
|
|
|
@${ECHO_MSG} ' Pentium III like processors.'
|
|
|
|
.endif
|
|
|
|
.ifndef(WITH_OPT_SPARC)
|
|
|
|
@${ECHO_MSG} '===> Set WITH_OPT_SPARC to optimize for Sparc family of processors.'
|
|
|
|
@${ECHO_MSG} ' Works well with UltraSPARC-I and UltraSPARC-II processors.'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|