subprojects: add id3tag
This commit is contained in:
1
subprojects/.gitignore
vendored
1
subprojects/.gitignore
vendored
@@ -6,6 +6,7 @@
|
||||
/fmt-*/
|
||||
/googletest-*/
|
||||
/lame-*/
|
||||
/libid3tag-*/
|
||||
/libmicrohttpd*
|
||||
/libmpdclient/
|
||||
/libnpupnp-*/
|
||||
|
9
subprojects/id3tag.wrap
Normal file
9
subprojects/id3tag.wrap
Normal file
@@ -0,0 +1,9 @@
|
||||
[wrap-file]
|
||||
directory = libid3tag-0.15.1b
|
||||
source_url = ftp://ftp.mars.org/pub/mpeg/libid3tag-0.15.1b.tar.gz
|
||||
source_filename = libid3tag-0.15.1b.tar.gz
|
||||
source_hash = 63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151
|
||||
patch_directory = id3tag
|
||||
|
||||
[provide]
|
||||
id3tag = libid3tag_dep
|
41
subprojects/packagefiles/id3tag/meson.build
Normal file
41
subprojects/packagefiles/id3tag/meson.build
Normal file
@@ -0,0 +1,41 @@
|
||||
fs = import('fs')
|
||||
|
||||
project(
|
||||
'libid3tag', 'c',
|
||||
version: '0.15.1b',
|
||||
license: 'GPLv2+',
|
||||
)
|
||||
|
||||
compiler = meson.get_compiler('c')
|
||||
|
||||
conf = configuration_data()
|
||||
conf.set('HAVE_ASSERT_H', true)
|
||||
conf.set('HAVE_FTRUNCATE', compiler.has_function('ftruncate'))
|
||||
conf.set('HAVE_INTTYPES_H', true)
|
||||
conf.set('HAVE_LIBZ', false) # TODO
|
||||
conf.set('HAVE_STDINT_H', true)
|
||||
conf.set('HAVE_STDIO_H', true)
|
||||
conf.set('HAVE_STDLIB_H', true)
|
||||
conf.set('HAVE_STRINGS_H', true)
|
||||
conf.set('HAVE_STRING_H', true)
|
||||
conf.set('HAVE_SYS_STAT_H', compiler.has_header('sys/stat.h'))
|
||||
conf.set('HAVE_SYS_TYPES_H', true)
|
||||
conf.set('HAVE_UNISTD_H', compiler.has_header('unistd.h'))
|
||||
configure_file(output: 'config.h', configuration: conf)
|
||||
|
||||
add_project_arguments('-DHAVE_CONFIG_H', language: 'c')
|
||||
|
||||
libid3tag = static_library(
|
||||
'id3tag',
|
||||
'version.c', 'ucs4.c', 'latin1.c', 'utf16.c', 'utf8.c',
|
||||
'parse.c', 'render.c', 'field.c', 'frametype.c', 'compat.c',
|
||||
'genre.c', 'frame.c', 'crc.c', 'util.c', 'tag.c', 'file.c',
|
||||
)
|
||||
|
||||
copy = fs.copyfile('id3tag.h', 'include/id3tag.h')
|
||||
|
||||
libid3tag_dep = declare_dependency(
|
||||
link_with: libid3tag,
|
||||
dependencies: [copy]
|
||||
include_directories: include_directories('include'),
|
||||
)
|
Reference in New Issue
Block a user