You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2007-2010 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libsndfile
  9. PKG_VERSION:=1.0.25
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.mega-nerd.com/libsndfile/files/
  13. PKG_MD5SUM:=e2b7bb637e01022c7d20f95f9c3990a2
  14. PKG_LICENSE:=LGPLv2.1
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libsndfile
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Library for reading/writing audio files
  23. URL:=http://www.mega-nerd.com/libsndfile/
  24. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  25. DEPENDS:=@!avr32
  26. endef
  27. define Package/libsndfile/description
  28. libsndfile is a library of C routines for reading and writing files
  29. containing sampled audio data.
  30. endef
  31. CONFIGURE_ARGS+= \
  32. --disable-alsa \
  33. --disable-external-libs \
  34. --disable-sqlite
  35. CONFIGURE_VARS += \
  36. ac_cv_sys_file_offset_bits=64 \
  37. ac_cv_sys_large_files=yes \
  38. ac_cv_sys_largefile_CFLAGS=-D_LARGFILE_SOURCE \
  39. ac_cv_sys_largefile_LDFLAGS= \
  40. ac_cv_sys_largefile_LIBS= \
  41. ac_cv_sys_largefile_source=yes
  42. TARGET_CFLAGS += $(FPIC)
  43. define Build/InstallDev
  44. $(INSTALL_DIR) $(1)
  45. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  46. endef
  47. define Package/libsndfile/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsndfile.so.* $(1)/usr/lib/
  50. endef
  51. $(eval $(call BuildPackage,libsndfile))