blob: 866a581a49e3e059067b9c9df86c7add11f67a12 (
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
|
# New ports collection makefile for: ReZound
# Date created: 17 May 2005
# Whom: Alexey Dokuchaev <danfe@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= rezound
DISTVERSION= 0.12.1beta
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= danfe@FreeBSD.org
COMMENT= Graphical audio file editor
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison
LIB_DEPENDS= FOX-1.4:${PORTSDIR}/x11-toolkits/fox14
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}"
CONFIGURE_ARGS+= --disable-alsa
OPTIONS= LARGEFILE "Enable 64-bit file I/O support (BROKEN!)" off \
JACK "Enable Jack audio server support" on \
AUDIOFILE "Enable Audio File Library support" on \
PORTAUDIO "Enable PortAudio support" on \
OGG "Enable OGG support" on \
VORBIS "Enable Vorbis support" on \
FLAC "Enable FLAC support" on \
FFTW "Enable FFTW support" on \
SOUNDTOUCH "Enable SoundTouch features" on \
LADSPA "Enable LADSPA plugin support" on \
LAME "Enable loading and saving MP3s" on \
CDRDAO "Enable burning audio files to CD" on \
NLS "Enable National Language Support" on
.include <bsd.port.pre.mk>
.if defined(WITH_LARGEFILE)
CONFIGURE_ARGS+= --enable-largefile
BROKEN= no expl(), logl(), nearbyintl(), et al
.endif
.if defined(WITH_JACK)
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
.endif
.if defined(WITH_AUDIOFILE)
LIB_DEPENDS+= audiofile.0:${PORTSDIR}/audio/libaudiofile
.endif
.if defined(WITH_PORTAUDIO)
LIB_DEPENDS+= portaudio.0:${PORTSDIR}/audio/portaudio
.endif
.if defined(WITH_OGG)
LIB_DEPENDS+= ogg.5:${PORTSDIR}/audio/libogg
.endif
.if defined(WITH_VORBIS)
LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
.endif
.if defined(WITH_FLAC)
LIB_DEPENDS+= FLAC.7:${PORTSDIR}/audio/flac
.endif
.if defined(WITH_FFTW)
BUILD_DEPENDS+= ${LOCALBASE}/include/fftw.h:${PORTSDIR}/math/fftw
.endif
.if defined(WITH_SOUNDTOUCH)
BUILD_DEPENDS+= ${LOCALBASE}/include/soundtouch/SoundTouch.h:${PORTSDIR}/audio/soundtouch
.endif
.if defined(WITH_LADSPA)
RUN_DEPENDS+= ${LOCALBASE}/lib/ladspa/amp.so:${PORTSDIR}/audio/ladspa
.else
CONFIGURE_ARGS+= --disable-ladspa
.endif
.if defined(WITH_LAME)
RUN_DEPENDS+= lame:${PORTSDIR}/audio/lame
.endif
.if defined(WITH_CDRDAO)
RUN_DEPENDS+= cdrdao:${PORTSDIR}/sysutils/cdrdao
.endif
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if defined(GCCVERSION)
. if ${GCCVERSION} < 030000
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-fbsd4
. endif
.else
. if ${OSVERSION} < 500035
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-fbsd4
. endif
.endif
post-patch: .SILENT
.if ${OSVERSION} > 500027
${REINPLACE_CMD} -e '/atoll/d' ${WRKSRC}/config/platform/bsd.h
.endif
.if ${OSVERSION} > 502112
${REINPLACE_CMD} -e '/round/d' ${WRKSRC}/config/platform/bsd.h
.endif
.if ${OSVERSION} > 502120
${REINPLACE_CMD} -e '/nearbyint/d' ${WRKSRC}/config/platform/bsd.h
.endif
.if ${OSVERSION} < 500028
${REINPLACE_CMD} -e '22586,$$s/stdint/inttypes/' \
-e '21693s/$$srcdir/..\/../' ${WRKSRC}/configure
.endif
${REINPLACE_CMD} -E 's,(_nl_expand_alias \()\),\1...),' ${WRKSRC}/configure
${REINPLACE_CMD} -e 's,$$(prefix)/doc,$$(datadir)/doc,' \
${WRKSRC}/config/am_include.mk ${WRKSRC}/Makefile.in \
${WRKSRC}/src/Makefile.in ${WRKSRC}/src/misc/Makefile.in \
${WRKSRC}/src/misc/CNestedDataFile/Makefile.in \
${WRKSRC}/src/PoolFile/Makefile.in \
${WRKSRC}/src/backend/DSP/Makefile.in \
${WRKSRC}/src/backend/Makefile.in \
${WRKSRC}/src/backend/File/Makefile.in \
${WRKSRC}/src/backend/Edits/Makefile.in \
${WRKSRC}/src/backend/Effects/Makefile.in \
${WRKSRC}/src/backend/Filters/Makefile.in \
${WRKSRC}/src/backend/Looping/Makefile.in \
${WRKSRC}/src/backend/Generate/Makefile.in \
${WRKSRC}/src/backend/Remaster/Makefile.in \
${WRKSRC}/src/backend/LADSPA/Makefile.in \
${WRKSRC}/src/frontend_fox/Makefile.in
.if defined(NOPORTDOCS)
${REINPLACE_CMD} -e 's/ install-pkgdocDATA$$//' ${WRKSRC}/Makefile.in
.else
${REINPLACE_CMD} -e '/AUTHORS/d; /COPYING/d' ${WRKSRC}/Makefile.in
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/share/key_bindings.dat ${DATADIR}
.include <bsd.port.post.mk>
|