pkgsrc/audio/flac/Makefile
adam 08b3b59a68 flac: updated to 1.3.4
FLAC 1.3.4

This release mostly fixes (security related) bugs. When building with MSVC, using CMake is preferred, see the README under "Building with CMake" for more information. Building with MSVC using solution files is deprecated and these files will be removed in the future.

General:
* Fix 12 decoder bugs found by oss-fuzz, including CVE-2020-0499 (erikd, Martijn van Beurden)
  - Fix encoder bug CVE-2021-0561 (NeelkamalSemwal)
  - Integrate oss-fuzzers (erikd, Guido Vranken)
  - Seeking fixes (NeelkamalSemwal, Robert Kausch)
  - Various fixes and improvements (Andrei Astafev, Rosen Penev, Håkan Kvist, oreo639, erikd, Tamás Zahola, Ulrik Mikaelsson, Tyler Dunn, tmkk)
* FLAC format:
  - (none)
* Ogg FLAC format:
  - (none)
* flac:
  - Various fixes and improvements (Andrei Astafev, Martijn van Beurden)
* metaflac:
  - (none)
* build system:
  - CMake improvements (evpobr, Vitaliy Kirsanov, erikd, Ozkan Sezer, Tyler Dunn, tg-m DeadSix27, ericLemanissier, Chocobo1).
  - Fixes for MinGW and MSVC (Ozkan Sezer).
  - Fix for clang (Ozkan Sezer)
  - Fix for PowerPC (Peter Seiderer, Thomas BERNARD)
  - Fix for FreeBSD PowerPC (pkubaj).
* testing/validation:
  - Add Windows target to CI, improve logging (Ralph Giles)
  - CI improvements (Ralph Giles, Ewout ter Hoeven)
* documentation:
  - Doxygen fixes (Tyler Dunn)
  - Fix typos (Tim Gates, maxz)
*  Interface changes:
  - libFLAC:
    (none)
  - libFLAC++:
    (none)
2022-02-21 08:19:41 +00:00

61 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.57 2022/02/21 08:19:41 adam Exp $
DISTNAME= flac-1.3.4
CATEGORIES= audio archivers
MASTER_SITES= http://downloads.xiph.org/releases/flac/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://xiph.org/flac/
COMMENT= Free lossless audio codec
LICENSE= modified-bsd AND gnu-gpl-v2 AND gnu-lgpl-v2.1
USE_LIBTOOL= yes
USE_TOOLS+= aclocal autoconf autoheader automake gmake
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-doxygen-docs
CONFIGURE_ARGS+= --disable-xmms-plugin
PKGCONFIG_OVERRIDE+= src/libFLAC++/flac++.pc.in
PKGCONFIG_OVERRIDE+= src/libFLAC/flac.pc.in
BUILD_DEFS+= PKGSRC_MKPIE
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == "i386"
. if ${PKGSRC_MKPIE:tl} == "yes"
CONFIGURE_ARGS+= --disable-asm-optimizations
. else
TOOL_DEPENDS+= nasm>=0.98:../../devel/nasm
. endif
.endif
.if !empty(MACHINE_PLATFORM:M*-*-powerpc)
. if ${OPSYS} != "Darwin"
CONFIGURE_ARGS+= --disable-asm-optimizations
CONFIGURE_ARGS+= --disable-altivec
. endif
.endif
.if !empty(MACHINE_PLATFORM:MDarwin-*-i386)
CONFIGURE_ARGS+= --disable-asm-optimizations
.endif
.include "../../mk/compiler.mk"
# SunPro does not support __inline
.if !empty(PKGSRC_COMPILER:Msunpro)
CFLAGS+= -D__inline=inline
.endif
# With -fgnu89-inline option duplicate symbols arise.
.if !empty(PKGSRC_COMPILER:Mclang)
BUILDLINK_TRANSFORM+= rm:-fgnu89-inline
.endif
pre-configure:
cd ${WRKSRC} && autoreconf
.include "../../multimedia/libogg/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"