mpg123.mk 852 B

12345678910111213141516171819202122232425262728293031
  1. #############################################################
  2. #
  3. # mpg123
  4. #
  5. #############################################################
  6. MPG123_VERSION = 0.66
  7. MPG123_SOURCE = mpg123-$(MPG123_VERSION).tar.bz2
  8. MPG123_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mpg123
  9. MPG123_CPU = $(if $(BR2_SOFT_FLOAT),generic_nofpu,generic)
  10. ifeq ($(BR2_i386),y)
  11. MPG123_CPU = x86
  12. endif
  13. ifeq ($(BR2_powerpc),y)
  14. ifneq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),)
  15. MPG123_CPU = altivec
  16. endif
  17. endif
  18. MPG123_CONF_OPT = --program-prefix='' --with-cpu=$(MPG123_CPU)
  19. # Check if ALSA is built, then we should configure after alsa-lib so
  20. # ./configure can find alsa-lib.
  21. ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
  22. MPG123_CONF_OPT += --with-audio=alsa
  23. MPG123_DEPENDENCIES += alsa-lib
  24. endif
  25. $(eval $(call AUTOTARGETS,package/multimedia,mpg123))