COMMENT =	The Advanced Linux Sound Architecture (ALSA) - library

DISTNAME =	alsa-lib-1.2.11

SHARED_LIBS =	asound			0.0 # 2.0
SHARED_LIBS +=	atopology		0.0 # 2.0

CATEGORIES =	audio

HOMEPAGE =	https://www.alsa-project.org/

#LGPLv2.1
PERMIT_PACKAGE =	Yes

WANTLIB =		c m pthread

SITES =			https://www.alsa-project.org/files/pub/lib/
EXTRACT_SUFX =		.tar.bz2

USE_GMAKE =		Yes
USE_LIBTOOL=		gnu
CONFIGURE_STYLE =	autoreconf
CONFIGURE_ARGS =	--libdir=${PREFIX}/lib/alsa-lib \
			--with-plugindir=${PREFIX}/lib/alsa-lib/plugins \
			--includedir=${PREFIX}/include/alsa-lib

AUTOCONF_VERSION =	2.69
AUTOMAKE_VERSION =	1.16

#test code (at test/) is not ported, test disabled
NO_TEST =		Yes

post-install:
	mv ${PREFIX}/lib/alsa-lib/pkgconfig ${PREFIX}/lib

	mv ${PREFIX}/lib/pkgconfig/{alsa,alsa-lib}.pc
	mv ${PREFIX}/lib/pkgconfig/{alsa,alsa-lib}-topology.pc

.include <bsd.port.mk>
