diff options
Diffstat (limited to 'libs/libowfat/Makefile')
-rw-r--r-- | libs/libowfat/Makefile | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/libs/libowfat/Makefile b/libs/libowfat/Makefile index 01bd25a1f..99eba1c25 100644 --- a/libs/libowfat/Makefile +++ b/libs/libowfat/Makefile @@ -1,26 +1,24 @@ -# -# Copyright (C) 2010-2014 OpenWrt.org -# # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. # include $(TOPDIR)/rules.mk -LOWFAT_VERSION=0.30 - PKG_NAME:=libowfat -PKG_VERSION:=$(LOWFAT_VERSION) +PKG_VERSION:=0.31 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=http://www.fefe.de/libowfat -PKG_MD5SUM:=f0119532ea834ce9e80afe49d7d85512 +PKG_HASH:=d1e4ac1cfccbb7dc51d77d96398e6302d229ba7538158826c84cb4254c7e8a12 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org> PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILES:=COPYING +PKG_BUILD_DEPENDS += libowfat/host + include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/host-build.mk # set to 1 to enable debugging DEBUG= @@ -39,7 +37,13 @@ TARGET_CFLAGS += $(FPIC) LOWFAT_MAKEOPTS = $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include" \ DEBUG="$(DEBUG)" \ - VERSION="$(LOWFAT_VERSION)" \ + VERSION="$(PKG_VERSION)" \ + OS="Linux" + +LOWFAT_HOST_MAKEOPTS = $(HOST_CONFIGURE_OPTS) \ + CFLAGS="$(HOST_CFLAGS) -I$(HOST_BUILD_DIR) -I$(STAGING_DIR_HOSTPKG)/include" \ + DEBUG="$(DEBUG)" \ + VERSION="$(PKG_VERSION)" \ OS="Linux" # work around a nasty gcc bug @@ -51,6 +55,15 @@ define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) $(LOWFAT_MAKEOPTS) endef +define Host/Compile + $(MAKE) -C $(HOST_BUILD_DIR) $(LOWFAT_HOST_MAKEOPTS) ent +endef + +define Host/Install + $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin + $(CP) $(HOST_BUILD_DIR)/ent $(STAGING_DIR_HOSTPKG)/bin/libowfat-ent +endef + define Build/InstallDev mkdir -p $(1)/usr/include/libowfat $(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/libowfat @@ -58,4 +71,5 @@ define Build/InstallDev $(CP) $(PKG_BUILD_DIR)/*.a $(1)/usr/lib endef +$(eval $(call HostBuild)) $(eval $(call BuildPackage,libowfat)) |