pkgsrc/audio/libao/buildlink3.mk
nia 5b34069b3a libao: simplify dependency patterns.
there's no harm having multiple plugins installed concurrently,
see https://xiph.org/ao/doc/config.html for advice on selecting one
2021-01-23 12:11:12 +00:00

27 lines
766 B
Makefile

# $NetBSD: buildlink3.mk,v 1.18 2021/01/23 12:11:12 nia Exp $
BUILDLINK_TREE+= libao
.if !defined(LIBAO_BUILDLINK3_MK)
LIBAO_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.libao+= libao>=0.8.4
BUILDLINK_ABI_DEPENDS.libao+= libao>=1.0.0
BUILDLINK_PKGSRCDIR.libao?= ../../audio/libao
.if !defined(_LIBAO_BUILDING_PLUGIN)
. include "../../mk/bsd.fast.prefs.mk"
. if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
DEPENDS+= libao-sun-[0-9]*:../../audio/libao-sun
. elif ${OPSYS} == "Linux"
DEPENDS+= libao-alsa-[0-9]*:../../audio/libao-alsa
. elif ${OPSYS} == "Darwin"
DEPENDS+= libao-macosx-[0-9]*:../../audio/libao-macosx
. elif ${OPSYS} != "Interix"
DEPENDS+= libao-oss-[0-9]*:../../audio/libao-oss
. endif
.endif
.endif # LIBAO_BUILDLINK3_MK
BUILDLINK_TREE+= -libao