2010-12-17 13:31:44 +00:00
|
|
|
#
|
|
|
|
# Makefile
|
|
|
|
#
|
|
|
|
# Copyright (C) 2010 Alfred E. Heggestad
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=re
|
2011-05-24 08:47:22 +00:00
|
|
|
PKG_VERSION:=0.2.0
|
2010-12-17 13:31:44 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://www.creytiv.com/pub
|
2011-05-24 08:47:22 +00:00
|
|
|
PKG_MD5SUM:=0aa00762fbee7694b9e5844675f5c57d
|
2010-12-17 13:31:44 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libre
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2011-07-11 02:27:20 +00:00
|
|
|
DEPENDS:=+libopenssl +libpthread @BROKEN
|
2010-12-17 13:31:44 +00:00
|
|
|
TITLE:=Generic library for real-time communications with async IO support
|
|
|
|
URL:=http://www.creytiv.com/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libre/description
|
2010-12-17 20:41:15 +00:00
|
|
|
Generic library for real-time communications with async IO support.
|
2010-12-17 13:31:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
|
|
|
define Build/Compile
|
2010-12-17 20:41:15 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
HAVE_LIBRESOLV= \
|
|
|
|
CC="$(TARGET_CC)" \
|
|
|
|
EXTRA_CFLAGS="$(TARGET_CFLAGS) -DOPENWRT" \
|
|
|
|
EXTRA_LFLAGS="-lm" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
SYSROOT="$(TOOLCHAIN_DIR)" \
|
|
|
|
SYSROOT_ALT="$(STAGING_DIR)/usr" \
|
|
|
|
RELEASE=1 \
|
|
|
|
all install
|
2010-12-17 13:31:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2011-05-24 08:47:22 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/share/re
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/mk/re.mk $(1)/usr/share/re/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2010-12-17 20:41:15 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/re $(1)/usr/include/
|
2011-05-24 08:47:22 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2010-12-17 20:41:15 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.{a,so*} $(1)/usr/lib/
|
2010-12-17 13:31:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/UninstallDev
|
2010-12-17 20:41:15 +00:00
|
|
|
rm -rf \
|
2011-05-24 08:47:22 +00:00
|
|
|
$(STAGING_DIR)/usr/share/re \
|
2010-12-17 20:41:15 +00:00
|
|
|
$(STAGING_DIR)/usr/include/re \
|
|
|
|
$(STAGING_DIR)/usr/lib/libre.{a,so*}
|
2010-12-17 13:31:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libre/install
|
2010-12-17 20:41:15 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.so* $(1)/usr/lib/
|
2010-12-17 13:31:44 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libre))
|