blob: b8ca3a0e535dd0cd4f6bc64b3aa31c8203e375d5 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# $NetBSD: Makefile,v 1.6 2008/05/04 01:02:07 bjs Exp $
#
DISTNAME= jack-audio-connection-kit-${JACK_VERSION}
PKGNAME= jack-${JACK_VERSION}
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_LOCAL}
EXTRACT_SUFX= .tar.bz2
JACK_VERSION= 0.111.5
MAINTAINER= bjs@NetBSD.org
HOMEPAGE= http://www.jackaudio.org/
COMMENT= JACK audio connection kit
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_TOOLS+= pkg-config
USE_LIBTOOL= yes
PKGCONFIG_OVERRIDE+= jack.pc.in
PTHREAD_OPTS+= require native
CONFIGURE_ARGS+= --disable-alsa
CONFIGURE_ARGS+= --disable-freebob
CONFIGURE_ARGS+= --disable-coreaudio
CONFIGURE_ARGS+= --disable-firewire
CONFIGURE_ARGS+= --disable-optimize
CONFIGURE_ARGS+= --enable-resize
CONFIGURE_ARGS+= --enable-timestamps
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
CONFIGURE_ENV+= ac_cv_header_readline_chardefs_h=yes
JACKD_DEFAULT_TMPDIR?= /tmp
JACKD_PROCFS_PATH?= /proc
.include "../../mk/bsd.prefs.mk"
.if "${OPSYS:M*BSD}" != "" || ${OPSYS} == "Darwin"
CFLAGS+= -DJACK_HOST_HAS_BSD_POLL
.endif
.if exists(/dev/shm) && ${OPSYS} == "Linux"
CONFIGURE_ARGS+= --with-default-tmpdir=/dev/shm
.else
CONFIGURE_ARGS+= --with-default-tmpdir=${JACKD_DEFAULT_TMPDIR:Q}
.endif
PLIST_VARS= oss sunaudio
###
### XXX The sun driver is buggy on NetBSD right now. I hope to remedy
### this shortly.
###
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "Solaris"
CONFIGURE_ARGS+= --enable-sun
PLIST.sunaudio= yes
.else
CONFIGURE_ARGS+= --disable-sun
.endif
.include "../../mk/oss.buildlink3.mk"
.if ${OSS_TYPE} != "none"
CONFIGURE_ARGS+= --enable-oss
PLIST.oss= yes
MAKE_ENV+= LIBOSSAUDIO=${LIBOSSAUDIO:Q}
CFLAGS+= -DDEVOSSAUDIO=\"${DEVOSSAUDIO:U/dev/dsp}\"
.else
CONFIGURE_ARGS+= --disable-oss
.endif
SUBST_CLASSES+= jacksrc
SUBST_FILES.jacksrc= libjack/unlock.c
SUBST_MESSAGE.jacksrc= Peforming substitutions in JACK sources.
SUBST_STAGE.jacksrc= pre-build
SUBST_VARS.jacksrc= PREFIX JACKD_PROCFS_PATH
post-extract:
${RUN} \
${MKDIR} ${WRKSRC}/config/os/netbsd && \
${CP} ${FILESDIR}/atomicity.h \
${WRKSRC}/config/os/netbsd
.include "../../audio/libsamplerate/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|