Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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:= 3
  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. ifeq (${ADK_PACKAGE_ALSA_UTILS_WITH_ALSAMIXER},y)
  13. PKG_BUILDDEP+= ncurses
  14. endif
  15. PKG_URL:= http://www.alsa-project.org
  16. PKG_SITES:= ftp://ftp.task.gda.pl/pub/linux/misc/alsa/utils/ \
  17. ftp://ftp.alsa-project.org/pub/utils/
  18. PKG_FLAVOURS:= WITH_ALSAMIXER
  19. PKGFS_WITH_ALSAMIXER:= libncurses
  20. PKGFD_WITH_ALSAMIXER:= include alsamixer ncurses applet
  21. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,ALSA_UTILS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  24. ifeq (${ADK_PACKAGE_ALSA_UTILS_WITH_ALSAMIXER},y)
  25. CONFIGURE_ARGS+= --enable-alsamixer
  26. else
  27. CONFIGURE_ARGS+= --disable-alsamixer
  28. endif
  29. post-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