1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# ex:ts=8
# New ports collection makefile for: fxt
# Date created: Nov 28, 2001
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= fxt
PORTVERSION= 2006.09.24
CATEGORIES= math
MASTER_SITES= http://www.jjj.de/fxt/ \
${MASTER_SITE_LOCAL:S/%SUBDIR%/stas/}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= FFT code and related stuff
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_GCC= 3.4+
USE_GMAKE= yes
MAKEFILE= makefile
MAKE_ENV= CXX="${CXX}"
# 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} {} \;' --
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
.include <bsd.port.mk>
|