File:  [cvs.NetBSD.org] / pkgsrc / audio / mpg123 / Makefile
Revision 1.65: download - view: text, annotated - select for diffs
Wed Apr 27 21:15:23 2022 UTC (2 years, 7 months ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, HEAD
mpg123: Fix device opening on NetBSD on rpi.  Normal applications setting
the audio output port in 2022 considered harmful.

# $NetBSD: Makefile,v 1.65 2022/04/27 21:15:23 nia Exp $

PKGNAME=	${DISTNAME:C/[^[:alnum:]]*//}
PKGREVISION=	1
COMMENT=	MPEG layer 1, 2, and 3 audio player

PKGCONFIG_OVERRIDE+=	libmpg123.pc.in libout123.pc.in libsyn123.pc.in

MPG123_BUILDING_BASE=	# empty

.include "../../mk/bsd.prefs.mk"

PLIST_VARS+=	coreaudio oss sun alsa

.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "SunOS"
MPG123_DEFAULT_MODULE=	sun
PLIST.sun=		yes
.elif ${OPSYS} == "Darwin"
MPG123_DEFAULT_MODULE=	coreaudio
PLIST.coreaudio=	yes
.elif ${OPSYS} == "Linux"
MPG123_DEFAULT_MODULE=	alsa,oss
MPG123_TRY_MODULES=	pulse,jack,alsa,oss
PLIST.alsa=		yes
PLIST.oss=		yes
.include "../../audio/alsa-lib/buildlink3.mk"
.else
MPG123_DEFAULT_MODULE=	oss
PLIST.oss=		yes
.endif

.if !empty(PLIST.oss)
.include "../../mk/oss.buildlink3.mk"
LIBS+=		${LIBOSSAUDIO}
CPPFLAGS+=	-DDEVOSSAUDIO="\"${DEVOSSAUDIO}\""
CPPFLAGS+=	-DDEVOSSSOUND="\"${DEVOSSSOUND}\""
.endif

# MPG123_MODULE is not finally set yet, to avoid NOT_FOR_PLATFORM triggers
.include "Makefile.common"

.include "options.mk"
.include "../../mk/bsd.pkg.mk"

# now we can set the default module
MPG123_MODULE=	${MPG123_DEFAULT_MODULE}

CVSweb <webmaster@jp.NetBSD.org>