mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
c3f5beab16
the PORTREVISION. PR: ports/128688 Reported by: amdmi3
107 lines
2.7 KiB
Makefile
107 lines
2.7 KiB
Makefile
# New ports collection makefile for: polypaudio
|
|
# Date created: 29 October 2004
|
|
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
# $MCom: ports/audio/pulseaudio/Makefile,v 1.10 2008/03/20 16:07:21 mezz Exp $
|
|
#
|
|
|
|
PORTNAME= pulseaudio
|
|
PORTVERSION= 0.9.13
|
|
PORTREVISION= 1
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://0pointer.de/lennart/projects/${PORTNAME}/
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= Sound server for UNIX
|
|
|
|
LIB_DEPENDS= samplerate.1:${PORTSDIR}/audio/libsamplerate \
|
|
oil-0.3.0:${PORTSDIR}/devel/liboil \
|
|
speexdsp.1:${PORTSDIR}/audio/speex \
|
|
dbus-1.3:${PORTSDIR}/devel/dbus \
|
|
gdbm.3:${PORTSDIR}/databases/gdbm
|
|
|
|
USE_GNOME= gnometarget gnomehack glib20 ltverhack
|
|
USE_XORG= x11 sm
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_AUTOTOOLS= libltdl:15 libtool:15
|
|
USE_GMAKE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
|
LIBS="-lm -lintl"
|
|
|
|
CONFIGURE_ARGS= --localstatedir=/var \
|
|
--disable-lirc # untested
|
|
|
|
OPTIONS= JACK "JACK audio support" Off \
|
|
AVAHI "Enable Avahi mDNS support" On \
|
|
HAL "Enable HAL support" On \
|
|
GCONF "Enable GConf support" On
|
|
|
|
PULSE_VERSION= ${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
|
|
PLIST_SUB= PULSE_VERSION=${PULSE_VERSION}
|
|
|
|
MAN1= esdcompat.1 pabrowse.1 pacat.1 pacmd.1 pactl.1 padsp.1 \
|
|
paplay.1 pasuspender.1 pax11publish.1 pulseaudio.1
|
|
MAN5= default.pa.5 pulse-client.conf.5 pulse-daemon.conf.5
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_JACK)
|
|
LIB_DEPENDS+= jack.0:${PORTSDIR}/audio/jack
|
|
PLIST_SUB+= JACK=""
|
|
.else
|
|
PLIST_SUB+= JACK="@comment "
|
|
CONFIGURE_ARGS+=--disable-jack
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_AVAHI)
|
|
LIB_DEPENDS+= avahi-core.5:${PORTSDIR}/net/avahi-app
|
|
PLIST_SUB+= AVAHI=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-avahi
|
|
PLIST_SUB+= AVAHI="@comment "
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_HAL)
|
|
LIB_DEPENDS+= hal.1:${PORTSDIR}/sysutils/hal
|
|
PLIST_SUB+= HAL=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-hal \
|
|
--disable-polkit
|
|
PLIST_SUB+= HAL="@comment "
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_GCONF)
|
|
USE_GNOME+= gconf2
|
|
PLIST_SUB+= GCONF=""
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-gconf
|
|
PLIST_SUB+= GCONF="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
${WRKSRC}/src/daemon/default.pa.in
|
|
.if ${OSVERSION} < 700042
|
|
@${REINPLACE_CMD} -e 's|-Wl,-no-undefined||' \
|
|
${WRKSRC}/src/Makefile.in
|
|
.endif
|
|
@${REINPLACE_CMD} -e 's|-Wmissing-include-dirs||g' \
|
|
${WRKSRC}/configure
|
|
|
|
post-install:
|
|
.for ii in default.pa daemon.conf client.conf system.pa
|
|
${INSTALL_DATA} ${WRKSRC}/src/${ii} \
|
|
${PREFIX}/etc/pulse/${ii}-dist
|
|
.endfor
|
|
.if !defined(PACKAGE_BUILDING)
|
|
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
.endif
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.post.mk>
|