2000-11-02 22:09:57 +01:00
|
|
|
# New ports collection makefile for: libao
|
|
|
|
# Date created: 18 October 2000
|
|
|
|
# Whom: t.vanklaveren@student.utwente.nl
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= libao
|
2007-07-14 22:06:15 +02:00
|
|
|
PORTVERSION= 0.8.8
|
2007-10-25 01:37:25 +02:00
|
|
|
PORTREVISION= 1
|
2000-11-02 22:09:57 +01:00
|
|
|
CATEGORIES= audio
|
2007-07-05 16:59:14 +02:00
|
|
|
MASTER_SITES= http://downloads.xiph.org/releases/ao/
|
2000-11-02 22:09:57 +01:00
|
|
|
|
2001-11-03 23:22:34 +01:00
|
|
|
MAINTAINER= naddy@FreeBSD.org
|
2003-02-21 13:52:52 +01:00
|
|
|
COMMENT= Portable audio output library
|
2000-11-02 22:09:57 +01:00
|
|
|
|
2007-01-28 10:07:47 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2003-10-09 19:42:30 +02:00
|
|
|
WANT_GNOME= yes
|
|
|
|
USE_GNOME= gnomehack pkgconfig
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= yes
|
2000-11-02 22:09:57 +01:00
|
|
|
|
2001-07-19 08:29:35 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
MAKE_ENV= DOC=""
|
|
|
|
.else
|
|
|
|
MAKE_ENV= DOC=doc
|
|
|
|
.endif
|
|
|
|
|
2001-08-27 03:26:34 +02:00
|
|
|
MAN5= libao.conf.5
|
|
|
|
|
2007-07-14 22:06:15 +02:00
|
|
|
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>
|
|
|
|
|
2003-10-08 18:17:10 +02:00
|
|
|
.if defined(WITH_ARTS)
|
2006-08-07 19:20:16 +02:00
|
|
|
LIB_DEPENDS+= artsc.0:${PORTSDIR}/audio/arts
|
2003-10-08 18:17:10 +02:00
|
|
|
.else
|
2007-07-14 22:06:15 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-arts
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ESOUND)
|
|
|
|
USE_GNOME+= esound
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-esd
|
2003-10-08 18:17:10 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_NAS)
|
2006-08-07 19:20:16 +02:00
|
|
|
LIB_DEPENDS+= audio.2:${PORTSDIR}/audio/nas
|
2003-10-08 18:17:10 +02:00
|
|
|
.else
|
2007-07-14 22:06:15 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-nas
|
2003-10-08 18:17:10 +02:00
|
|
|
.endif
|
|
|
|
|
2007-07-14 22:06:15 +02:00
|
|
|
.if defined(WITH_PULSEAUDIO)
|
|
|
|
LIB_DEPENDS+= pulse-simple.0:${PORTSDIR}/audio/pulseaudio
|
2001-03-02 23:07:37 +01:00
|
|
|
.else
|
2007-07-14 22:06:15 +02:00
|
|
|
CONFIGURE_ARGS+=--disable-pulse
|
2001-03-02 23:07:37 +01:00
|
|
|
.endif
|
|
|
|
|
2007-07-14 22:06:15 +02:00
|
|
|
.for m in ARTS ESOUND NAS PULSEAUDIO
|
|
|
|
. if defined(WITH_$m)
|
|
|
|
PLIST_SUB+= $m=""
|
|
|
|
. else
|
|
|
|
PLIST_SUB+= $m="@comment "
|
|
|
|
. endif
|
|
|
|
.endfor
|
|
|
|
|
2007-03-09 19:14:06 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|/etc/libao.conf|${PREFIX}&|' \
|
|
|
|
${WRKSRC}/libao.conf.5 ${WRKSRC}/src/ao_private.h \
|
|
|
|
${WRKSRC}/doc/config.html
|
|
|
|
|
2001-03-02 23:07:37 +01:00
|
|
|
.include <bsd.port.post.mk>
|