Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= id3lib
  5. PKG_VERSION:= 3.8.3
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 19f27ddd2dda4b2d26a559a4f0f402a7
  8. PKG_DESCR:= id3 tagging library
  9. PKG_SECTION:= libs/audio
  10. PKG_DEPENDS:= zlib
  11. PKG_BUILDDEP:= zlib
  12. PKG_URL:= http://id3lib.sourceforge.net/
  13. PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=id3lib/}
  14. PKG_CXX:= ID3LIB
  15. PKG_OPTS:= dev
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  17. include ${ADK_TOPDIR}/mk/package.mk
  18. $(eval $(call PKG_template,ID3LIB,id3lib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  19. TARGET_CFLAGS+= -fPIC
  20. CONFIGURE_ARGS+= --enable-cxx-warnings=no
  21. ifeq ($(ADK_COMPILE_ID3LIB_WITH_UCLIBCXX),y)
  22. LIBRARIES:=-nodefaultlibs -luClibc++ -lz -lm -lc
  23. endif
  24. ifeq ($(ADK_TARGET_USE_SSP),y)
  25. LIBRARIES+=-lssp -fstack-protector
  26. endif
  27. ifeq ($(ADK_COMPILE_ID3LIB_WITH_UCLIBCXX),y)
  28. TARGET_CXXFLAGS+= -fno-builtin -fno-rtti -nostdinc++ \
  29. -I${STAGING_TARGET_DIR}/usr/include/uClibc++
  30. CONFIGURE_ENV+= LIBS="${LIBRARIES}"
  31. else
  32. TARGET_LDFLAGS+= -shared
  33. endif
  34. id3lib-install:
  35. ${INSTALL_DIR} ${IDIR_ID3LIB}/usr/lib
  36. ${CP} ${WRKINST}/usr/lib/libid3-*.so* ${IDIR_ID3LIB}/usr/lib/
  37. include ${ADK_TOPDIR}/mk/pkg-bottom.mk