pkgsrc/audio/mpg123/Makefile
nia bed32cff28 mpg123: Update to 1.25.11
libmpg123:
* Fix out-of-bounds reads in ID3 parser for unsynced frames. (oss-fuzz-bug 15852)
* Fix out-of-bounds read for RVA2 frames with non-delimited identifier. (oss-fuzz-bug 15852)
* Fix implementation-defined parsing of RVA2 values. (oss-fuzz-bug 15862)
* Fix undefined parsing of APE header for skipping. Also prevent endless loop on premature end of supposed APE header. (oss-fuzz-bug 15864)
* Fix some syntax to make pedantic compiler happy.

The serious bugs trigger Denial of Service either via the nasty endless
loop in supposed APE tags or by crashes if the invalid reads hit a
diagnostic by the OS or, more likely, a security mechanism like the
sanitizer instrumentation that enabled finding the bugs.

I do not have CVE numbers for these bugs.
I rather fix the bugs than name them. Just update, will you?
2019-07-27 15:14:40 +00:00

39 lines
1,022 B
Makefile

# $NetBSD: Makefile,v 1.58 2019/07/27 15:14:40 nia Exp $
PKGNAME= ${DISTNAME:C/[^[:alnum:]]*//}
COMMENT= MPEG layer 1, 2, and 3 audio player
PKGCONFIG_OVERRIDE+= libmpg123.pc.in
MAKE_ENV+= MPG123_PROGRAM=mpg123
MAKE_ENV+= EXTRA_INSTALL_TARGETS="install-exec-am install-data-am"
MPG123_BUILDING_BASE= # empty
.include "../../mk/bsd.prefs.mk"
PLIST_VARS+= coreaudio oss sun
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "OpenBSD" || ${OPSYS} == "SunOS"
MPG123_DEFAULT_MODULE= sun
PLIST.sun= yes
.elif ${OPSYS} == "Darwin"
MPG123_DEFAULT_MODULE= coreaudio
PLIST.coreaudio= yes
.else
MPG123_DEFAULT_MODULE= oss
PLIST.oss= yes
.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}