2007-07-12 17:10:15 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.39 2007/07/12 21:10:15 naddy Exp $
|
2001-03-13 20:54:08 -05:00
|
|
|
|
2006-11-24 11:22:21 -05:00
|
|
|
COMMENT-main= "portable audio output library"
|
2001-07-21 20:12:55 -04:00
|
|
|
COMMENT-arts= "aRts module for portable audio output library"
|
|
|
|
COMMENT-esd= "ESounD module for portable audio output library"
|
|
|
|
|
2007-07-12 17:10:15 -04:00
|
|
|
VERSION= 0.8.8
|
2001-08-09 11:07:31 -04:00
|
|
|
DISTNAME= libao-${VERSION}
|
2007-07-06 10:21:05 -04:00
|
|
|
PKGNAME-main= libao-${VERSION}
|
|
|
|
PKGNAME-arts= libao-arts-${VERSION}
|
|
|
|
PKGNAME-esd= libao-esd-${VERSION}
|
2001-03-13 20:54:08 -05:00
|
|
|
CATEGORIES= audio
|
2003-10-08 08:12:52 -04:00
|
|
|
HOMEPAGE= http://www.xiph.org/ao/
|
2007-07-06 10:21:05 -04:00
|
|
|
SHARED_LIBS += ao 3.3 # .3.3
|
2001-03-13 20:54:08 -05:00
|
|
|
|
2001-03-20 10:25:33 -05:00
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
2001-03-13 20:54:08 -05:00
|
|
|
|
2001-08-20 17:53:56 -04:00
|
|
|
# GPL
|
2001-03-13 20:54:08 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-07-05 10:59:55 -04:00
|
|
|
MASTER_SITES= http://downloads.xiph.org/releases/ao/
|
2001-10-08 10:57:55 -04:00
|
|
|
|
2002-08-07 16:40:15 -04:00
|
|
|
PSEUDO_FLAVORS= no_arts no_esd
|
2001-07-26 08:31:32 -04:00
|
|
|
FLAVOR?= no_arts
|
2001-03-16 06:58:43 -05:00
|
|
|
|
2006-11-24 11:22:21 -05:00
|
|
|
MULTI_PACKAGES= -main
|
2001-07-26 08:31:32 -04:00
|
|
|
.if !${FLAVOR:L:Mno_arts}
|
2006-11-24 11:22:21 -05:00
|
|
|
MULTI_PACKAGES+=-arts
|
2001-07-25 14:39:29 -04:00
|
|
|
.endif
|
2001-07-26 08:31:32 -04:00
|
|
|
.if !${FLAVOR:L:Mno_esd}
|
2006-11-24 11:22:21 -05:00
|
|
|
MULTI_PACKAGES+=-esd
|
2001-03-16 06:58:43 -05:00
|
|
|
.endif
|
|
|
|
|
2005-10-18 19:24:25 -04:00
|
|
|
USE_LIBTOOL= Yes
|
2003-10-08 12:01:45 -04:00
|
|
|
SEPARATE_BUILD= simple
|
2006-11-24 11:22:21 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
2001-07-25 14:39:29 -04:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} --enable-static
|
2001-08-09 11:07:31 -04:00
|
|
|
.if ${FLAVOR:L:Mno_arts}
|
2007-07-06 10:21:05 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-arts
|
2001-08-09 11:07:31 -04:00
|
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Mno_esd}
|
2007-07-06 10:21:05 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-esd
|
2001-08-09 11:07:31 -04:00
|
|
|
.endif
|
2007-07-06 10:21:05 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-nas \
|
2007-07-12 17:10:15 -04:00
|
|
|
--disable-pulse
|
2001-07-25 14:39:29 -04:00
|
|
|
|
2006-11-24 11:22:21 -05:00
|
|
|
.if ${MULTI_PACKAGES:M-arts}
|
2007-07-12 17:10:15 -04:00
|
|
|
MODULES= devel/gettext
|
2001-03-16 06:58:43 -05:00
|
|
|
.endif
|
2001-03-13 20:54:08 -05:00
|
|
|
|
2006-11-24 11:22:21 -05:00
|
|
|
LIB_DEPENDS-main=
|
|
|
|
RUN_DEPENDS-main=
|
|
|
|
WANTLIB-main= pthread
|
|
|
|
|
|
|
|
LIB_DEPENDS-arts= ${MODGETTEXT_LIB_DEPENDS} \
|
|
|
|
artsc::x11/kde/arts3
|
|
|
|
RUN_DEPENDS-arts= ${MODGETTEXT_RUN_DEPENDS} \
|
|
|
|
:libao-${VERSION}:audio/libao
|
|
|
|
WANTLIB-arts= glib-2.0 gmodule-2.0 gthread-2.0 pthread
|
|
|
|
|
|
|
|
LIB_DEPENDS-esd= esd.>=2::audio/esound
|
|
|
|
RUN_DEPENDS-esd= :libao-${VERSION}:audio/libao
|
|
|
|
WANTLIB-esd= audiofile m pthread
|
|
|
|
|
2007-03-15 15:12:35 -04:00
|
|
|
pre-build:
|
|
|
|
@perl -i -pe 's:/etc/libao.conf:${SYSCONFDIR}/libao.conf:g' \
|
|
|
|
${WRKDIST}/src/ao_private.h \
|
|
|
|
${WRKDIST}/libao.conf.5 \
|
|
|
|
${WRKDIST}/doc/config.html
|
|
|
|
|
2001-03-13 20:54:08 -05:00
|
|
|
.include <bsd.port.mk>
|