Makefile 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. # $OpenBSD: Makefile,v 1.83 2017/05/31 08:08:15 espie Exp $
  2. # XXX
  3. # sndio: what to do with (channel) map
  4. # sndio: check sample format
  5. # sndio: support for recording
  6. COMMENT= cross-platform networked sound server
  7. VERSION= 10.0
  8. DISTNAME= pulseaudio-${VERSION}
  9. EXTRACT_SUFX= .tar.xz
  10. REVISION= 0
  11. SHARED_LIBS += pulse 6.1 # .20.1
  12. SHARED_LIBS += pulse-simple 1.0 # .1.0
  13. SHARED_LIBS += pulse-mainloop-glib 1.0 # .0.5
  14. CATEGORIES= audio
  15. SUBST_VARS+= VERSION
  16. MAINTAINER= Robert Nagy <robert@openbsd.org>
  17. HOMEPAGE= http://www.pulseaudio.org/
  18. # LGPLv2.1
  19. PERMIT_PACKAGE_CDROM= Yes
  20. WANTLIB += FLAC ICE SM X11 X11-xcb Xext Xi Xtst c crypto dbus-1
  21. WANTLIB += execinfo gdbm glib-2.0 iconv intl ltdl m ogg pcre pthread
  22. WANTLIB += sndfile sndio speexdsp ssl vorbis vorbisenc xcb $(LIBECXX)
  23. MASTER_SITES= http://freedesktop.org/software/pulseaudio/releases/
  24. MODULES= textproc/intltool
  25. # C++11
  26. COMPILER = gcc
  27. USE_GMAKE= Yes
  28. # XXX undefined reference to `lt__PROGRAM__LTX_preloaded_symbols';
  29. # XXX remove -rpath from LDFLAGS when switching back to our libtool(1)
  30. # and remove the following patches:
  31. # patch-libpulse-mainloop-glib_pc_in patch-libpulse-simple_pc_in patch-libpulse_pc_in
  32. USE_LIBTOOL= gnu
  33. # needed for tests
  34. BUILD_DEPENDS += devel/check
  35. TEST_FLAGS= HOME=${WRKDIST}
  36. LIB_DEPENDS= audio/libsndfile \
  37. audio/speex \
  38. databases/gdbm \
  39. devel/glib2 \
  40. devel/libexecinfo \
  41. devel/libtool,-ltdl \
  42. x11/dbus
  43. # module-console-kit.so
  44. RUN_DEPENDS += sysutils/consolekit
  45. CONFIGURE_STYLE= gnu
  46. # We only enable the strict minimum for basic volume control support.
  47. # sndiod(1) is the default sound server on OpenBSD and pulseaudio is only
  48. # needed for a couple of use cases (volume control, media-keys)
  49. CONFIGURE_ARGS= --disable-atomic-arm-linux-helpers \
  50. --disable-default-build-tests \
  51. --with-system-user=_pulse \
  52. --with-system-group=_pulse \
  53. --with-access-group=_pulse-access \
  54. --with-database=gdbm \
  55. --with-bash-completion-dir=${PREFIX}/share/bash-completion/completions \
  56. --without-soxr \
  57. --without-fftw \
  58. --disable-oss-output \
  59. --disable-oss-wrapper \
  60. --disable-adrian-aec \
  61. --disable-alsa \
  62. --disable-asyncns \
  63. --disable-bluez4 \
  64. --disable-bluez5 \
  65. --disable-esound \
  66. --disable-gtk3 \
  67. --disable-jack \
  68. --disable-hal-compat \
  69. --disable-systemd \
  70. --disable-systemd-journal \
  71. --disable-udev \
  72. --disable-lirc \
  73. --disable-solaris \
  74. --disable-tcpwrap \
  75. --disable-coreaudio-output \
  76. --disable-waveout \
  77. --disable-gconf \
  78. --disable-avahi \
  79. --disable-orc
  80. CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
  81. LDFLAGS="-L${LOCALBASE}/lib \
  82. -Wl,-rpath,${TRUEPREFIX}/lib/pulseaudio:${TRUEPREFIX}/lib/pulse-${VERSION}/modules" \
  83. ac_cv_prog_M4=m4
  84. FAKE_FLAGS= pulseconfdir="${PREFIX}/share/examples/pulseaudio/pulse" \
  85. sysconfdir="${PREFIX}/share/examples/pulseaudio"
  86. ### SNDIO ###
  87. AUTOCONF_VERSION= 2.69
  88. AUTOMAKE_VERSION= 1.15
  89. BUILD_DEPENDS += ${MODGNU_AUTOMAKE_DEPENDS} \
  90. ${MODGNU_AUTOCONF_DEPENDS}
  91. BUILD_DEPENDS += devel/libtool # needs libtoolize
  92. post-extract:
  93. cp ${FILESDIR}/module-sndio*.{c,h} ${WRKSRC}/src/modules/
  94. pre-configure:
  95. cd ${WRKSRC} && \
  96. AUTOCONF_VERSION=${AUTOCONF_VERSION} \
  97. AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
  98. autoreconf -i --force && \
  99. AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
  100. AUTOCONF_VERSION=${AUTOCONF_VERSION} \
  101. aclocal && \
  102. intltoolize --force
  103. ### END SNDIO ###
  104. ${SUBST_CMD} ${WRKSRC}/src/daemon/default.pa.in
  105. sed -i 's,/bin/bash,/usr/bin/env bash,' \
  106. ${WRKSRC}/shell-completion/bash/pulseaudio
  107. post-install:
  108. rm ${PREFIX}/lib/pulse-${VERSION}/modules/*.a
  109. # we don't install padsp
  110. cd ${PREFIX} && rm man/man1/padsp.1
  111. .include <bsd.port.mk>