Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= alsa-lib
  5. PKG_VERSION:= 1.0.28
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= c9e21b88a2b3e6e12ea7ba0f3b271fc3
  8. PKG_DESCR:= sound library
  9. PKG_SECTION:= libs/audio
  10. PKG_URL:= http://www.alsa-project.org/
  11. PKG_SITES:= ftp://ftp.alsa-project.org/pub/lib/
  12. PKG_OPTS:= dev
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
  14. include ${ADK_TOPDIR}/mk/host.mk
  15. include ${ADK_TOPDIR}/mk/package.mk
  16. $(eval $(call HOST_template,ALSA_LIB,alsa-lib,${PKG_VERSION}-${PKG_RELEASE}))
  17. $(eval $(call PKG_template,ALSA_LIB,alsa-lib,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  18. ifneq ($(ADK_HOST_LINUX),y)
  19. HOST_LINUX_ONLY:= 1
  20. endif
  21. TARGET_CPPFLAGS+= -D_POSIX_C_SOURCE=1
  22. HOST_STYLE:= auto
  23. CONFIGURE_ARGS+= --disable-python
  24. alsa-lib-install:
  25. ${INSTALL_DIR} ${IDIR_ALSA_LIB}/usr/lib ${IDIR_ALSA_LIB}/usr/share/alsa
  26. ${CP} ${WRKINST}/usr/lib/libasound.so* ${IDIR_ALSA_LIB}/usr/lib
  27. ${CP} ${WRKINST}/usr/share/alsa/* ${IDIR_ALSA_LIB}/usr/share/alsa
  28. include ${ADK_TOPDIR}/mk/host-bottom.mk
  29. include ${ADK_TOPDIR}/mk/pkg-bottom.mk