blob: 6ec9ab70b4336834438419150df94e6a6ca48357 (
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
|
# New ports collection makefile for: snd
# Date created: 2000-10-05
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME= snd
PORTVERSION= 7.8
PORTREVISION= 10
CATEGORIES= audio
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= Multitracking sound editor and utilities
LIB_DEPENDS= gsl.12:${PORTSDIR}/math/gsl
ALL_TARGET= audinfo snd sndinfo sndplay sndrecord sndsine
CONFIGURE_ARGS= --with-float-samples \
--with-multifile
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CFLAGS="${CFLAGS}"
GNU_CONFIGURE= yes
MAKE_ENV= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}"
MAKEFILE= makefile
MAN1= snd.1
OPTIONS= ESD "output through enlightened sound daemon" on \
GUILE "use Guile" on \
RUBY "use Ruby as the extension language" on \
NLS "Native Language Support" on
PLIST= ${WRKDIR}/plist
PLIST_FILES= share/examples/snd/DotEmacs
PLIST_DIRS= share/examples/snd
WRKSRC= ${WRKDIR}/snd-7
.if !defined(NOPORTDOCS)
PLIST_FILES+= share/doc/snd/tutorial/files/.snd \
share/doc/snd/tutorial/files/misc.scm.txt \
share/doc/snd/tutorial/files/misc.scm.txt~ \
share/doc/snd/tutorial/README \
share/doc/snd/tutorial/1_intro_and_build_snd.html~
.endif
.if defined(WITHOUT_X11)
CONFIGURE_ARGS+= --with-no-gui
.else
CONFIGURE_ARGS+= --with-gtk \
--with-gtkrc-colors \
--with-float-samples
USE_GNOME= gtk20
USE_XORG= x11
.endif
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_ESD)
CONFIGURE_ARGS+= --with-esd
RUN_DEPENDS+= esd:${PORTSDIR}/audio/esound
.endif
.if !defined(WITHOUT_RUBY)
CONFIGURE_ARGS+= --with-ruby
RUN_DEPENDS+= ruby:${PORTSDIR}/lang/ruby18
.endif
.if !defined(WITHOUT_GUILE)
LIB_DEPENDS+= guile.18:${PORTSDIR}/lang/guile
.if !defined(WITHOUT_X11)
LIB_DEPENDS+= guilegtk-1.2:${PORTSDIR}/x11-toolkits/guile-gtk
.endif
.else
CONFIGURE_ARGS+= --without-guile
.endif
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_FILES+= share/locale/de/LC_MESSAGES/snd.mo
.else
CONFIGURE_ARGS+=--disable-nls
.endif
.if ${ARCH} == "sparc64"
BROKEN= does not compile on sparc64
.endif
post-build:
${MV} ${WRKSRC}/sndinfo ${WRKSRC}/snd-info
pre-install:
@${ECHO_CMD} "" > ${PLIST}
.if !defined(WITHOUT_X11)
${ECHO_CMD} lib/X11/app-defaults/Snd.ad >> ${PLIST}
${ECHO_CMD} share/examples/snd/Snd.gtkrc >> ${PLIST}
.endif
.for i in audinfo snd snd-info sndplay sndrecord sndsine
${ECHO_CMD} bin/${i} >> ${PLIST}
.endfor
.if !defined(NOPORTDOCS)
.for i in COPYING HISTORY.Snd README.Snd TODO.Snd
${ECHO_CMD} share/doc/snd/${i} >> ${PLIST}
.endfor
${FIND} ${WRKDIR} -name '*.html' | \
${SED} -e "s:^${WRKSRC}/:share/doc/snd/:g" >> ${PLIST}
${FIND} ${WRKDIR} -name '*.png' | \
${SED} -e "s:^${WRKSRC}/:share/doc/snd/:g" >> ${PLIST}
${FIND} ${WRKDIR} -name '*.jpg' | \
${SED} -e "s:^${WRKSRC}/:share/doc/snd/:g" >> ${PLIST}
.for ii in share/doc/snd/tutorial/images/jpg \
share/doc/snd/tutorial/images \
share/doc/snd/tutorial/files \
share/doc/snd/tutorial \
share/doc/snd
${ECHO_CMD} @dirrm ${ii} >> ${PLIST}
.endfor
.endif
.if !defined(WITHOUT_GUILE)
${FIND} ${WRKSRC} -name '*.scm' | \
${SED} -e "s:^${WRKSRC}/:share/snd/:g" >> ${PLIST}
${ECHO_CMD} "share/snd/dlp/README" >> ${PLIST}
${ECHO_CMD} "@dirrm share/snd/sndins/samples" >> ${PLIST}
${ECHO_CMD} "@dirrm share/snd/sndins" >> ${PLIST}
${ECHO_CMD} "@dirrm share/snd/tools" >> ${PLIST}
${ECHO_CMD} "@dirrm share/snd/dlp" >> ${PLIST}
${ECHO_CMD} "@dirrm share/snd" >> ${PLIST}
.endif
do-install:
# Only "snd" is an X11 command.
.for i in audinfo snd snd-info sndplay sndrecord sndsine
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin
.endfor
${INSTALL_MAN} ${WRKSRC}/snd.1 ${PREFIX}/man/man1/
.if !defined(WITHOUT_X11)
${INSTALL_DATA} ${WRKSRC}/Snd.ad ${PREFIX}/lib/X11/app-defaults/
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in COPYING HISTORY.Snd README.Snd TODO.Snd
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/DotEmacs ${EXAMPLESDIR}
.if !defined(WITHOUT_X11)
${INSTALL_DATA} ${WRKSRC}/Snd.gtkrc ${EXAMPLESDIR}
.endif
.if !defined(WITHOUT_NLS)
${INSTALL_DATA} ${WRKSRC}/po/de.gmo \
${PREFIX}/share/locale/de/LC_MESSAGES/snd.mo
.endif
.if !defined(NOPORTDOCS)
${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.png ${DOCSDIR}
cd ${WRKSRC} && ${PAX} -r -w tutorial ${DOCSDIR}
.endif
.if !defined(WITHOUT_GUILE)
@${MKDIR} ${DATADIR}
@${MKDIR} ${DATADIR}/dlp
@${MKDIR} ${DATADIR}/tools
@${MKDIR} ${DATADIR}/sndins
@${MKDIR} ${DATADIR}/sndins/samples
${INSTALL_DATA} ${WRKSRC}/*.scm ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/dlp/*.scm ${DATADIR}/dlp
${INSTALL_DATA} ${WRKSRC}/dlp/README ${DATADIR}/dlp
${INSTALL_DATA} ${WRKSRC}/tools/*.scm ${DATADIR}/tools
${INSTALL_DATA} ${WRKSRC}/sndins/samples/*.scm ${DATADIR}/sndins/samples
.endif
.include <bsd.port.post.mk>
|