aboutsummaryrefslogtreecommitdiff
path: root/audio/audacity-devel/Makefile
blob: a225e540105d2a8bc217ffb79908cdfb2ad48d78 (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
# New ports collection makefile for:	audacity-devel
# Date created:				14 Sep 2006
# Whom:					Jackson Low <xxjack12xx@gmail.com>
#
# $FreeBSD$

PORTNAME=	audacity
PORTVERSION=	1.3.12
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE} \
		SF/${PORTNAME}/${PORTNAME}-unstable/${PORTVERSION}
PKGNAMESUFFIX=	-devel
DISTNAME=	${PORTNAME}-minsrc-${PORTVERSION}-beta

MAINTAINER=	xxjack12xx@gmail.com
COMMENT=	Audacity is a GUI editor for digital audio waveforms

BUILD_DEPENDS+=	automake-1.10:${PORTSDIR}/devel/automake110
BUILD_DEPENDS+=	autoconf-2.62:${PORTSDIR}/devel/autoconf262
LIB_DEPENDS=	sndfile.1:${PORTSDIR}/audio/libsndfile

CONFLICTS=	audacity-[0-9]*

WRKSRC=		${WRKDIR}/${PORTNAME}-src-${PORTVERSION}-beta

GNU_CONFIGURE=	yes
USE_GMAKE=	yes
USE_GCC=	4.2+
USE_GETTEXT=	yes
USE_BZIP2=	yes
USE_WX=		2.8
WX_COMPS=	wx
MAKE_JOBS_SAFE=	yes
PORTDOCS=	README.txt LICENSE.txt
MAN1=		audacity.1
MANCOMPRESSED=	yes

OPTIONS=	DEBUG		"enable debug support" off \
		FFMPEG		"Use ffmpeg for import and export support" on \
		FLAC		"Use libFLAC for FLAC support" on \
		ID3TAG		"Use libid3tag for mp3 id3 tag support" on \
		LADSPA		"enable LADSPA plug-in support" on \
		MAD		"Use libmad for mp2/3 decoding support"	on \
		MIDI		"Use portSMF for Midi support" on \
		NYQUIST		"enable Nyquist plug-in support" on \
		PORTMIXER	"compile with PortMixer" on \
		SAMPLERATE	"Use libresample for sample rate conversion" on \
		SBSMS		"Use libsbsms for pitch and tempo changing" on \
		SOUNDTOUCH 	"Use libSoundTouch for pitch and tempo changing" on\
		TAGLIB		"use TagLib for metadata support" on \
		TWOLAME		"Use libtwolame for MP2 export support" on \
		UNICODE		"enable unicode support" on \
		VORBIS		"Use libvorbis for Ogg Vorbis support"	on \
		VAMP		"use libvamp for Vamp plug-in support" on

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
SSE_CFLAGS=	-mno-sse -mno-sse2
.endif

CONFIGURE_ARG+=	--destdir=/
CONFIGURE_ENV+=	LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
		CPPFLAGS="${CPPFLAGS} -I${WRKSRC}/lib-src/portaudio-v19/include -I${LOCALBASE}/include ${SSE_CFLAGS} ${PTHREAD_CFLAGS}" \
		CFLAGS="${CFLAGS} -I${WRKSRC}/lib-src/portaudio-v19/include -I${LOCALBASE}/include ${SSE_CFLAGS} ${PTHREAD_CFLAGS}" \
		WX_CONFIG=${WX_CONFIG}

.if !defined(NOPORTDOCS)
MAKE_ENV=	DOC=yes
.endif

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=	--with-debug
.endif

.if defined(WITH_FFMPEG)
CONFIGURE_ARGS+=	--with-ffmpeg
.endif

.if defined(WITH_FLAC)
CONFIGURE_ARGS+=	--with-libflac
.endif

.if defined(WITH_ID3TAG)
CONFIGURE_ARGS+=	--with-libid3tag
.endif

.if defined(WITH_LADSPA)
CONFIGURE_ARGS+=	--with-ladspa
.endif

.if defined(WITH_MAD)
CONFIGURE_ARGS+=	--with-libmad
.endif

.if defined(WITH_MIDI)
CONFIGURE_ARGS+=	--with-midi
.endif

.if defined(WITH_NYQUIST)
CONFIGURE_ARGS+=	--with-nyquist
.endif

.if defined(WITH_PORTMIXER)
CONFIGURE_ARGS+=	--with-portmixer
.endif

.if defined(WITH_SAMPLERATE)
CONFIGURE_ARGS+=	--with-libresample
.endif

.if defined(WITH_SBSMS)
CONFIGURE_ARGS+=	--with-sbsms
.endif

.if defined(WITH_SOUNDTOUCH)
CONFIGURE_ARGS+=	--with-soundtouch
.endif

.if defined(WITH_TWOLAME)
CONFIGURE_ARGS+=	--with-libtwolame
.endif

.if defined(WITH_TAGLIB)
CONFIGURE_ARGS+=	--with-taglib
.endif

.if defined(WITH_UNICODE)
WX_UNICODE=	yes
CONFIGURE_ARGS+=	--enable-unicode
.endif

.if defined(WITH_VAMP)
CONFIGURE_ARGS+=	--with-libvamp
.endif

.if defined(WITH_VORBIS)
CONFIGURE_ARGS+=	--with-libvorbis
.endif

.include <bsd.port.post.mk>