source: packages/libs/ortp/Makefile @ 21815

Last change on this file since 21815 was 21815, checked in by nico, 6 years ago

[packages] add ortp - a Real-time Transport Protocol (RTP) library

File size: 1.5 KB
Line 
1#
2# Copyright (C) 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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=ortp
11PKG_VERSION:=0.16.3
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:= \
16        http://download.savannah.gnu.org/releases-noredirect/linphone/ortp/sources/ \
17        http://www.very-clever.com/download/nongnu/linphone/ortp/sources/
18PKG_MD5SUM:=2b0281600cb958d1c94e318a86b62fe3
19
20PKG_FIXUP:=libtool
21PKG_INSTALL:=1
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/libortp
26  SECTION:=libs
27  CATEGORY:=Libraries
28  TITLE:=Real-time Transport Protocol (RTP) library
29  URL:=http://www.linphone.org/index.php/eng/code_review/ortp
30  DEPENDS:= +libpthread
31endef
32
33CONFIGURE_ARGS += \
34        --disable-debug \
35        --enable-ipv6 \
36        --enable-perf \
37        --disable-ssl-hmac \
38        --disable-so-reuseaddr \
39        --without-srtp \
40
41CONFIGURE_VARS += \
42        ac_cv_header_srtp_srtp_h=no \
43        ac_cv_lib_srtp_srtp_init=no \
44
45define Build/InstallDev
46        $(INSTALL_DIR) $(1)/usr/include
47        ( cd $(PKG_INSTALL_DIR); $(CP) \
48                ./usr/include/ortp \
49                $(1)/usr/include/ \
50        )
51        $(INSTALL_DIR) $(1)/usr/lib
52        ( cd $(PKG_INSTALL_DIR); $(CP) \
53                ./usr/lib/libortp.{a,so*} \
54                $(1)/usr/lib/ \
55        )
56        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
57        ( cd $(PKG_INSTALL_DIR); $(CP) \
58                ./usr/lib/pkgconfig/ortp.pc \
59                $(1)/usr/lib/pkgconfig/ \
60        )
61endef
62
63define Package/libortp/install
64        $(INSTALL_DIR) $(1)/usr/lib
65        ( cd $(PKG_INSTALL_DIR); $(CP) \
66                ./usr/lib/libortp.so.* \
67                $(1)/usr/lib/ \
68        )
69endef
70
71$(eval $(call BuildPackage,libortp))
Note: See TracBrowser for help on using the repository browser.