blob: 44f6b0932a5439b13307a486806d9062e911851e (
plain) (
blame)
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
# New ports collection makefile for: snd
# Date created: 2000-10-05
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME= snd
PORTVERSION= 10.2
CATEGORIES= audio
MASTER_SITES= SF \
http://mirror.mcx2.org/
MAINTAINER= adox@mcx2.org
COMMENT= Multitracking sound editor and utilities
OPTIONS= ESD "Use Enlightened Sound Daemon" on \
FFTW3 "Use FFTW" on \
GSL "Use GNU Scientific Library" on \
GUILE "Use Guile as the extension language" on \
GAUCHE "Use Gauche as the extension language" off \
S7 "Use S7 as the extension language" off \
LADSPA "Include support for LADSPA plugins" on \
NLS "Native Language Support" on \
RUBY "Use Ruby as the extension language" off \
X11 "Make Snd with Gtk+ graphics support" on
USE_GNOME= gnometarget
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-float-samples
MAKEFILE= makefile
ALL_TARGET= audinfo snd snd-info sndplay sndrecord
MAN1= snd.1
CFLAGS+= -I${LOCALBASE}/include
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= does not compile on sparc64
.endif
.if !defined(WITHOUT_ESD)
USE_GNOME+= esound
CONFIGURE_ARGS+= --with-esd
.endif
.if !defined(WITHOUT_FFTW3)
LIB_DEPENDS+= fftw3.4:${PORTSDIR}/math/fftw3
.else
CONFIGURE_ARGS+= --without-fftw
.endif
.if !defined(WITHOUT_GSL)
LIB_DEPENDS+= gsl.12:${PORTSDIR}/math/gsl
.else
CONFIGURE_ARGS+= --without-gsl
.endif
.if !defined(WITHOUT_GUILE)
LIB_DEPENDS+= guile.19:${PORTSDIR}/lang/guile
PLIST_SUB+= SCHEME=""
.else
CONFIGURE_ARGS+= --without-guile
.endif
.if !defined(WITHOUT_GAUCHE)
CONFIGURE_ARGS+= --with-gauche
LIB_DEPENDS+= gauche.0:${PORTSDIR}/lang/gauche
PLIST_SUB+= SCHEME=""
.else
CONFIGURE_ARGS+= --without-gauche
.endif
.if !defined(WITHOUT_S7)
CONFIGURE_ARGS+= --with-s7
PLIST_SUB+= SCHEME=""
.else
CONFIGURE_ARGS+= --without-s7
.endif
.if !defined(WITHOUT_LADSPA)
BUILD_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
RUN_DEPENDS+= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
.else
CONFIGURE_ARGS+= --without-ladspa
.endif
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if defined(WITH_RUBY)
USE_RUBY= yes
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
CONFIGURE_ARGS+= --with-ruby
PLIST_SUB+= SCHEME="@comment "
.endif
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+= --with-no-gui
PLIST_SUB+= X11="@comment "
.else
USE_GNOME+= gtk20
CONFIGURE_ARGS+= --with-gtk
PLIST_SUB+= X11=""
.endif
post-patch:
@${REINPLACE_CMD} -e 's|^ _Complex| Vaiolate _Complex|g ; \
s|-O2 -I|-I|g ; \
s|LDFLAGS -ldl|LDFLAGS|g' ${WRKSRC}/configure
.for i in makefile.in makefile.no-gettext
@${REINPLACE_CMD} -e 's|^sndinfo:|snd-info:|g ; \
s|-o sndinfo|-o snd-info|g' ${WRKSRC}/${i}
.endfor
do-install:
.for i in audinfo snd snd-info sndplay sndrecord
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin
.endfor
${INSTALL_MAN} ${WRKSRC}/snd.1 ${MANPREFIX}/man/man1/
.if !defined(WITHOUT_X11)
${INSTALL_DATA} ${WRKSRC}/Snd.ad ${PREFIX}/lib/X11/app-defaults/
.endif
.if !defined(WITHOUT_NLS)
${INSTALL_DATA} ${WRKSRC}/po/de.gmo \
${PREFIX}/share/locale/de/LC_MESSAGES/snd.mo
.endif
.if !defined(WITHOUT_GUILE)
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.scm ${DATADIR}
@${MKDIR} ${DATADIR}/tools
${INSTALL_DATA} ${WRKSRC}/tools/*.scm ${DATADIR}/tools
@${MKDIR} ${DATADIR}/sndins/samples
${INSTALL_DATA} ${WRKSRC}/sndins/samples/*.scm ${DATADIR}/sndins/samples
.endif
.if !defined(WITHOUT_GAUCHE)
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.scm ${DATADIR}
@${MKDIR} ${DATADIR}/tools
${INSTALL_DATA} ${WRKSRC}/tools/*.scm ${DATADIR}/tools
@${MKDIR} ${DATADIR}/sndins/samples
${INSTALL_DATA} ${WRKSRC}/sndins/samples/*.scm ${DATADIR}/sndins/samples
.endif
.if !defined(WITHOUT_S7)
@${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/*.scm ${DATADIR}
@${MKDIR} ${DATADIR}/tools
${INSTALL_DATA} ${WRKSRC}/tools/*.scm ${DATADIR}/tools
@${MKDIR} ${DATADIR}/sndins/samples
${INSTALL_DATA} ${WRKSRC}/sndins/samples/*.scm ${DATADIR}/sndins/samples
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in HISTORY.Snd README.Snd TODO.Snd
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/pix
${INSTALL_DATA} ${WRKSRC}/pix/*.png ${DOCSDIR}/pix
cd ${WRKSRC} && ${PAX} -r -w tutorial ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/DotEmacs ${EXAMPLESDIR}
.if !defined(WITHOUT_X11)
${INSTALL_DATA} ${WRKSRC}/Snd.gtkrc ${EXAMPLESDIR}
.endif
.endif
.include <bsd.port.post.mk>
|