2001-11-28 04:57:15 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: fxt
|
|
|
|
# Date created: Nov 28, 2001
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= fxt
|
2007-01-01 17:21:17 +01:00
|
|
|
PORTVERSION= 2006.12.17
|
2001-11-28 04:57:15 +01:00
|
|
|
CATEGORIES= math
|
2006-05-16 13:38:39 +02:00
|
|
|
MASTER_SITES= http://www.jjj.de/fxt/ \
|
2006-09-30 11:30:19 +02:00
|
|
|
${MASTER_SITE_LOCAL:S/%SUBDIR%/stas/}
|
2001-11-28 04:57:15 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= FFT code and related stuff
|
2001-11-28 04:57:15 +01:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2005-10-29 20:42:44 +02:00
|
|
|
USE_GCC= 3.4+
|
2002-03-03 09:09:43 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKEFILE= makefile
|
2006-09-30 11:30:19 +02:00
|
|
|
MAKE_ENV= CXX="${CXX}"
|
2004-10-12 14:59:39 +02:00
|
|
|
|
2006-09-30 11:30:19 +02:00
|
|
|
# XXX: exists untill it will be committed to bsd.port.mk
|
|
|
|
COPYTREE_SHARE= ${SH} -c '(${FIND} -d $$0 $$2 | ${CPIO} -dumpl $$1 >/dev/null \
|
|
|
|
2>&1) && \
|
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} $$1 && \
|
|
|
|
${FIND} $$1/ -type d -exec ${CHMOD} 755 {} \; && \
|
|
|
|
${FIND} $$1/ -type f -exec ${CHMOD} ${SHAREMODE} {} \;' --
|
2006-01-20 11:03:43 +01:00
|
|
|
|
2004-10-12 14:59:39 +02:00
|
|
|
post-patch:
|
2006-09-30 11:30:19 +02:00
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's,^(FXT_CXXFLAGS),#\1,' \
|
|
|
|
-e 's,^(CXXFLAGS),#\1,' \
|
|
|
|
${WRKSRC}/makefile
|
2006-05-10 21:14:43 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|sinl|Sin|g' ${WRKSRC}/src/aux0/trigrec.h
|
2005-10-29 20:42:44 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|sinl|sin|g' ${WRKSRC}/src/fht/hartleyshift.h
|
2004-10-12 14:59:39 +02:00
|
|
|
|
2006-09-30 11:30:19 +02:00
|
|
|
post-install:
|
2004-10-12 14:59:39 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-09-30 11:30:19 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/00*.txt ${DOCSDIR}/
|
|
|
|
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
(cd ${WRKSRC}/demo && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
|
2004-08-16 04:33:05 +02:00
|
|
|
.endif
|
|
|
|
|
2006-09-30 11:30:19 +02:00
|
|
|
plist:
|
|
|
|
@truncate -s0 pkg-plist
|
|
|
|
@${ECHO_CMD} "lib/libfxt.a" >> pkg-plist
|
|
|
|
|
|
|
|
#
|
|
|
|
# Includes
|
|
|
|
#
|
|
|
|
@${FIND} ${PREFIX}/include/fxt/ ! -type d | \
|
|
|
|
${SED} 's,^${PREFIX}/,,' >> pkg-plist
|
|
|
|
@${FIND} ${PREFIX}/include/fxt/ -type d | ${SORT} -r | \
|
|
|
|
${SED} 's,^${PREFIX}/,@dirrm ,' >> pkg-plist
|
|
|
|
|
|
|
|
#
|
|
|
|
# Examples
|
|
|
|
#
|
|
|
|
@${FIND} ${EXAMPLESDIR}/ ! -type d | \
|
|
|
|
${SED} 's,^${EXAMPLESDIR},%%PORTDOCS%%%%EXAMPLESDIR%%,' \
|
|
|
|
>> pkg-plist
|
|
|
|
@${FIND} ${EXAMPLESDIR}/ -type d | ${SORT} -r | \
|
|
|
|
${SED} -E -e \
|
|
|
|
's,^${EXAMPLESDIR}(.*),%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%\1,' \
|
|
|
|
>> pkg-plist
|
|
|
|
|
|
|
|
#
|
|
|
|
# Docs
|
|
|
|
#
|
|
|
|
@${FIND} ${DOCSDIR}/ ! -type d | \
|
|
|
|
${SED} 's,^${DOCSDIR},%%PORTDOCS%%%%DOCSDIR%%,' >> pkg-plist
|
|
|
|
@${FIND} ${DOCSDIR}/ -type d | ${SORT} -r | \
|
|
|
|
${SED} -E -e \
|
|
|
|
's,^${DOCSDIR}(.*),%%PORTDOCS%%@dirrm %%DOCSDIR%%\1,' \
|
|
|
|
>> pkg-plist
|
|
|
|
|
2004-10-12 14:59:39 +02:00
|
|
|
.include <bsd.port.mk>
|