summaryrefslogtreecommitdiff
path: root/audio/audacity-devel/Makefile
blob: 582296a84c06507df1a05398d2dc2081a737ac1c (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
# New ports collection makefile for:	audacity-devel
# Date created:				2 Dec 2003
# Whom:					Craig Boston <craig@yekse.gank.org>
#
# $FreeBSD$

PORTNAME=	audacity
PORTVERSION=	1.2.0.p3
PORTREVISION=	2
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=	${PORTNAME}-src-1.2.0-pre3

MAINTAINER=	craig@yekse.gank.org
COMMENT=	Audacity is a GUI editor for digital audio waveforms

BUILD_DEPENDS+=	zip:${PORTSDIR}/archivers/zip
LIB_DEPENDS=	wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2

CONFLICTS=	audacity-1.0*

LATEST_LINK=	audacity-devel
WRKSRC=		${WRKDIR}/${PORTNAME}-src-1.2.0-pre3
USE_BZIP2=	yes
USE_GMAKE=	yes
USE_X_PREFIX=	yes
USE_LIBTOOL=	yes
CONFIGURE_ENV+=	LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
		CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
		CFLAGS="${CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
		WX_CONFIG=${X11BASE}/bin/wxgtk2-2.4-config
CONFIGURE_ARGS+=	--with-id3=no

.include <bsd.port.pre.mk>

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

.if !defined(WITHOUT_MAD)
CONFIGURE_ARGS+=	--with-libmad=system
LIB_DEPENDS+=	mad.2:${PORTSDIR}/audio/libmad
.else
CONFIGURE_ARGS+=	--without-libmad
.endif

.if !defined(WITHOUT_VORBIS)
CONFIGURE_ARGS+=	--with-vorbis=system
LIB_DEPENDS+=	vorbis.3:${PORTSDIR}/audio/libvorbis
.else
CONFIGURE_ARGS+=	--without-vorbis
.endif

pre-everything::
.if !defined(WITHOUT_MAD)
	@${ECHO_MSG} "You can disable support for libmad (MP3) by defining WITHOUT_MAD."
.endif
.if !defined(WITHOUT_VORBIS)
	@${ECHO_MSG} "You can disable support for vorbis by defining WITHOUT_VORBIS."
.endif

MAN1=		audacity.1
MANCOMPRESSED=	yes

.include <bsd.port.post.mk>