2 # Copyright (C) 2010-2014 OpenWrt.org
3 # Copyright (C) 2010 Alfred E. Heggestad
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.creytiv.com/pub
17 PKG_MD5SUM:=2966ad3db2ca34ea865825533e7b7d55
19 include $(INCLUDE_DIR)/package.mk
25 DEPENDS:=+libopenssl +libpthread
26 TITLE:=Generic library for real-time communications with async IO support
27 URL:=http://www.creytiv.com/
30 TARGET_CFLAGS += $(FPIC)
32 ifneq ($(CONFIG_USE_EGLIBC),)
33 TARGET_CFLAGS += -D_GNU_SOURCE
37 $(MAKE) -C $(PKG_BUILD_DIR) \
40 EXTRA_CFLAGS="$(TARGET_CFLAGS) -DOPENWRT" \
42 DESTDIR="$(PKG_INSTALL_DIR)" \
43 SYSROOT="$$$$($(FIND) $(TOOLCHAIN_DIR) -path '*/include/pthread.h' | sed -ne '1s#/include/pthread.h##p')" \
44 SYSROOT_ALT="$(STAGING_DIR)/usr" \
46 CROSS_COMPILE="$(TARGET_CROSS)" \
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/share/re
53 $(CP) $(PKG_BUILD_DIR)/mk/re.mk $(1)/usr/share/re/
54 $(INSTALL_DIR) $(1)/usr/include
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/re $(1)/usr/include/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.{a,so} $(1)/usr/lib/
60 define Package/libre/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.so $(1)/usr/lib/
65 $(eval $(call BuildPackage,libre))