1
0

Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.26
  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:=ec810a0c60c08772a8a5552704b63393
  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))