2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/id3lib
16 PKG_MD5SUM:=19f27ddd2dda4b2d26a559a4f0f402a7
20 include $(INCLUDE_DIR)/package.mk
25 DEPENDS:=+zlib +uclibcxx
26 TITLE:=An ID3v1/ID3v2 tag manipulation library
27 URL:=http://www.id3lib.org/
30 TARGET_CFLAGS += $(FPIC)
37 CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti" \
38 LIBS="-nodefaultlibs -lz -luClibc++ -Wl,-Bstatic,-lstdc++,-Bdynamic -lm" \
41 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
44 define Build/InstallDev
45 mkdir -p $(1)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/id3 $(1)/usr/include/
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/id3.h $(1)/usr/include/
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3.{a,so} $(1)/usr/lib/
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(1)/usr/lib/
53 define Package/id3lib/install
54 $(INSTALL_DIR) $(1)/usr/lib/
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3-*.so.* $(1)/usr/lib/
58 $(eval $(call BuildPackage,id3lib))