From e5f0c423f64562f2d5ef256a3ce1ed8bca022ea4 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Thu, 31 Dec 2009 14:51:09 +0000 Subject: [PATCH] [package] add radlib (#5773) SVN-Revision: 18981 --- libs/radlib/Makefile | 44 ++++++++++++++++++++ libs/radlib/patches/001-cross_link_bug.patch | 44 ++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 libs/radlib/Makefile create mode 100644 libs/radlib/patches/001-cross_link_bug.patch diff --git a/libs/radlib/Makefile b/libs/radlib/Makefile new file mode 100644 index 0000000000..ce38228b42 --- /dev/null +++ b/libs/radlib/Makefile @@ -0,0 +1,44 @@ +# Copyright (C) 2006-2009 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=radlib +PKG_VERSION:=2.8.5 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@SF/radlib +PKG_MD5SUM:=82ab0c702e55a860b69ad76e2aac748f + +ifeq ($(CONFIG_EXTERNAL_KERNEL_TREE),) +PATCH_DIR:= +else +PATCH_DIR:=./patches +endif + +include $(INCLUDE_DIR)/package.mk + +define Package/radlib + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Rapid Application Development Library +endef + +define Package/radlib/description + radlib is a rapid application development library for unix multi-process applications +endef + +CONFIGURE_ARGS += \ + --prefix="$(TOOLCHAIN_DIR)/usr" + +define Package/radlib/install + $(INSTALL_DIR) $(1)/usr/lib + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/.libs/librad.so $(1)/usr/lib/ +endef + + +$(eval $(call BuildPackage,radlib)) diff --git a/libs/radlib/patches/001-cross_link_bug.patch b/libs/radlib/patches/001-cross_link_bug.patch new file mode 100644 index 0000000000..00dc1c46bb --- /dev/null +++ b/libs/radlib/patches/001-cross_link_bug.patch @@ -0,0 +1,44 @@ +diff -urN radlib-2.8.4/debug/Makefile.am radlib-2.8.42/debug/Makefile.am +--- radlib-2.8.4/debug/Makefile.am 2009-02-05 06:10:01.000000000 +0100 ++++ radlib-2.8.42/debug/Makefile.am 2009-10-04 16:40:08.000000000 +0200 +@@ -43,5 +43,5 @@ + endif + + if CROSSCOMPILE +-raddebug_LDFLAGS += $(prefix)/lib/crt1.o $(prefix)/lib/crti.o $(prefix)/lib/crtn.o ++#raddebug_LDFLAGS += $(prefix)/lib/crt1.o $(prefix)/lib/crti.o $(prefix)/lib/crtn.o + endif +diff -urN radlib-2.8.4/debug/Makefile.in radlib-2.8.42/debug/Makefile.in +--- radlib-2.8.4/debug/Makefile.in 2009-08-15 16:03:37.000000000 +0200 ++++ radlib-2.8.42/debug/Makefile.in 2009-10-04 16:40:17.000000000 +0200 +@@ -43,7 +43,7 @@ + @MYSQL_FALSE@@PGRESQL_TRUE@am__append_6 = -I$(prefix)/pgsql/include + @SQLITE_TRUE@am__append_7 = -L/usr/lib -L/usr/local/lib + @SQLITE_TRUE@am__append_8 = -I/usr/include -I/usr/local/include +-@CROSSCOMPILE_TRUE@am__append_9 = $(prefix)/lib/crt1.o $(prefix)/lib/crti.o $(prefix)/lib/crtn.o ++#@CROSSCOMPILE_TRUE@am__append_9 = $(prefix)/lib/crt1.o $(prefix)/lib/crti.o $(prefix)/lib/crtn.o + subdir = debug + DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +diff -urN radlib-2.8.4/msgRouter/Makefile.am radlib-2.8.42/msgRouter/Makefile.am +--- radlib-2.8.4/msgRouter/Makefile.am 2009-02-05 06:10:01.000000000 +0100 ++++ radlib-2.8.42/msgRouter/Makefile.am 2009-10-04 16:31:24.000000000 +0200 +@@ -44,5 +44,5 @@ + endif + + if CROSSCOMPILE +-radmrouted_LDFLAGS += $(prefix)/lib/crt1.o $(prefix)/lib/crti.o $(prefix)/lib/crtn.o ++#radmrouted_LDFLAGS += $(prefix)/lib/crt1.o $(prefix)/lib/crti.o $(prefix)/lib/crtn.o + endif +diff -urN radlib-2.8.4/msgRouter/Makefile.in radlib-2.8.42/msgRouter/Makefile.in +--- radlib-2.8.4/msgRouter/Makefile.in 2009-08-15 16:03:37.000000000 +0200 ++++ radlib-2.8.42/msgRouter/Makefile.in 2009-10-04 16:36:01.000000000 +0200 +@@ -43,7 +43,7 @@ + @MYSQL_FALSE@@PGRESQL_TRUE@am__append_6 = -I$(prefix)/pgsql/include + @SQLITE_TRUE@am__append_7 = -L/usr/lib -L/usr/local/lib + @SQLITE_TRUE@am__append_8 = -I/usr/include -I/usr/local/include +-@CROSSCOMPILE_TRUE@am__append_9 = $(prefix)/lib/crt1.o $(prefix)/lib/crti.o $(prefix)/lib/crtn.o ++#@CROSSCOMPILE_TRUE@am__append_9 = $(prefix)/lib/crt1.o $(prefix)/lib/crti.o $(prefix)/lib/crtn.o + subdir = msgRouter + DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -- 2.30.2