{
	'repo_type' : 'archive',
	'do_not_bootstrap' : True,
	'download_locations' : [
		{ 'url' : 'https://sourceforge.net/projects/bs2b/files/libbs2b/3.1.0/libbs2b-3.1.0.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '6aaafd81aae3898ee40148dd1349aab348db9bfae9767d0e66e0b07ddd4b2528' }, ], },
		{ 'url' : 'http://sourceforge.mirrorservice.org/b/bs/bs2b/libbs2b/3.1.0/libbs2b-3.1.0.tar.gz', 'hashes' : [ { 'type' : 'sha256', 'sum' : '6aaafd81aae3898ee40148dd1349aab348db9bfae9767d0e66e0b07ddd4b2528' }, ], },
	],
	'env_exports' : {
		'ac_cv_func_malloc_0_nonnull' : 'yes', # fixes undefined reference to `rpl_malloc'
	},
	'run_post_regexreplace' : [
		'autoreconf -fiv',
	],
	'regex_replace': {
		'post_patch': [
			{
				0: r' dist-lzma',
				1: r' dist-xz',
				'in_file': 'configure.ac' # configure.ac:7: error: support for lzma-compressed distribution archives has been removed
			},
			{
				0: r'\t-lsndfile',
				'in_file': 'src/Makefile.am'
			},
			{
				0: r'bs2bconvert_LDFLAGS = \\',
				1: r'bs2bconvert_LDFLAGS = !CMD(pkg-config sndfile --libs-only-l)CMD!\n',
				'in_file': 'src/Makefile.am'
			},
		],
	},

	'depends_on' : ['libsndfile',],
	'configure_options' : '--host={target_host} --prefix={target_prefix} --disable-shared --enable-static',
	'update_check' : { 'url' : 'https://sourceforge.net/projects/bs2b/files/libbs2b/', 'type' : 'sourceforge', },
	'_info' : { 'version' : '3.1.0', 'fancy_name' : 'libbs2b' },
}