blob: b75096c6824b80df0a402d63e92f5a196324f934 (
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
60
61
62
|
# $NetBSD: Makefile,v 1.86 2020/08/17 20:18:05 leot Exp $
DISTNAME= cmus-2.8.0
PKGREVISION= 5
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_GITHUB:=cmus/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= ahoka@NetBSD.org
HOMEPAGE= https://cmus.github.io/
COMMENT= Small, fast and powerful text mode music player
LICENSE= gnu-gpl-v2
EXTRACT_USING= bsdtar
HAS_CONFIGURE= yes
USE_TOOLS+= gmake pkg-config
REPLACE_SH+= cmus-status-display
# C11 atomics
GCC_REQD+= 4.9
CONFIGURE_ARGS+= prefix=${PREFIX}
# not in pkgsrc yet
CONFIGURE_ARGS+= CONFIG_ROAR=n
# requires systemd
CONFIGURE_ARGS+= CONFIG_MPRIS=n
CONFIGURE_ARGS+= mandir=${PREFIX}/${PKGMANDIR}
PLIST_VARS+= coreaudio sunaudio oss
.include "../../mk/oss.buildlink3.mk"
.if ${OPSYS} != "NetBSD" && ${OSS_TYPE} != "none"
PLIST.oss= yes
CONFIGURE_ARGS+= CONFIG_OSS=y
.else
CONFIGURE_ARGS+= CONFIG_OSS=n
.endif
.if ${OPSYS} == "SunOS" || exists(/usr/include/sys/audioio.h)
CONFIGURE_ARGS+= CONFIG_SUN=y
PLIST.sunaudio= yes
.else
CONFIGURE_ARGS+= CONFIG_SUN=n
.endif
.if ${OPSYS} == "Darwin"
PLIST.coreaudio= yes
.endif
.if ${MACHINE_ARCH} == "i386"
# 64 bit atomic ops are required
CFLAGS+= -march=i586
.endif
NOT_PAX_MPROTECT_SAFE+= bin/cmus
.include "options.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/ncursesw/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|