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.

70 lines
2.1 KiB

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