Skip to contentSkip to conversation

taglib: bump to 1.7

PATCH New Sven Neumann 2 participants 4 messages Sep 23, 2011 – Sep 25, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 taglib: bump to 1.7

Bump the version of taglib to 1.7. This version does not any longer ship with a configure script so convert the package from autotargets to cmaketargets.

The 1.7 version offers optional support for MP4 and WMA files. Expose these options in buildroot.

---
 package/multimedia/taglib/Config.in                |    8 +
 package/multimedia/taglib/taglib-1.5-libtool.patch | 4084 --------------------
 package/multimedia/taglib/taglib.mk                |   27 +-
 3 files changed, 22 insertions(+), 4097 deletions(-)
 delete mode 100644 package/multimedia/taglib/taglib-1.5-libtool.patch
package/multimedia/taglib/Config.in +8 -0
index 3d688a7..6f4f335 100644
@@ -11,3 +11,11 @@ config BR2_PACKAGE_TAGLIB
 
 comment "taglib requires a toolchain with C++ support enabled"
 	depends on !BR2_INSTALL_LIBSTDCPP
+
+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"
package/multimedia/taglib/taglib-1.5-libtool.patch deleted +0 -4084

2,989 lines not on this page · raw message

package/multimedia/taglib/taglib.mk +14 -13
index 5b480bb..db72e27 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.7.4.1

Part of the diff is not shown here. View the raw message.

#1 lore raw

PATCH 1/1 taglib: bump to 1.7

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Sven> Bump the version of taglib to 1.7. This version does not any longer Sven> ship with a configure script so convert the package from autotargets Sven> to cmaketargets.

Sven> The 1.7 version offers optional support for MP4 and WMA files. Sven> Expose these options in buildroot.

Committed with some fixes, thanks (see below). Please take care for the future.

Sven> +++ b/package/multimedia/taglib/Config.in Sven> @@ -11,3 +11,11 @@ config BR2_PACKAGE_TAGLIB

Sven> comment "taglib requires a toolchain with C++ support enabled"
Sven> depends on !BR2_INSTALL_LIBSTDCPP
Sven> +
Sven> +config BR2_PACKAGE_TAGLIB_MP4
Sven> + depends on BR2_PACKAGE_TAGLIB
Sven> + bool "taglib mp4 support"
Sven> +
Sven> +config BR2_PACKAGE_TAGLIB_ASF
Sven> + depends on BR2_PACKAGE_TAGLIB
Sven> + bool "taglib wma support"

These options needs to go right after BR2_PACKAGE_TAGLIB (E.G. before the comment), otherwise they don't get indented.

Sven> +++ b/package/multimedia/taglib/taglib.mk
Sven> @@ -3,25 +3,26 @@

 Sven>  # taglib
 Sven>  #
 Sven>  #############################################################

Sven> -TAGLIB_VERSION = 1.5
Sven> +TAGLIB_VERSION = 1.7
Sven> TAGLIB_SOURCE = taglib-$(TAGLIB_VERSION).tar.gz Sven> TAGLIB_SITE = http://developer.kde.org/~wheeler/files/src
Sven> -TAGLIB_LIBTOOL_PATCH = NO
Sven> TAGLIB_INSTALL_STAGING = YES
Sven> +TAGLIB_DEPENDENCIES = host-pkg-config libglib2

This is wrong. I don't see any references to either pkg-config or libglib2 in the sources. If libglib2 was needed, then you should have selected it in Config.in as well.

Sven> -TAGLIB_CONF_ENV = \
Sven> - DO_NOT_COMPILE='bindings tests examples' \
Sven> - ac_cv_header_cppunit_extensions_HelperMacros_h=no \
Sven> - ac_cv_header_zlib_h=$(if $(BR2_PACKAGE_ZLIB),yes,no)
Sven> +ifeq ($(BR2_PACKAGE_TAGLIB_ASF),y)
Sven> +TAGLIB_CONF_OPT += -DWITH_ASF=ON
Sven> +endif

Sven> -TAGLIB_CONF_OPT = --disable-libsuffix
Sven> +ifeq ($(BR2_PACKAGE_TAGLIB_MP4),y)
Sven> +TAGLIB_CONF_OPT += -DWITH_MP4=ON
Sven> +endif

Sven> -define TAGLIB_REMOVE_DEVFILE
Sven> - rm -f $(TARGET_DIR)/usr/bin/taglib-config
Sven> +define TAGLIB_INSTALL_TARGET_CMDS
Sven> + cp -a $(STAGING_DIR)/usr/lib/libtag.so* $(TARGET_DIR)/usr/lib
Sven> endef

This is wrong. The existing install support was fine. With this you broke BR2_HAVE_DEVFILES / BR2_HAVE_DOCUMENTATION / BR2_PREFER_STATIC_LIB configurations.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 taglib: bump to 1.7

Hi,

Quoted 5 lines · Peter Korsgaard

Sven> +TAGLIB_DEPENDENCIES = host-pkg-config libglib2

This is wrong. I don't see any references to either pkg-config or libglib2 in the sources. If libglib2 was needed, then you should have selected it in Config.in as well.

Oops, sorry about that. We have a patch against taglib in our tree that adds a dependency on glib2 and I forgot to remove this.

Quoted 9 lines

Sven> -define TAGLIB_REMOVE_DEVFILE
Sven> - rm -f $(TARGET_DIR)/usr/bin/taglib-config
Sven> +define TAGLIB_INSTALL_TARGET_CMDS
Sven> + cp -a $(STAGING_DIR)/usr/lib/libtag.so* $(TARGET_DIR)/usr/lib
Sven> endef

This is wrong. The existing install support was fine. With this you broke BR2_HAVE_DEVFILES / BR2_HAVE_DOCUMENTATION / BR2_PREFER_STATIC_LIB configurations.

If I remember correctly I tried the existing install support first and we ended up with all the development files (taglib header files and such) on the target. But I'll check this again.

Thanks for the fixes and the commit,
Sven

#3 lore raw

PATCH 1/1 taglib: bump to 1.7

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Hi,

Quoted 3 lines
Quoted 3 lines

This is wrong. The existing install support was fine. With this you broke BR2_HAVE_DEVFILES / BR2_HAVE_DOCUMENTATION / BR2_PREFER_STATIC_LIB configurations.

Sven> If I remember correctly I tried the existing install support first and Sven> we ended up with all the development files (taglib header files and Sven> such) on the target. But I'll check this again.

You'll indeed get all headers installed, but the target-finalize step (which runs just before the file systems are created) will remove them unless HAVE_DEVFILES / HAVE_DOCUMENTATION are enabled.

Signature · 1 line
Bye, Peter Korsgaard