new packages - restund, baresip, re Open-Source VoIP project - Signed-Off-By: Alfred...
authorOutback Dingo <outbackdingo@gmail.com>
Fri, 17 Dec 2010 13:31:44 +0000 (13:31 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 29 Jan 2014 13:52:19 +0000 (13:52 +0000)
libs/re/Makefile [new file with mode: 0644]

diff --git a/libs/re/Makefile b/libs/re/Makefile
new file mode 100644 (file)
index 0000000..f614b7f
--- /dev/null
@@ -0,0 +1,64 @@
+#
+# Makefile
+#
+# Copyright (C) 2010 Alfred E. Heggestad
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=re
+PKG_VERSION:=0.1.0
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://www.creytiv.com/pub
+#PKG_MD5SUM:=734892c8ca5e7e835828048a1289a0cc
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libre
+  SECTION:=libs
+  CATEGORY:=Libraries
+  DEPENDS:=+libopenssl +libpthread
+  TITLE:=Generic library for real-time communications with async IO support
+  URL:=http://www.creytiv.com/
+endef
+
+define Package/libre/description
+       Generic library for real-time communications with async IO support.
+endef
+
+TARGET_CFLAGS += $(FPIC)
+
+define Build/Compile
+       $(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
+endef
+
+define Build/InstallDev
+       mkdir -p $(1)/usr/include
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/re $(1)/usr/include/
+       mkdir -p $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.{a,so*} $(1)/usr/lib/
+endef
+
+define Build/UninstallDev
+       rm -rf \
+               $(STAGING_DIR)/usr/include/re \
+               $(STAGING_DIR)/usr/lib/libre.{a,so*}
+endef
+
+define Package/libre/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libre.so* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libre))