pkgsrc/audio/din/options.mk
fox 98fc57f979 din: Fixes builds in Linux.
1. Should fix builds in Ubuntu, LIBS are appended correctly during link.

2. Bumps PKGREVISION.
2019-08-07 23:49:02 +00:00

26 lines
533 B
Makefile

# $NetBSD: options.mk,v 1.2 2019/08/07 23:49:02 fox Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.din
PKG_OPTIONS_OPTIONAL_GROUPS= backend
PKG_OPTIONS_GROUP.backend= alsa jack
PKG_SUGGESTED_OPTIONS= jack
.include "../../mk/bsd.options.mk"
###
### Support ALSA
###
.if !empty(PKG_OPTIONS:Malsa)
CXXFLAGS+= -D__LINUX_ALSA__
LIBS+= -lasound
.include "../../audio/alsa-lib/buildlink3.mk"
.endif
###
### Support JACK
###
.if !empty(PKG_OPTIONS:Mjack)
CXXFLAGS+= -D__UNIX_JACK__
LIBS+= -ljack
.include "../../audio/jack/buildlink3.mk"
.endif