1
0

Makefile 1.2 KB

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