Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= id3lib
  5. PKG_VERSION:= 3.8.3
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 19f27ddd2dda4b2d26a559a4f0f402a7
  8. PKG_DESCR:= An ID3v1/ID3v2 tagging library
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= zlib libiconv
  11. PKG_URL:= http://id3lib.sourceforge.net
  12. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=id3lib/}
  13. ifeq ($(ADK_COMPILE_ID3LIB_WITH_UCLIBCXX),y)
  14. PKG_DEPENDS+= uclibc++
  15. else
  16. PKG_DEPENDS+= libstdcxx
  17. endif
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,ID3LIB,id3lib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. TCFLAGS+= -fPIC
  21. CONFIGURE_STYLE:= gnu
  22. CONFIGURE_ARGS+= --enable-cxx-warnings=no
  23. BUILD_STYLE:= auto
  24. INSTALL_STYLE:= auto
  25. ifeq ($(ADK_COMPILE_ID3LIB_WITH_UCLIBCXX),y)
  26. TCXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++ \
  27. -I${STAGING_DIR}/usr/include/uClibc++
  28. CONFIGURE_ENV+= LIBS="-nodefaultlibs -luClibc++ -lz -lm -lc"
  29. else
  30. TLDFLAGS+= -shared
  31. endif
  32. post-install:
  33. ${INSTALL_DIR} ${IDIR_ID3LIB}/usr/lib
  34. ${CP} ${WRKINST}/usr/lib/libid3-*.so.* ${IDIR_ID3LIB}/usr/lib/
  35. include ${TOPDIR}/mk/pkg-bottom.mk