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.5 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.28
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.mega-nerd.com/libsndfile/files/
  13. PKG_HASH:=1ff33929f042fa333aed1e8923aa628c3ee9e1eb85512686c55092d1e5a9dfa9
  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. 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))