summaryrefslogtreecommitdiff
path: root/audio/ladspa/Makefile
blob: 24fc4213f07ff1abd013edcf746dedc1edb633c3 (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
# $NetBSD: Makefile,v 1.20 2022/09/11 12:51:18 wiz Exp $

DISTNAME=	ladspa_sdk_1.17
PKGNAME=	${DISTNAME:S/_sdk_/-/}
DIST_SUBDIR=	${DISTNAME}	# remove on next update
PKGREVISION=	2
CATEGORIES=	audio
MASTER_SITES=	https://www.ladspa.org/download/
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://www.ladspa.org/
COMMENT=	Linux Audio Developers Simple Plugin API
LICENSE=	gnu-lgpl-v2.1

WRKSRC=		${WRKDIR}/ladspa_sdk_${PKGVERSION_NOREV}

BUILD_DIRS=	src
USE_TOOLS+=	gmake
USE_LIBTOOL=	yes
USE_LANGUAGES=	c c++

MAKE_FILE=	Makefile
BUILD_TARGET=	targets
TEST_TARGET=	test

INSTALLATION_DIRS+=	bin include
INSTALLATION_DIRS+=	lib/ladspa
INSTALLATION_DIRS+=	share/doc/ladspa

do-install:
	${INSTALL_DATA} ${WRKSRC}/doc/* ${DESTDIR}${PREFIX}/share/doc/ladspa
	${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/plugins/*.la ${DESTDIR}${PREFIX}/lib/ladspa
	${LIBTOOL} --mode=install ${INSTALL_DATA} ${WRKSRC}/src/ladspa.h ${DESTDIR}${PREFIX}/include
	${LIBTOOL} --mode=install ${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${DESTDIR}${PREFIX}/bin

.include "../../audio/libsndfile/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
LDFLAGS+=	${BUILDLINK_LDADD.dl}
.include "../../mk/bsd.pkg.mk"