Commit cd90bb92 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contrib: add taglib

parent 438669dd
1cf6f33cf3e872224963f42c49f2ae46ce0c69a16e4bfc7d0ffffd9bc01b272a3a4a2eeac2452a659b149f1d3305188a28ce747686e88cee2ff9d5effa667c58 taglib-1.7.tar.gz
# TagLib
TAGLIB_VERSION := 1.7
TAGLIB_URL := http://developer.kde.org/~wheeler/files/src/taglib-$(TAGLIB_VERSION).tar.gz
PKGS += taglib
$(TARBALLS)/taglib-$(TAGLIB_VERSION).tar.gz:
$(call download,$(TAGLIB_URL))
.sum-taglib: taglib-$(TAGLIB_VERSION).tar.gz
taglib: taglib-$(TAGLIB_VERSION).tar.gz .sum-taglib
$(UNPACK)
$(APPLY) $(SRC)/taglib/taglib-static.patch
# FIXME: implement HAVE_CYGWIN
ifdef HAVE_CYGWIN
$(APPLY) $(SRC)/taglib/taglib-cygwin.patch
endif
$(MOVE)
.taglib: taglib toolchain.cmake
cd $< && $(HOSTVARS) $(CMAKE) \
-DENABLE_STATIC:BOOL=ON \
-DWITH_ASF:BOOL=ON \
-DWITH_MP4:BOOL=ON .
cd $< && $(MAKE) install
touch $@
--- taglib/admin/conf.change.pl 2005-07-27 10:23:52.000000000 +1000
+++ taglib/admin/conf.change.pl 2007-09-30 15:57:48.062500000 +1000
@@ -146,6 +146,7 @@
fi
done
if test -f \$tmp/subs.files ; then
+ dos2unix \$tmp/subs.files
perl $ac_aux_dir/config.pl "\$tmp/subs.sed" "\$tmp/subs.files" "\$srcdir" "\$INSTALL"
fi
rm -f \$tmp/subs.files
diff -ru taglib-1.5/taglib/taglib_export.h taglib/taglib/taglib_export.h
--- taglib-1.5/taglib/taglib_export.h 2008-02-04 15:14:46.000000000 +0000
+++ taglib/taglib/taglib_export.h 2008-04-13 18:25:29.000000000 +0100
@@ -28,9 +28,9 @@
#if !defined(TAGLIB_STATIC) && (defined(_WIN32) || defined(_WIN64))
#ifdef MAKE_TAGLIB_LIB
-#define TAGLIB_EXPORT __declspec(dllexport)
+#define TAGLIB_EXPORT
#else
-#define TAGLIB_EXPORT __declspec(dllimport)
+#define TAGLIB_EXPORT
#endif
#elif defined(__GNUC__) && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 1)
#define TAGLIB_EXPORT __attribute__ ((visibility("default")))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment