1
0

Makefile 1.3 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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= alsa-utils
  5. PKG_VERSION:= 1.0.22
  6. PKG_RELEASE:= 4
  7. PKG_MD5SUM:= f7180316188552ee1e6759a03f1fe98d
  8. PKG_DESCR:= ALSA mixer utility
  9. PKG_SECTION:= multimedia
  10. PKG_DEPENDS:= alsa-lib libpthread
  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 ${TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,ALSA_UTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. ifeq (${ADK_PACKAGE_ALSA_UTILS_WITH_ALSAMIXER},y)
  22. CONFIGURE_ARGS+= --enable-alsamixer
  23. else
  24. CONFIGURE_ARGS+= --disable-alsamixer
  25. endif
  26. post-install:
  27. ${INSTALL_DIR} ${IDIR_ALSA_UTILS}/usr/bin/
  28. ${CP} ${WRKINST}/usr/bin/amixer ${IDIR_ALSA_UTILS}/usr/bin/
  29. ifeq (${ADK_PACKAGE_ALSA_UTILS_WITH_ALSAMIXER},y)
  30. ${INSTALL_BIN} ${WRKINST}/usr/bin/alsamixer \
  31. ${IDIR_ALSA_UTILS}/usr/bin/
  32. endif
  33. include ${TOPDIR}/mk/pkg-bottom.mk