summaryrefslogtreecommitdiff
path: root/audio/snd/Makefile
blob: cfd8e3074efd19cc7d055fe76aeaa387e620de72 (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
# $NetBSD: Makefile,v 1.105 2021/01/01 09:52:18 ryoon Exp $

DISTNAME=		snd-20.4
PKGREVISION=		3
CATEGORIES=		audio
MASTER_SITES=		https://ccrma.stanford.edu/software/snd/

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		https://ccrma.stanford.edu/software/snd/
COMMENT=		Sound editor modelled loosely after Emacs
LICENSE=		esdl-license

DEPENDS+=		flac-[0-9]*:../../audio/flac
DEPENDS+=		mpg123-[0-9]*:../../audio/mpg123
DEPENDS+=		speex-[0-9]*:../../audio/speex
DEPENDS+=		vorbis-tools-[0-9]*:../../audio/vorbis-tools

USE_PKGLOCALEDIR=	yes
GNU_CONFIGURE=		yes
USE_TOOLS+=		gmake msgfmt pkg-config

BUILD_TARGET=		snd
MAKE_FILE=		makefile

.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.prefs.mk"

# On NetBSD we use sunaudio, and on Linux we use ALSA.
.if ${OSS_TYPE} != "none" && \
    ${OPSYS} != "NetBSD" && ${OPSYS} != "Linux"
CONFIGURE_ARGS+=	--with-oss
LDFLAGS+=		${LIBOSSAUDIO}
.else
CONFIGURE_ARGS+=	--without-oss
.endif

.include "options.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../math/fftw/buildlink3.mk"
.include "../../math/gsl/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"