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.

73 lines
1.7 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/Prepare
  35. $(call Build/Prepare/Default)
  36. $(SED) 's,@VERSION@,$(PKG_VERSION),g' $(PKG_BUILD_DIR)/id3tag.pc
  37. endef
  38. define Build/Configure
  39. $(call Build/Configure/Default, \
  40. --enable-shared \
  41. --enable-static \
  42. --disable-debugging \
  43. --disable-profiling \
  44. )
  45. endef
  46. define Build/InstallDev
  47. $(INSTALL_DIR) $(1)/usr/include
  48. $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so* $(1)/usr/lib/
  51. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  52. $(CP) $(PKG_BUILD_DIR)/id3tag.pc $(1)/usr/lib/pkgconfig/
  53. endef
  54. define Package/libid3tag/install
  55. $(INSTALL_DIR) $(1)/usr/lib
  56. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/
  57. endef
  58. $(eval $(call BuildPackage,libid3tag))