source: packages/libs/ortp/Makefile @ 22231

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

[packages] ortp: fix build failure on avr32

File size: 1.6 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
33ifneq ($(CONFIG_avr32),)
34  TARGET_CFLAGS += -fsigned-char
35endif
36
37CONFIGURE_ARGS += \
38        --disable-debug \
39        --enable-ipv6 \
40        --enable-perf \
41        --disable-ssl-hmac \
42        --disable-so-reuseaddr \
43        --without-srtp \
44
45CONFIGURE_VARS += \
46        ac_cv_header_srtp_srtp_h=no \
47        ac_cv_lib_srtp_srtp_init=no \
48
49define Build/InstallDev
50        $(INSTALL_DIR) $(1)/usr/include
51        ( cd $(PKG_INSTALL_DIR); $(CP) \
52                ./usr/include/ortp \
53                $(1)/usr/include/ \
54        )
55        $(INSTALL_DIR) $(1)/usr/lib
56        ( cd $(PKG_INSTALL_DIR); $(CP) \
57                ./usr/lib/libortp.{a,so*} \
58                $(1)/usr/lib/ \
59        )
60        $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
61        ( cd $(PKG_INSTALL_DIR); $(CP) \
62                ./usr/lib/pkgconfig/ortp.pc \
63                $(1)/usr/lib/pkgconfig/ \
64        )
65endef
66
67define Package/libortp/install
68        $(INSTALL_DIR) $(1)/usr/lib
69        ( cd $(PKG_INSTALL_DIR); $(CP) \
70                ./usr/lib/libortp.so.* \
71                $(1)/usr/lib/ \
72        )
73endef
74
75$(eval $(call BuildPackage,libortp))
Note: See TracBrowser for help on using the repository browser.