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.

64 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. DEPENDS:=@!avr32
  25. endef
  26. define Package/libsndfile/description
  27. libsndfile is a library of C routines for reading and writing files
  28. containing sampled audio data.
  29. endef
  30. CONFIGURE_ARGS+= \
  31. --disable-alsa \
  32. --disable-external-libs \
  33. --disable-sqlite
  34. CONFIGURE_VARS += \
  35. ac_cv_sys_file_offset_bits=64 \
  36. ac_cv_sys_large_files=yes \
  37. ac_cv_sys_largefile_CFLAGS=-D_LARGFILE_SOURCE \
  38. ac_cv_sys_largefile_LDFLAGS= \
  39. ac_cv_sys_largefile_LIBS= \
  40. ac_cv_sys_largefile_source=yes
  41. TARGET_CFLAGS += $(FPIC)
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)
  44. $(CP) $(PKG_INSTALL_DIR)/* $(1)/
  45. endef
  46. define Package/libsndfile/install
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsndfile.so.* $(1)/usr/lib/
  49. endef
  50. $(eval $(call BuildPackage,libsndfile))