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