python3: update to 3.11.10
[openadk.git] / package / alsa-utils / Makefile
blob2caa08f05c43c7a1e2663d4a5da7a67625eec53c
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= alsa-utils
7 PKG_VERSION:= 1.2.11
8 PKG_RELEASE:= 1
9 PKG_HASH:= 9ac6ca3a883f151e568dcf979b8d2e5cbecc51b819bb0e6bb8a2e9b34cc428a7
10 PKG_DESCR:= mixer/player/record utilities
11 PKG_SECTION:= mm/audio
12 PKG_DEPENDS:= alsa-lib
13 PKG_BUILDDEP:= alsa-lib
14 PKG_NEEDS:= threads
15 PKG_URL:= http://www.alsa-project.org/
16 PKG_SITES:= ftp://ftp.alsa-project.org/pub/utils/
18 PKG_FLAVOURS_ALSA_UTILS:=WITH_ALSAMIXER
19 PKGFS_WITH_ALSAMIXER:= libncurses
20 PKGFD_WITH_ALSAMIXER:= include alsamixer ncurses applet
21 PKGFB_WITH_ALSAMIXER:= ncurses
23 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
25 include ${ADK_TOPDIR}/mk/package.mk
27 $(eval $(call PKG_template,ALSA_UTILS,alsa-utils,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
29 TARGET_CPPFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE
30 CONFIGURE_ARGS+= --disable-xmlto
31 ifeq (${ADK_PACKAGE_ALSA_UTILS_WITH_ALSAMIXER},y)
32 CONFIGURE_ARGS+= --enable-alsamixer
33 TARGET_LDFLAGS+= -ltinfo
34 else
35 CONFIGURE_ARGS+= --disable-alsamixer
36 endif
38 alsa-utils-install:
39 ${INSTALL_DIR} ${IDIR_ALSA_UTILS}/usr/bin
40 ${CP} ${WRKINST}/usr/bin/{aplay,amixer,arecord,amidi,aconnect} ${IDIR_ALSA_UTILS}/usr/bin
41 ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
42 $(INSTALL_DIR) $(IDIR_ALSA_UTILS)/etc/amixer.d
43 $(INSTALL_BIN) ./files/raspberry-pi.sh \
44 $(IDIR_ALSA_UTILS)/etc/amixer.d
45 endif
46 ifeq (${ADK_PACKAGE_ALSA_UTILS_WITH_ALSAMIXER},y)
47 ${INSTALL_BIN} ${WRKINST}/usr/bin/alsamixer \
48 ${IDIR_ALSA_UTILS}/usr/bin
49 endif
51 include ${ADK_TOPDIR}/mk/pkg-bottom.mk