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.

65 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_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libid3tag
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. DEPENDS:=+zlib
  24. TITLE:=An ID3 tag manipulation library
  25. URL:=http://mad.sourceforge.net/
  26. endef
  27. define Package/libid3tag/description
  28. libid3tag is a library for reading and (eventually) writing ID3 tags, both
  29. ID3v1 and the various versions of ID3v2.
  30. endef
  31. TARGET_CFLAGS += $(FPIC)
  32. CONFIGURE_VARS += CC="$(TARGET_CC) $(TARGET_CFLAGS)"
  33. define Build/Configure
  34. $(call Build/Configure/Default, \
  35. --enable-shared \
  36. --enable-static \
  37. --disable-debugging \
  38. --disable-profiling \
  39. )
  40. endef
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include
  43. $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so* $(1)/usr/lib/
  46. endef
  47. define Package/libid3tag/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
  50. endef
  51. $(eval $(call BuildPackage,libid3tag))