暫無描述

Makefile 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #
  2. # Copyright (C) 2010-2015 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:=ortp
  9. PKG_VERSION:=0.23.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SAVANNAH/linphone/ortp/sources
  13. PKG_MD5SUM:=fb833cc7a66ec1a0c1b75016130e7e6d
  14. PKG_LICENSE:=LGPL-2.1
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org>
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libortp
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Real-time Transport Protocol (RTP) library
  23. URL:=http://www.linphone.org/technical-corner/ortp/overview
  24. DEPENDS:= +libpthread +librt
  25. endef
  26. ifneq ($(CONFIG_avr32),)
  27. TARGET_CFLAGS += -fsigned-char
  28. endif
  29. CONFIGURE_ARGS += \
  30. --enable-shared \
  31. --enable-static \
  32. --disable-debug \
  33. --enable-ipv6 \
  34. --enable-perf \
  35. --disable-ssl-hmac \
  36. --disable-tests \
  37. --without-srtp \
  38. CONFIGURE_VARS += \
  39. ac_cv_header_srtp_srtp_h=no \
  40. ac_cv_lib_srtp_srtp_init=no \
  41. ac_cv_path_DOXYGEN= \
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include
  44. ( cd $(PKG_INSTALL_DIR); $(CP) \
  45. ./usr/include/ortp \
  46. $(1)/usr/include/ \
  47. )
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. ( cd $(PKG_INSTALL_DIR); $(CP) \
  50. ./usr/lib/libortp.{a,so*} \
  51. $(1)/usr/lib/ \
  52. )
  53. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  54. ( cd $(PKG_INSTALL_DIR); $(CP) \
  55. ./usr/lib/pkgconfig/ortp.pc \
  56. $(1)/usr/lib/pkgconfig/ \
  57. )
  58. endef
  59. define Package/libortp/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. ( cd $(PKG_INSTALL_DIR); $(CP) \
  62. ./usr/lib/libortp.so.* \
  63. $(1)/usr/lib/ \
  64. )
  65. endef
  66. $(eval $(call BuildPackage,libortp))