2007-11-11 20:01:52 +00:00
|
|
|
#
|
2009-01-11 17:25:52 +00:00
|
|
|
# Copyright (C) 2007-2009 OpenWrt.org
|
2007-11-11 20:01:52 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=liboil
|
2008-08-06 20:15:02 +00:00
|
|
|
PKG_VERSION:=0.3.15
|
|
|
|
PKG_RELEASE:=1
|
2007-11-11 20:01:52 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://liboil.freedesktop.org/download/
|
2008-08-06 20:15:02 +00:00
|
|
|
PKG_MD5SUM:=11dd39b1ca13ce2e0618d4df8303f137
|
2007-11-11 20:01:52 +00:00
|
|
|
|
2007-12-27 02:12:04 +00:00
|
|
|
PKG_FIXUP = libtool
|
|
|
|
|
2007-11-11 20:01:52 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/liboil
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=simple functions optimized for various CPUs
|
|
|
|
URL:=http://liboil.freedesktop.org/wiki/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/liboil/description
|
|
|
|
Liboil is a library of simple functions that are optimized for various CPUs.
|
|
|
|
These functions are generally loops implementing simple algorithms, such as
|
|
|
|
converting an array of N integers to floating-point numbers or multiplying
|
|
|
|
and summing an array of N numbers. Such functions are candidates for significant
|
|
|
|
optimization using various techniques, especially by using extended instructions
|
|
|
|
provided by modern CPUs (Altivec, MMX, SSE, etc.).
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-11-11 20:01:52 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
|
2009-01-11 17:25:52 +00:00
|
|
|
# XXX: VFP_CFLAGS is set to '-mfpu=vfp' on arm by configure, but that breaks
|
|
|
|
# final linking stages, so override it until we find why
|
2007-11-11 20:01:52 +00:00
|
|
|
define Build/Compile
|
2009-01-11 17:25:52 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
VFP_CFLAGS="" \
|
|
|
|
all install
|
2007-11-11 20:01:52 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2008-04-21 21:58:12 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2008-06-03 20:37:12 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/liboil-0.3/* $(1)/usr/include/
|
2008-04-21 21:58:12 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-11-11 20:01:52 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liboil-0.3.{a,so*} $(1)/usr/lib/
|
2008-04-21 21:58:12 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/liboil-0.3.pc $(1)/usr/lib/pkgconfig/
|
2007-11-11 20:01:52 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/liboil/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2008-04-21 21:58:12 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/liboil-0.3.so.* $(1)/usr/lib/
|
2007-11-11 20:01:52 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,liboil))
|