openbsd-ports/audio/libao/Makefile
naddy 4fdc6a77b8 Work around hidden libtool dependency.
Problem reported by Charlie Brown <charlie@c237627-f.moline1.il.home.com>.
2001-03-28 12:11:18 +00:00

60 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.6 2001/03/28 12:11:18 naddy Exp $
COMMENT= "portable audio output library"
DISTNAME= libao-0.6.0
CATEGORIES= audio
NEED_VERSION= 1.363
HOMEPAGE= http://www.vorbis.com
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}/files/beta4/unix/
# no shared libraries?
.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "hppa") || \
(${MACHINE_ARCH} == "vax")
PLUGINS=
.else
FLAVORS= arts esd sun
FLAVOR?= sun
PLUGINS= ${FLAVOR}
.if ${FLAVOR:L:Marts}
LIB_DEPENDS+= artsc.0::x11/kde/libs2
.endif
.if ${FLAVOR:L:Mesd}
LIB_DEPENDS+= esd.2::audio/esound
.endif
.if ${FLAVOR:L:Msun}
post-extract:
@mkdir ${WRKSRC}/src/plugins/sun
@cp ${FILESDIR}/sun_Makefile.am ${WRKSRC}/src/plugins/sun/Makefile.am
@cp ${FILESDIR}/ao_sun.c ${WRKSRC}/src/plugins/sun/ao_sun.c
.endif
.endif
BUILD_DEPENDS= automake::devel/automake
CONFIGURE_STYLE= autoconf
CONFIGURE_ARGS= ${CONFIGURE_SHARED} --enable-static
MAKE_FLAGS= PLUGINS='${PLUGINS}'
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR=${WRKINST}
post-patch:
@cd ${WRKSRC} && \
touch aclocal.m4 configure.in && \
automake -i
.include <bsd.port.mk>