blob: b7e81b3d19ac1ae130b53ac1428b8a4a1dadc78a (
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
|
# $NetBSD: Makefile,v 1.3 2008/12/20 11:00:43 ahoka Exp $
#
DISTNAME= pulseaudio-0.9.13
PKGREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://0pointer.de/lennart/projects/pulseaudio/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.pulseaudio.org/
COMMENT= Sound server for POSIX and Win32 systems
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config gmake msgfmt intltool perl
USE_DIRS+= xdg-1.4
PKGCONFIG_OVERRIDE+= libpulse-browse.pc.in
PKGCONFIG_OVERRIDE+= libpulse-mainloop-glib.pc.in
PKGCONFIG_OVERRIDE+= libpulse-simple.pc.in
PKGCONFIG_OVERRIDE+= libpulse.pc.in
PULSE_USER?= pulse
PULSE_GROUP?= pulse
PULSE_GROUP_REALTIME?= pulsert
PULSE_GROUP_ACCESS?= pulseacc
BUILD_DEFS+= VARBASE
PKG_SYSCONFSUBDIR= pulse
EGDIR= ${PREFIX}/share/examples/pulseaudio
CONF_FILES= ${EGDIR}/client.conf ${PKG_SYSCONFDIR}/client.conf
CONF_FILES+= ${EGDIR}/daemon.conf ${PKG_SYSCONFDIR}/daemon.conf
CONF_FILES+= ${EGDIR}/default.pa ${PKG_SYSCONFDIR}/default.pa
CONF_FILES+= ${EGDIR}/system.pa ${PKG_SYSCONFDIR}/system.pa
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
CONFIGURE_ARGS+= --with-system-user=${PULSE_USER}
CONFIGURE_ARGS+= --with-system-group=${PULSE_GROUP}
CONFIGURE_ARGS+= --with-realtime-group=${PULSE_GROUP_REALTIME}
CONFIGURE_ARGS+= --with-access-group=${PULSE_GROUP_ACCESS}
MAKE_ENV+= EGDIR=${EGDIR}
SUBST_CLASSES+= padsp
SUBST_MESSAGE.padsp= Fixing LD_PRELOAD paths
SUBST_STAGE.padsp= post-build
SUBST_FILES.padsp= src/utils/padsp
SUBST_SED.padsp= -e 's@libpulsedsp\.so@${PREFIX}/lib/&@'
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
# broken test for TLS
CONFIGURE_ENV+= cc_cv_tls___thread=no
.endif
PKG_GROUPS= ${PULSE_GROUP}
PKG_GROUPS+= ${PULSE_GROUP_REALTIME}
PKG_GROUPS+= ${PULSE_GROUP_ACCESS}
PKG_USERS= ${PULSE_USER}:${PULSE_GROUP}
BUILDLINK_TRANSFORM+= rm:-Wl,--gc-sections
# Needs libatomic_ops if the compiler is not >=GCC4.1
.include "../../mk/compiler.mk"
.if empty(CC_VERSION:Mgcc-4.[1-9]*) && empty(CC_VERSION:Mgcc-[5-9]*)
. include "../../devel/libatomic_ops/buildlink3.mk"
.endif
.include "../../audio/libsamplerate/buildlink3.mk"
.include "../../audio/libsndfile/buildlink3.mk"
.include "../../audio/speex/buildlink3.mk"
.include "../../databases/gdbm/buildlink3.mk"
.include "../../devel/GConf/schemas.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../devel/liboil/buildlink3.mk"
.include "../../security/policykit/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/hal/buildlink3.mk"
.include "../../x11/libICE/buildlink3.mk"
.include "../../x11/libSM/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../mk/oss.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|