Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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:= mpg123
  5. PKG_VERSION:= 1.22.2
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 6d1e2487777114ba8a73c543f355cacfa2055646724000fc195ac9e64c843744
  8. PKG_DESCR:= mp3 console player
  9. PKG_SECTION:= mm/audio
  10. PKG_DEPENDS:= alsa-lib
  11. PKG_BUILDDEP:= alsa-lib
  12. PKG_NEEDS:= threads rt
  13. PKG_URL:= http://www.mpg123.de/
  14. PKG_SITES:= http://www.mpg123.de/download/
  15. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,MPG123,mpg123,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. AUTOTOOL_STYLE:= autoreconf
  19. ifeq ($(ADK_TARGET_CPU_X86_I486),y)
  20. CONFIGURE_ARGS+= --with-cpu=i486
  21. endif
  22. ifeq ($(ADK_TARGET_CPU_X86_I586),y)
  23. CONFIGURE_ARGS+= --with-cpu=i586
  24. endif
  25. ifeq ($(ADK_TARGET_CPU_WITH_NEON),y)
  26. CONFIGURE_ARGS+= --with-cpu=neon
  27. endif
  28. TARGET_CPPFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
  29. CONFIGURE_ARGS+= --disable-shared \
  30. --with-default-audio=alsa
  31. mpg123-install:
  32. $(INSTALL_DIR) $(IDIR_MPG123)/usr/bin
  33. $(INSTALL_BIN) $(WRKINST)/usr/bin/mpg123 \
  34. $(IDIR_MPG123)/usr/bin
  35. include ${ADK_TOPDIR}/mk/pkg-bottom.mk