[packages] libsrtp:
[openwrt/svn-archive/archive.git] / libs / libsrtp / Makefile
1 #
2 # Copyright (C) 2011-2012 OpenWrt.org
3 # Copyright (C) 2011 Victor Seva <linuxmaniac@torreviejawireless.org>
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libsrtp
11 PKG_VERSION:=1.4.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=srtp-$(PKG_VERSION).tgz
15 PKG_SOURCE_URL:=@SF/srtp
16 PKG_MD5SUM:=9b449edb011c934ca97009e7e0566d22
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/srtp
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_CFLAGS += $(FPIC)
24 CONFIGURE_ARGS += --disable-stdout --enable-syslog
25
26 define Package/libsrtp
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=Secure Real-time Transport Protocol (SRTP) library
30 URL:=http://sourceforge.net/projects/srtp
31 MAINTAINER:=Victor Seva <linuxmaniac@torreviejawireless.com>
32 endef
33
34 define Package/libsrtp/description
35 Open-source implementation of the Secure Real-time Transport
36 Protocol (SRTP) originally authored by Cisco Systems, Inc.
37 It is available under a BSD-style license.
38 endef
39
40 define Build/InstallDev
41 $(INSTALL_DIR) $(1)/usr/include
42 $(CP) $(PKG_INSTALL_DIR)/usr/include/srtp $(1)/usr/include/
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp.{a,so*} $(1)/usr/lib/
45 endef
46
47
48 define Package/libsrtp/install
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp.so.* \
51 $(1)/usr/lib/
52 endef
53
54 $(eval $(call BuildPackage,libsrtp))