mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
76 lines
1.5 KiB
Makefile
76 lines
1.5 KiB
Makefile
# New ports collection makefile for: libao
|
|
# Date created: 18 October 2000
|
|
# Whom: t.vanklaveren@student.utwente.nl
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= libao
|
|
PORTVERSION= 1.0.0
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://downloads.xiph.org/releases/ao/
|
|
|
|
MAINTAINER= naddy@FreeBSD.org
|
|
COMMENT= Portable audio output library
|
|
|
|
USE_AUTOTOOLS= libtool
|
|
WANT_GNOME= yes
|
|
USE_GNOME= gnomehack pkgconfig
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
.if defined(NOPORTDOCS)
|
|
MAKE_ENV= DOC=""
|
|
.else
|
|
MAKE_ENV= DOC=doc
|
|
.endif
|
|
|
|
MAN5= libao.conf.5
|
|
|
|
OPTIONS= ARTS "Enable the aRts module" off \
|
|
ESOUND "Enable the EsounD module" off \
|
|
NAS "Enable the Network Audio System module" off \
|
|
PULSEAUDIO "Enable the PulseAudio module" off
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_ARTS)
|
|
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-arts
|
|
.endif
|
|
|
|
.if defined(WITH_ESOUND)
|
|
USE_GNOME+= esound
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-esd
|
|
.endif
|
|
|
|
.if defined(WITH_NAS)
|
|
LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-nas
|
|
.endif
|
|
|
|
.if defined(WITH_PULSEAUDIO)
|
|
LIB_DEPENDS+= pulse-simple.0:${PORTSDIR}/audio/pulseaudio
|
|
.else
|
|
CONFIGURE_ARGS+=--disable-pulse
|
|
.endif
|
|
|
|
.for m in ARTS ESOUND NAS PULSEAUDIO
|
|
. if defined(WITH_$m)
|
|
PLIST_SUB+= $m=""
|
|
. else
|
|
PLIST_SUB+= $m="@comment "
|
|
. endif
|
|
.endfor
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/etc/libao.conf|${PREFIX}&|' \
|
|
${WRKSRC}/libao.conf.5 ${WRKSRC}/include/ao/ao_private.h \
|
|
${WRKSRC}/doc/config.html
|
|
|
|
.include <bsd.port.post.mk>
|