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.

59 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2010-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. LOWFAT_VERSION=0.28
  9. PKG_NAME:=libowfat
  10. PKG_VERSION:=$(LOWFAT_VERSION)
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=http://dl.fefe.de
  14. PKG_MD5SUM:=6bbee9a86506419657d87123b7a6f2c1
  15. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  16. include $(INCLUDE_DIR)/package.mk
  17. # set to 1 to enable debugging
  18. DEBUG=
  19. define Package/libowfat
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=reimplemented libdjb under GPL
  23. URL:=http://www.fefe.de/libowfat/
  24. endef
  25. define Build/Configure
  26. endef
  27. TARGET_CFLAGS += $(FPIC)
  28. LOWFAT_MAKEOPTS = $(TARGET_CONFIGURE_OPTS) \
  29. CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include" \
  30. DEBUG="$(DEBUG)" \
  31. VERSION="$(LOWFAT_VERSION)" \
  32. OS="Linux"
  33. # work around a nasty gcc bug
  34. ifneq ($(CONFIG_GCC_VERSION_4_2_4),)
  35. LOWFAT_MAKEOPTS += WOPTS=""
  36. endif
  37. define Build/Compile
  38. $(MAKE) -C $(PKG_BUILD_DIR) $(LOWFAT_MAKEOPTS)
  39. endef
  40. define Build/InstallDev
  41. mkdir -p $(1)/usr/include/libowfat
  42. $(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/libowfat
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_BUILD_DIR)/*.a $(1)/usr/lib
  45. endef
  46. $(eval $(call BuildPackage,libowfat))