You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libid3tag
  9. PKG_VERSION:=0.15.1b
  10. PKG_RELEASE:=4
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/mad
  13. PKG_HASH:=63da4f6e7997278f8a3fef4c6a372d342f705051d1eeb6a46a86b03610e26151
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=GPL-2
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_CPE_ID:=cpe:/a:media-libs:libid3tag
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libid3tag
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. DEPENDS:=+zlib
  25. TITLE:=An ID3 tag manipulation library
  26. URL:=http://mad.sourceforge.net/
  27. endef
  28. define Package/libid3tag/description
  29. libid3tag is a library for reading and (eventually) writing ID3 tags, both
  30. ID3v1 and the various versions of ID3v2.
  31. endef
  32. TARGET_CFLAGS += $(FPIC)
  33. CONFIGURE_VARS += CC="$(TARGET_CC) $(TARGET_CFLAGS)"
  34. define Build/Configure
  35. $(call Build/Configure/Default, \
  36. --enable-shared \
  37. --enable-static \
  38. --disable-debugging \
  39. --disable-profiling \
  40. )
  41. endef
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so* $(1)/usr/lib/
  47. endef
  48. define Package/libid3tag/install
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
  51. endef
  52. $(eval $(call BuildPackage,libid3tag))