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.

64 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2006-2010 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:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/mad
  13. PKG_MD5SUM:=e5808ad997ba32c498803822078748c3
  14. PKG_LICENSE:=GPLv2
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libid3tag
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. DEPENDS:=+zlib
  23. TITLE:=An ID3 tag manipulation library
  24. URL:=http://mad.sourceforge.net/
  25. endef
  26. define Package/libid3tag/description
  27. libid3tag is a library for reading and (eventually) writing ID3 tags, both
  28. ID3v1 and the various versions of ID3v2.
  29. endef
  30. TARGET_CFLAGS += $(FPIC)
  31. CONFIGURE_VARS += CC="$(TARGET_CC) $(TARGET_CFLAGS)"
  32. define Build/Configure
  33. $(call Build/Configure/Default, \
  34. --enable-shared \
  35. --enable-static \
  36. --disable-debugging \
  37. --disable-profiling \
  38. )
  39. endef
  40. define Build/InstallDev
  41. $(INSTALL_DIR) $(1)/usr/include
  42. $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so* $(1)/usr/lib/
  45. endef
  46. define Package/libid3tag/install
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
  49. endef
  50. $(eval $(call BuildPackage,libid3tag))