You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2007-2010 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=liboil
  9. PKG_VERSION:=0.3.17
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://liboil.freedesktop.org/download/
  13. PKG_MD5SUM:=47dc734f82faeb2964d97771cfd2e701
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/liboil
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=simple functions optimized for various CPUs
  21. URL:=http://liboil.freedesktop.org/wiki/
  22. MAINTAINER:=W. Michael Petullo <mike@flyn.org>
  23. DEPENDS:=+librt
  24. endef
  25. define Package/liboil/description
  26. Liboil is a library of simple functions that are optimized for various CPUs.
  27. These functions are generally loops implementing simple algorithms, such as
  28. converting an array of N integers to floating-point numbers or multiplying
  29. and summing an array of N numbers. Such functions are candidates for significant
  30. optimization using various techniques, especially by using extended instructions
  31. provided by modern CPUs (Altivec, MMX, SSE, etc.).
  32. endef
  33. CONFIGURE_ARGS += \
  34. --enable-shared \
  35. --enable-static \
  36. TARGET_CFLAGS += $(FPIC)
  37. # XXX: VFP_CFLAGS is set to '-mfpu=vfp' on arm by configure, but that breaks
  38. # final linking stages, so override it until we find why
  39. MAKE_FLAGS += \
  40. VFP_CFLAGS="" \
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include
  43. $(CP) $(PKG_INSTALL_DIR)/usr/include/liboil-0.3/* $(1)/usr/include/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboil-0.3.{a,so*} $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/liboil-0.3.pc $(1)/usr/lib/pkgconfig/
  48. endef
  49. define Package/liboil/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liboil-0.3.so.* $(1)/usr/lib/
  52. endef
  53. $(eval $(call BuildPackage,liboil))