blob: f26ca44c8371c57bb339fa8213b93612b2239a49 (
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
|
# $NetBSD: Makefile,v 1.27 2020/08/18 17:57:37 leot Exp $
DISTNAME= libgroove-4.3.0
PKGREVISION= 8
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_GITHUB:=andrewrk/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/andrewrk/libgroove/
COMMENT= Audio dispatching library
LICENSE= mit
USE_CMAKE= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Darwin"
SOEXT= dylib
.else
SOEXT= so
.endif
.for lib in AVCODEC AVFILTER AVFORMAT AVUTIL
CMAKE_ARGS+= -D${lib}_INCLUDE_DIRS=${BUILDLINK_PREFIX.ffmpeg4}/include/ffmpeg4
CMAKE_ARGS+= -D${lib}_LIBRARIES=${BUILDLINK_PREFIX.ffmpeg4}/lib/ffmpeg4/lib${lib:tl}.${SOEXT}
.endfor
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
TOOL_DEPENDS+= yasm-[0-9]*:../../devel/yasm
.endif
BUILDLINK_TRANSFORM+= rm:-Werror
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
.include "../../audio/chromaprint/buildlink3.mk"
.include "../../audio/lame/buildlink3.mk"
.include "../../audio/libebur128/buildlink3.mk"
.include "../../audio/speexdsp/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../multimedia/ffmpeg4/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|