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
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
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
35 CONFIGURE_ARGS
+= --disable-alsamixer
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
46 ifeq (${ADK_PACKAGE_ALSA_UTILS_WITH_ALSAMIXER},y
)
47 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/alsamixer \
48 ${IDIR_ALSA_UTILS}/usr
/bin
51 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk