6925445dd2
This approaches a serious performance issue with 1.26.x when resampling is used on certain platforms (observed on SPARC). Floating point denormals crop up. This change approaches that two-fold 1. Do not disable default optimization flags for GCC. 2. Update to 1.26.5 that contains code to avoid denormals. The default flags are about code optimization (like -ffast-math), not the target architecture, so should not affect portability. They are also rather safe and tested as development of mpg123 always has them in place. This is how it is meant to be played;-) Approved during freeze by wiz.
43 lines
1.3 KiB
Text
43 lines
1.3 KiB
Text
# $NetBSD: Makefile.common,v 1.57 2021/03/25 23:53:13 thor Exp $
|
|
#
|
|
# used by audio/mpg123-nas/Makefile
|
|
# used by audio/mpg123-oss/Makefile
|
|
# used by audio/mpg123-pulse/Makefile
|
|
# used by audio/mpg123-sun/Makefile
|
|
|
|
DISTNAME= mpg123-1.26.5
|
|
PKGNAME?= ${DISTNAME:C/[[:alnum:]]*/&-${MPG123_MODULE}/}
|
|
CATEGORIES= audio
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mpg123/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= martin@NetBSD.org
|
|
HOMEPAGE= https://www.mpg123.org/
|
|
COMMENT?= Contains the ${MPG123_MODULE} module for mpg123
|
|
LICENSE= gnu-lgpl-v2.1
|
|
|
|
USE_LANGUAGES= c99
|
|
USE_LIBTOOL?= yes
|
|
USE_TOOLS+= pkg-config gmake
|
|
GNU_CONFIGURE?= yes
|
|
CONFIGURE_ARGS+= --enable-modules=yes
|
|
CONFIGURE_ENV+= BUILD_${MPG123_MODULE:tu}=yes
|
|
CONFIGURE_ENV+= MPG123_MODULE=${MPG123_MODULE:Q}
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../audio/mpg123/distinfo
|
|
|
|
CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
|
|
|
|
.if !defined(MPG123_BUILDING_BASE)
|
|
INSTALLATION_DIRS+= lib/mpg123
|
|
LIBS+= -lmpg123
|
|
BUILD_TARGET= src/libout123/modules/output_${MPG123_MODULE}.la
|
|
PATCHDIR= ${.CURDIR}/../../audio/mpg123/patches
|
|
do-install:
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} \
|
|
${WRKSRC}/src/libout123/modules/output_${MPG123_MODULE}.la \
|
|
${DESTDIR}${PREFIX}/lib/mpg123
|
|
.endif
|
|
|
|
#.include "../../devel/libltdl/buildlink3.mk"
|
|
.include "../../mk/dlopen.buildlink3.mk"
|