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 ${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_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,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/amixer ${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 ${TOPDIR}/mk/pkg-bottom.mk