# $OpenBSD: Makefile,v 1.32 2006/02/22 11:05:02 espie Exp $ COMMENT= "portable audio output library" COMMENT-arts= "aRts module for portable audio output library" COMMENT-esd= "ESounD module for portable audio output library" VERSION= 0.8.5 DISTNAME= libao-${VERSION} FULLPKGNAME= libao-${VERSION}p2 PKGNAME-arts= libao-arts-${VERSION}p2 PKGNAME-esd= libao-esd-${VERSION}p3 CATEGORIES= audio HOMEPAGE= http://www.xiph.org/ao/ SHARED_LIBS= ao 3.2 MAINTAINER= Christian Weisgerber # GPL PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes WANTLIB= pthread MASTER_SITES= ${HOMEPAGE}src/ PSEUDO_FLAVORS= no_arts no_esd FLAVOR?= no_arts MULTI_PACKAGES= .if !${FLAVOR:L:Mno_arts} MULTI_PACKAGES+= -arts .endif .if !${FLAVOR:L:Mno_esd} MULTI_PACKAGES+= -esd .endif SUBPACKAGE?= USE_LIBTOOL= Yes SEPARATE_BUILD= simple CONFIGURE_STYLE= gnu CONFIGURE_ARGS= ${CONFIGURE_SHARED} --enable-static .if ${FLAVOR:L:Mno_arts} CONFIGURE_ARGS+= --disable-arts .endif .if ${FLAVOR:L:Mno_esd} CONFIGURE_ARGS+= --disable-esd .endif CONFIGURE_ARGS+= --disable-nas .if defined(PACKAGING) . if ${SUBPACKAGE} == "-arts" LIB_DEPENDS= artsc.0::x11/kde/arts3 RUN_DEPENDS= :libao-${VERSION}:audio/libao WANTLIB+= glib-2.0.0.0 gmodule-2.0.0.0 gthread-2.0.0.0 MODULES= devel/gettext . elif ${SUBPACKAGE} == "-esd" LIB_DEPENDS= esd.2::audio/esound RUN_DEPENDS= :libao-${VERSION}:audio/libao WANTLIB+= audiofile m . endif .else . if ${MULTI_PACKAGES:M-arts} LIB_DEPENDS+= artsc.0::x11/kde/arts3 . endif . if ${MULTI_PACKAGES:M-esd} LIB_DEPENDS+= esd.2::audio/esound . endif .endif .include