summaryrefslogtreecommitdiff
path: root/audio/amsynth/Makefile
blob: e7183aeba832e7dc70cdcc517d350da23cc202c6 (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
59
# $NetBSD: Makefile,v 1.11 2021/11/13 10:48:03 nia Exp $

DISTNAME=	amsynth-1.12.2
PKGREVISION=	3
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_GITHUB:=amsynth/}
GITHUB_PROJECT=	amsynth
GITHUB_RELEASE=	release-${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://amsynth.github.io/
COMMENT=	Software synth with a subtractive synthesizer topology
LICENSE=	gnu-gpl-v2

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
USE_LANGUAGES=	c c++

TOOL_DEPENDS+=	p5-XML-Parser-[0-9]*:../../textproc/p5-XML-Parser

USE_TOOLS+=	perl pkg-config gmake
USE_TOOLS+=	intltool msgfmt msgmerge xgettext

# XXX: this should be an option.
CONFIGURE_ARGS+=	--without-pandoc

.include "../../mk/oss.buildlink3.mk"

.if ${OSS_TYPE} != "none"
LIBS+=			${LIBOSSAUDIO}
CONFIGURE_ARGS=		--with-oss
SUBST_CLASSES+=		oss
SUBST_STAGE.oss=	pre-configure
SUBST_MESSAGE.oss=	Correcting the path to the OSS device.
SUBST_FILES.oss+=	data/rc
SUBST_FILES.oss+=	src/Configuration.cpp
SUBST_SED.oss+=		-e "s,/dev/dsp,${DEVOSSAUDIO},g"
SUBST_SED.oss+=		-e "s,/dev/midi,${DEVOSSMIDI},g"
.else
CONFIGURE_ARGS+=	--without-oss
.endif

.if ${OPSYS} == "NetBSD"
SUBST_CLASSES+=		sr
SUBST_STAGE.sr=		pre-configure
SUBST_MESSAGE.sr=	Setting a better default sample rate.
SUBST_FILES.sr+=	data/rc
SUBST_FILES.sr+=	src/Configuration.cpp
SUBST_SED.sr+=		-e "s,44100,48000,g"
.endif

.include "options.mk"
.include "../../audio/dssi/buildlink3.mk"
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../audio/lv2/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"