summaryrefslogtreecommitdiff
path: root/audio/audacity/Makefile
blob: a2737457691118521a5ef323285de657b104184c (plain)
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
# $NetBSD: Makefile,v 1.20 2004/01/10 14:25:42 recht Exp $

DISTNAME=	audacity-src-1.0.0-2
PKGNAME=	audacity-1.0.0.2
PKGREVISION=	8
WRKSRC=		${WRKDIR}/audacity-src-1.0.0
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=audacity/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	tech-pkg@NetBSD.org
HOMEPAGE=	http://audacity.sourceforge.net/
COMMENT=	Audio editor

BUILD_DEPENDS+=	zip-[0-9]*:../../archivers/zip

USE_BUILDLINK2=		# defined
USE_X11=		# defined
USE_GMAKE=		# defined

GNU_CONFIGURE=		# defined
CONFIGURE_ARGS+=	--without-xaudio
CONFIGURE_ARGS+=	--with-id3
CONFIGURE_ARGS+=	--with-libmad
CONFIGURE_ARGS+=	--with-vorbis
CONFIGURE_ARGS+=	--with-dev-dsp="${DEVOSSSOUND}"
CONFIGURE_ARGS+=	--with-helpdir="${PREFIX}/share"
HAVE_OSS=		NO

USE_LIBTOOL=		# defined
LTCONFIG_OVERRIDE=	${WRKSRC}/id3lib/ltconfig

pre-configure:
	cd ${WRKSRC}/id3lib/include/id3; ${MV} -f strings.h id3_strings.h
	cd ${WRKSRC}/id3lib; for file in				\
		`${FIND} . -type f -print |				\
			${XARGS} ${GREP} -l "\"strings\.h\""`; do	\
		${SED}	-e "s|\"strings\.h\"|\"id3_strings.h\"|g"	\
			$${file} > $${file}.fixed;			\
		${MV} -f $${file}.fixed $${file};			\
	done
	cd ${WRKSRC} && ${AUTOCONF}

.include "../../audio/id3lib/buildlink2.mk"
.include "../../audio/lame/buildlink2.mk"
.include "../../audio/libvorbis/buildlink2.mk"
.include "../../audio/libmad/buildlink2.mk"
.include "../../devel/zlib/buildlink2.mk"
.include "../../x11/wxGTK/buildlink2.mk"
.include "../../mk/ossaudio.buildlink2.mk"

.include "../../mk/autoconf.mk"
.include "../../mk/bsd.pkg.mk"

# XXX Internal compiler error with -O2
.if ${MACHINE_ARCH} == "alpha"
CFLAGS+=	-O
.endif