c8f82da1a8
Hi, this patch upgrades the following packages to v0.4.1: baresip v0.4.1 (Portable and modular SIP User-Agent with audio and video support) restund v0.4.1 (Modular STUN/TURN server) libre v0.4.1 (Generic library for real-time communications with async IO support) librem v0.4.1 (Audio and video processing media library) detailed changes can be found in <package>/docs/ChangeLog (See http://www.creytiv.com/) Please review and apply if OK. Signed-Off-By: Alfred E. Heggestad <aeh@db.org> SVN-Revision: 32442
63 lines
1.6 KiB
Makefile
63 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2010-2011 OpenWrt.org
|
|
# Copyright (C) 2010 Alfred E. Heggestad
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=rem
|
|
PKG_VERSION:=0.4.1
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=http://www.creytiv.com/pub
|
|
PKG_MD5SUM:=bfac8837974e911bd4d4017a8f1ce39b
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/librem
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
DEPENDS:=+libre +libpthread
|
|
TITLE:=Audio and video processing media library
|
|
URL:=http://www.creytiv.com/
|
|
endef
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
LIBRE_MK=$(STAGING_DIR)/usr/share/re/re.mk \
|
|
LIBRE_INC=$(STAGING_DIR)/usr/include/re \
|
|
LIBRE_SO=$(STAGING_DIR)/usr/lib \
|
|
CC="$(TARGET_CC)" \
|
|
EXTRA_CFLAGS="$(TARGET_CFLAGS) -DOPENWRT" \
|
|
EXTRA_LFLAGS="-lm" \
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
SYSROOT="$$$$($(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s#/include/pthread.h##p')" \
|
|
SYSROOT_ALT="$(STAGING_DIR)/usr" \
|
|
RELEASE=1 \
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
OS=linux \
|
|
all install
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/rem $(1)/usr/include/
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librem.{a,so} $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/librem/install
|
|
rm -f $(BUILD_DIR)/$(PKG_NAME)
|
|
ln -sf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librem.so $(1)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,librem))
|