Re: libopenmpt0-dev' fails build on Mac OS X 10.11

Hanspeter Niederstrasser <[email protected]>
Newsgroups gmane.os.apple.fink.general
Organization Snaggled Works
Message-ID <[email protected]>
On 10/1/21 7:14 AM, Scott Hannahs via Fink-users wrote:
> This is the fourth of a few build failures.  Attempt to try to update “ libopenmpt0-dev'”. This requires C++17 which is not compatible with the old Xcode 8.2.1???
> 
> checking for gcc option to accept ISO C99... none needed
> checking for gcc option to accept ISO Standard C... (cached) none needed
> checking whether g++ supports C++17 features with -std=c++17... no
> checking whether g++ supports C++17 features with +std=c++17... no
> checking whether g++ supports C++17 features with -h std=c++17... no
> checking whether g++ supports C++17 features with -std=c++1z... no
> checking whether g++ supports C++17 features with +std=c++1z... no
> checking whether g++ supports C++17 features with -h std=c++1z... no
> configure: error: *** A compiler with support for C++17 language features is required.

Apparently c++17 came with Xcode9. Can you try the attached file? This 
version of libopenmpt checks for c++17, but then checks for c++14 and 
c++11 if the newer version doesn't work.

Hanspeter

_______________________________________________
Fink-users mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users
libopenmpt0-shlibs-0.4.23.info (text/plain, 2.8 KB)
Package: libopenmpt0-shlibs
Version: 0.4.23
Revision: 1
# Dist restricted by needing c++17
# Distribution: 10.9, 10.10, 10.11
Description: Library to decode tracked music files
License: BSD
Maintainer: Hanspeter Niederstrasser <[email protected]>
Depends: <<
	libmpg123-shlibs,
	libogg-shlibs,
	libtool2-shlibs,
	libvorbis0-shlibs
<<
BuildDepends: <<
	doxygen,
	fink-package-precedence,
	libflac8-dev,
	libmpg123,
	libogg,
	libtool2,
	libsndfile1-dev,
	libvorbis0,
	pkgconfig,
	portaudio2 (>= 2.19.6.0-20161030-1)
<<
Source: https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-%v+release.autotools.tar.gz
Source-Checksum: SHA256(29697b7106db19fabead72cb9e02dcddef785d4496f24d119326e48178a719ac)
Source2: http://www.opensource.apple.com/source/zlib/zlib-43/zlib/zlib.pc?txt
Source2Rename: zlib.pc
Source2-Checksum: SHA256(b5d9db6f6c7dfdb3719a9c55074fd64713fbc36d8ebf720405b3b23c95cac805)
Source2ExtractDir: pkgconfig
PatchScript: <<
	# Patch configure to not link like Puma on Yosemite
	perl -pi.bak -e 's|10\.\[012\]\*|10.[012][,.]*|g' configure
<<
ConfigureParams: <<
	--enable-dependency-tracking \
	--disable-static \
	--without-pulseaudio \
	--without-portaudiocpp \
	--with-sdl2=no
<<
GCC: 4.0
CompileScript: <<
	#!/bin/sh -ev
	export PKG_CONFIG_PATH=`pwd`/../pkgconfig
	%{default_script}
	fink-package-precedence --prohibit-bdep=libopenmpt0-dev .
<<
InfoTest: <<
	TestDepends: portaudio2-cpp (>= 2.19.6.0-20161030-1)
	TestScript: <<
		#!/bin/sh -ev
		make check || exit 2
		fink-package-precedence --prohibit-bdep=libopenmpt0-dev .
	<<
	TestConfigureParams: --with-portaudiocpp
	TestDepends: portaudio2-cpp (>= 2.19.0-20140130-2)
<<
InstallScript: <<
	make install DESTDIR=%d
	# Remove private requires
	perl -ni -e 'print unless /Libs.private:/' %i/lib/pkgconfig/*.pc
	perl -ni -e 'print unless /Requires.private:/' %i/lib/pkgconfig/*.pc
<<
DocFiles: LICENSE README.md
Shlibs: %p/lib/libopenmpt.0.dylib 2.0.0 %n (>= 0.4.23-1)
SplitOff: <<
	Package: libopenmpt0-dev
	Description: Developer files for libopenmpt0-shlibs
	Depends: <<
		%N (= %v-%r)
	<<
	BuildDependsOnly: true
	Files: <<
		include
		lib/libopenmpt.dylib
		lib/libopenmpt.la
		lib/pkgconfig
		share/doc/libopenmpt
	<<
	DocFiles: LICENSE README.md
<<
SplitOff2: <<
	Package: libopenmpt-bin
	Description: OpenMPT player
	Depends: <<
		%N (>= %v-%r),
		libflac8,
		libmpg123-shlibs,
		libogg-shlibs,
		libsndfile1-shlibs,
		libtool2-shlibs,
		libvorbis0-shlibs,
		portaudio2-shlibs (>= 2.19.6.0-20161030-1)
	<<
	Files: <<
		bin
		share/man
	<<
	DocFiles: LICENSE
<<
Homepage: https://openmpt.org/
DescDetail: <<
libopenmpt is a cross-platform C++ and C library to decode tracked music 
files (modules) into a raw PCM audio stream.

libopenmpt is based on the player code of the Open ModPlug Tracker project 
(OpenMPT, https://openmpt.org/)
<<
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.