pkgsrc/audio/libao/buildlink3.mk
joerg 5e43280b23 Replace mk/bsd.prefs.mk includes with bsd.fast.prefs.mk includes.
The redundant parsing of bsd.prefs.mk is mostly avoided now and
parse time e.g. for x11/kdebase3 gets reduced by up to 10%.
2006-12-12 21:52:34 +00:00

38 lines
1.1 KiB
Makefile

# $NetBSD: buildlink3.mk,v 1.12 2006/12/12 21:52:34 joerg Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
LIBAO_BUILDLINK3_MK:= ${LIBAO_BUILDLINK3_MK}+
.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+= libao
.endif
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibao}
BUILDLINK_PACKAGES+= libao
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libao
.if !empty(LIBAO_BUILDLINK3_MK:M+)
BUILDLINK_API_DEPENDS.libao+= libao>=0.8.4
BUILDLINK_ABI_DEPENDS.libao+= libao>=0.8.6nb3
BUILDLINK_PKGSRCDIR.libao?= ../../audio/libao
. if !defined(_LIBAO_BUILDING_PLUGIN)
. include "../../mk/bsd.fast.prefs.mk"
. if ${OPSYS} != "Darwin" && ${OPSYS} != "Interix" && ${OPSYS} != "SunOS"
_LIBAO_DEFAULT_PLUGIN= oss
. elif ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
_LIBAO_DEFAULT_PLUGIN= sun
. else
_LIBAO_DEFAULT_PLUGIN=
. endif
. if !empty(_LIBAO_DEFAULT_PLUGIN)
DEPENDS+= libao-[a-z]*-[0-9]*:../../audio/libao-${_LIBAO_DEFAULT_PLUGIN}
. endif
. endif
.endif # LIBAO_BUILDLINK3_MK
PRINT_PLIST_AWK+= /^@dirrm lib\/ao\/plugins-2$$/ \
{ print "@comment in libao: " $$0; next }
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}