[packages] remove libnotimpl, missing math functions are provided by uClibc since...
[openwrt/svn-archive/archive.git] / libs / liboil / Makefile
1 #
2 # Copyright (C) 2007-2009 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=liboil
11 PKG_VERSION:=0.3.15
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://liboil.freedesktop.org/download/
16 PKG_MD5SUM:=11dd39b1ca13ce2e0618d4df8303f137
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/liboil
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=simple functions optimized for various CPUs
26 URL:=http://liboil.freedesktop.org/wiki/
27 endef
28
29 define Package/liboil/description
30 Liboil is a library of simple functions that are optimized for various CPUs.
31 These functions are generally loops implementing simple algorithms, such as
32 converting an array of N integers to floating-point numbers or multiplying
33 and summing an array of N numbers. Such functions are candidates for significant
34 optimization using various techniques, especially by using extended instructions
35 provided by modern CPUs (Altivec, MMX, SSE, etc.).
36 endef
37
38 TARGET_CFLAGS += $(FPIC)
39
40 CONFIGURE_ARGS += \
41 --enable-shared \
42 --enable-static \
43
44 # XXX: VFP_CFLAGS is set to '-mfpu=vfp' on arm by configure, but that breaks
45 # final linking stages, so override it until we find why
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 VFP_CFLAGS="" \
50 all install
51 endef
52
53 define Build/InstallDev
54 $(INSTALL_DIR) $(1)/usr/include
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/liboil-0.3/* $(1)/usr/include/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboil-0.3.{a,so*} $(1)/usr/lib/
58 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/liboil-0.3.pc $(1)/usr/lib/pkgconfig/
60 endef
61
62 define Package/liboil/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboil-0.3.so.* $(1)/usr/lib/
65 endef
66
67 $(eval $(call BuildPackage,liboil))