1
0

Makefile 1.4 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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= alsa-utils
  5. PKG_VERSION:= 1.0.28
  6. PKG_RELEASE:= 2
  7. PKG_HASH:= f3ff4c89b0125a7797b1b13cd094cc92276e655458274967386e812d03642acc
  8. PKG_DESCR:= mixer/player/record utilities
  9. PKG_SECTION:= mm/audio
  10. PKG_DEPENDS:= alsa-lib libpthread librt
  11. PKG_BUILDDEP:= alsa-lib
  12. PKG_URL:= http://www.alsa-project.org/
  13. PKG_SITES:= ftp://ftp.alsa-project.org/pub/utils/
  14. PKG_FLAVOURS_ALSA_UTILS:=WITH_ALSAMIXER
  15. PKGFS_WITH_ALSAMIXER:= libncurses
  16. PKGFD_WITH_ALSAMIXER:= include alsamixer ncurses applet
  17. PKGFB_WITH_ALSAMIXER:= ncurses
  18. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  19. include ${ADK_TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,ALSA_UTILS,alsa-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. TARGET_CPPFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
  22. CONFIGURE_ARGS+= --disable-xmlto
  23. ifeq (${ADK_PACKAGE_ALSA_UTILS_WITH_ALSAMIXER},y)
  24. CONFIGURE_ARGS+= --enable-alsamixer
  25. else
  26. CONFIGURE_ARGS+= --disable-alsamixer
  27. endif
  28. alsa-utils-install:
  29. ${INSTALL_DIR} ${IDIR_ALSA_UTILS}/usr/bin
  30. ${CP} ${WRKINST}/usr/bin/{aplay,amixer,arecord} ${IDIR_ALSA_UTILS}/usr/bin
  31. ifeq (${ADK_PACKAGE_ALSA_UTILS_WITH_ALSAMIXER},y)
  32. ${INSTALL_BIN} ${WRKINST}/usr/bin/alsamixer \
  33. ${IDIR_ALSA_UTILS}/usr/bin
  34. endif
  35. include ${ADK_TOPDIR}/mk/pkg-bottom.mk