2001-03-20 10:25:33 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2001/03/20 15:25:33 naddy Exp $
|
2001-03-13 20:54:08 -05:00
|
|
|
|
|
|
|
DISTNAME= libao-0.6.0
|
|
|
|
CATEGORIES= audio
|
|
|
|
NEED_VERSION= 1.359
|
|
|
|
HOMEPAGE= http://www.vorbis.com
|
|
|
|
|
2001-03-20 10:25:33 -05:00
|
|
|
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
|
2001-03-13 20:54:08 -05:00
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
MASTER_SITES= ${HOMEPAGE}/files/beta4/unix/
|
|
|
|
|
2001-03-16 06:58:43 -05:00
|
|
|
# no shared libraries?
|
|
|
|
.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "hppa") || \
|
|
|
|
(${MACHINE_ARCH} == "vax")
|
2001-03-13 20:54:08 -05:00
|
|
|
|
2001-03-16 06:58:43 -05:00
|
|
|
PLUGINS=
|
2001-03-13 20:54:08 -05:00
|
|
|
|
2001-03-16 06:58:43 -05:00
|
|
|
.else
|
|
|
|
|
2001-03-17 18:45:46 -05:00
|
|
|
FLAVORS= arts esd sun
|
|
|
|
FLAVOR?= sun
|
2001-03-16 06:58:43 -05:00
|
|
|
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
|
|
|
|
|
2001-03-17 18:45:46 -05:00
|
|
|
.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
|
|
|
|
|
2001-03-16 06:58:43 -05:00
|
|
|
.endif
|
2001-03-13 20:54:08 -05:00
|
|
|
|
|
|
|
BUILD_DEPENDS= automake::devel/automake
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= autoconf
|
2001-03-16 06:58:43 -05:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} --enable-static
|
|
|
|
MAKE_FLAGS= PLUGINS='${PLUGINS}'
|
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR=${WRKINST}
|
2001-03-13 20:54:08 -05:00
|
|
|
|
|
|
|
post-patch:
|
2001-03-16 06:58:43 -05:00
|
|
|
@cd ${WRKSRC} && automake -i
|
2001-03-13 20:54:08 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|