freebsd-ports/math/fxt/Makefile

83 lines
1.8 KiB
Makefile
Raw Normal View History

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
MASTER_SITES= http://www.jjj.de/fxt/ \
http://freebsd.unixfreunde.de/sources/
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}
USE_GCC= 3.4+
USE_GMAKE= yes
MAKEFILE= makefile
MAKE_ENV= CXX="${CXX}"
2007-05-27 05:03:31 +02:00
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 700042
BROKEN= Broken with gcc 4.2
.endif
post-patch:
@${REINPLACE_CMD} -E \
-e 's,^(FXT_CXXFLAGS),#\1,' \
-e 's,^(CXXFLAGS),#\1,' \
${WRKSRC}/makefile
@${REINPLACE_CMD} -e 's|sinl|Sin|g' ${WRKSRC}/src/aux0/trigrec.h
@${REINPLACE_CMD} -e 's|sinl|sin|g' ${WRKSRC}/src/fht/hartleyshift.h
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/00*.txt ${DOCSDIR}/
${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/demo && ${COPYTREE_SHARE} \* ${EXAMPLESDIR}/)
.endif
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
2007-05-27 05:03:31 +02:00
.include <bsd.port.post.mk>