diff options
Diffstat (limited to 'package/taglib')
-rw-r--r-- | package/taglib/Config.in | 22 | ||||
-rw-r--r-- | package/taglib/taglib.mk | 28 |
2 files changed, 50 insertions, 0 deletions
diff --git a/package/taglib/Config.in b/package/taglib/Config.in new file mode 100644 index 000000000..d172c34ad --- /dev/null +++ b/package/taglib/Config.in @@ -0,0 +1,22 @@ + +config BR2_PACKAGE_TAGLIB + bool "taglib" + depends on BR2_INSTALL_LIBSTDCPP + help + TagLib is a library for reading and editing the meta-data of + several popular audio formats. Currently it supports both ID3v1 + and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags and + Vorbis comments in FLAC, MPC, Speex, WavPack and TrueAudio files. + + http://developer.kde.org/~wheeler/taglib.html + +config BR2_PACKAGE_TAGLIB_MP4 + depends on BR2_PACKAGE_TAGLIB + bool "taglib mp4 support" + +config BR2_PACKAGE_TAGLIB_ASF + depends on BR2_PACKAGE_TAGLIB + bool "taglib wma support" + +comment "taglib requires a toolchain with C++ support enabled" + depends on !BR2_INSTALL_LIBSTDCPP diff --git a/package/taglib/taglib.mk b/package/taglib/taglib.mk new file mode 100644 index 000000000..da2db0cf2 --- /dev/null +++ b/package/taglib/taglib.mk @@ -0,0 +1,28 @@ +############################################################# +# +# taglib +# +############################################################# + +TAGLIB_VERSION = 1.7.1 +TAGLIB_SOURCE = taglib-$(TAGLIB_VERSION).tar.gz +TAGLIB_SITE = http://developer.kde.org/~wheeler/files/src +TAGLIB_INSTALL_STAGING = YES + +ifeq ($(BR2_PACKAGE_TAGLIB_ASF),y) +TAGLIB_CONF_OPT += -DWITH_ASF=ON +endif + +ifeq ($(BR2_PACKAGE_TAGLIB_MP4),y) +TAGLIB_CONF_OPT += -DWITH_MP4=ON +endif + +define TAGLIB_REMOVE_DEVFILE + rm -f $(TARGET_DIR)/usr/bin/taglib-config +endef + +ifneq ($(BR2_HAVE_DEVFILES),y) +TAGLIB_POST_INSTALL_TARGET_HOOKS += TAGLIB_REMOVE_DEVFILE +endif + +$(eval $(call CMAKETARGETS)) |