[packages] remove libnotimpl, missing math functions are provided by uClibc since r10024

git-svn-id: svn://svn.openwrt.org/openwrt/packages@15454 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico
2009-04-27 21:04:45 +00:00
parent 6bc766bf59
commit 6edd53dbee
11 changed files with 9 additions and 206 deletions

View File

@ -1,48 +0,0 @@
#
# Copyright (C) 2006 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:=libnotimpl
PKG_VERSION:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/libnotimpl
include $(INCLUDE_DIR)/package.mk
define Package/libnotimpl
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Implements functions missing from uClibc
endef
ifeq ($(ARCH),x86_64)
FPIC:=-fPIC
endif
define cc
$(TARGET_CC) $(TARGET_CFLAGS) $(FPIC) -Wall -c src/$(1).c -o $(PKG_BUILD_DIR)/$(1).o
endef
define Build/Prepare
rm -rf $(PKG_BUILD_DIR)
mkdir -p $(PKG_BUILD_DIR)
endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile
$(call cc,math)
$(TARGET_CROSS)ar rc $(PKG_BUILD_DIR)/libnotimpl.a $(PKG_BUILD_DIR)/*.o
endef
define Build/InstallDev
mkdir -p $(STAGING_DIR)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libnotimpl.a $(STAGING_DIR)/usr/lib/
endef
$(eval $(call BuildPackage,libnotimpl))

View File

@ -1,128 +0,0 @@
/* vi: set sw=4 ts=4: */
#include <math.h>
/* cosf for uClibc
*
* wrapper for cos(x)
*/
#ifdef __STDC__
float cosf(float x)
#else
float cosf(x)
float x;
#endif
{
return (float) cos( (double)x );
}
/* sinf for uClibc
*
* wrapper for sin(x)
*/
#ifdef __STDC__
float sinf(float x)
#else
float sinf(x)
float x;
#endif
{
return (float) sin( (double)x );
}
/* ceilf for uClibc
*
* wrapper for ceil(x)
*/
#ifdef __STDC__
float ceilf(float x)
#else
float ceilf(x)
float x;
#endif
{
return (float) ceil( (double)x );
}
/* rintf for uClibc
*
* wrapper for rint(x)
*/
#ifdef __STDC__
float rintf(float x)
#else
float rintf(x)
float x;
#endif
{
return (float) rint( (double)x );
}
/* logf for uClibc
*
* wrapper for logf(x)
*/
#ifdef __STDC__
float logf(float x)
#else
float logf(x)
float x;
#endif
{
return (float) logf( (double)x );
}
/* expf for uClibc
*
* wrapper for expf(x)
*/
#ifdef __STDC__
float expf(float x)
#else
float expf(x)
float x;
#endif
{
return (float) expf( (double)x );
}
/* lround for uClibc
*
* wrapper for lround(x)
*/
#ifdef __STDC__
long lround(double x)
#else
long lround(x)
double x;
#endif
{
return (long) ((x - ((long)x) >= 0.5f) ? (((long)x) + 1) : ((long)x));
}
/* lround for uClibc
*
* wrapper for roundf(x)
*/
#ifdef __STDC__
float roundf(float x)
#else
float roundf(x)
float x;
#endif
{
return (float) ((x - ((long)x) >= 0.5f) ? (((long)x) + 1) : ((long)x));
}

View File

@ -15,7 +15,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://liboil.freedesktop.org/download/
PKG_MD5SUM:=11dd39b1ca13ce2e0618d4df8303f137
PKG_BUILD_DEPENDS:=libnotimpl
PKG_FIXUP = libtool
include $(INCLUDE_DIR)/package.mk

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2006-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=postgresql
PKG_VERSION:=8.3.3
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=\
@ -20,8 +20,6 @@ PKG_SOURCE_URL:=\
ftp://ftp-archives.postgresql.org/pub/source/v$(PKG_VERSION)
PKG_MD5SUM:=0ae4bd9620e84d3e08dcf923808d14d0
PKG_BUILD_DEPENDS:=libnotimpl
include $(INCLUDE_DIR)/package.mk
define Package/libpq
@ -114,7 +112,6 @@ define Build/Configure
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="$$$$CPPFLAGS $(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
LIBS="-lnotimpl" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \

View File

@ -1,5 +1,5 @@
#
# Copyright (C) 2006 OpenWrt.org
# Copyright (C) 2006-2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@ -15,8 +15,6 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://downloads.us.xiph.org/releases/speex/
PKG_MD5SUM:=b47396952c5fdd54b6468316c3bd339f
PKG_BUILD_DEPENDS:=libnotimpl
include $(INCLUDE_DIR)/package.mk
define Package/libspeex
@ -59,8 +57,6 @@ define Package/libspeexdsp/description
This package contains the shared dsp library, needed by other programs.
endef
TARGET_LDFLAGS:=$(TARGET_LDFLAGS) -lnotimpl
define Build/Configure
$(call Build/Configure/Default, \
--enable-shared \