openbsd-ports/audio/libao/Makefile
espie 0031945c6e Fix a buglet in bsd.port.mk where the PSEUDO_FLAVORS get encoded into
the FULLPKGPATH, thus providing changes to packing-lists which shouldn't
happen, and making update more difficult.

Accordingly, bump all pkgnames with PSEUDO_FLAVORS, and provide an
update @pkgpath for the bug for most of them (left out the ones with 3
or 4 pseudo flavors for space constraints...)
2005-09-16 09:51:25 +00:00

71 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.26 2005/09/16 09:51:26 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}p1
PKGNAME-arts= libao-arts-${VERSION}
PKGNAME-esd= libao-esd-${VERSION}
CATEGORIES= audio
HOMEPAGE= http://www.xiph.org/ao/
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# 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?=
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= ao.3::audio/libao \
artsc.0::x11/kde/arts3
WANTLIB+= glib-2.0.0.0 gmodule-2.0.0.0 gthread-2.0.0.0 \
iconv intl
. elif ${SUBPACKAGE} == "-esd"
LIB_DEPENDS= ao.3::audio/libao \
esd.2::audio/esound
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 <bsd.port.mk>