Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= alsa-utils
  5. PKG_VERSION:= 1.0.27.2
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= b65e9a04181bd7c9db7667a4566f8dc3
  8. PKG_DESCR:= ALSA mixer utility
  9. PKG_SECTION:= multimedia
  10. PKG_DEPENDS:= alsa-lib libpthread libgcc 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_ARCH_DEPENDS:= !m68k
  15. PKG_FLAVOURS_ALSA_UTILS:=WITH_ALSAMIXER
  16. PKGFS_WITH_ALSAMIXER:= libncurses
  17. PKGFD_WITH_ALSAMIXER:= include alsamixer ncurses applet
  18. PKGFB_WITH_ALSAMIXER:= ncurses
  19. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,ALSA_UTILS,alsa-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. TARGET_CPPFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
  23. CONFIGURE_ARGS+= --disable-xmlto
  24. ifeq (${ADK_PACKAGE_ALSA_UTILS_WITH_ALSAMIXER},y)
  25. CONFIGURE_ARGS+= --enable-alsamixer
  26. else
  27. CONFIGURE_ARGS+= --disable-alsamixer
  28. endif
  29. alsa-utils-install:
  30. ${INSTALL_DIR} ${IDIR_ALSA_UTILS}/usr/bin
  31. ${CP} ${WRKINST}/usr/bin/amixer ${IDIR_ALSA_UTILS}/usr/bin
  32. ifeq (${ADK_PACKAGE_ALSA_UTILS_WITH_ALSAMIXER},y)
  33. ${INSTALL_BIN} ${WRKINST}/usr/bin/alsamixer \
  34. ${IDIR_ALSA_UTILS}/usr/bin
  35. endif
  36. include ${TOPDIR}/mk/pkg-bottom.mk