1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-26 17:47:55 +02:00
openwrt-packages/utils/dosfstools/Makefile
Bjørn Mork 4160ba8725 dosfstools: fix AM_ICONV triggered build error
Fix this build error:

 gcc -Wall -Wextra -Wno-sign-compare -Wno-missing-field-initializers \
  -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -O2 \
  -I/usr/local/src/openwrt/staging_dir/host/include \
  -L/usr/local/src/openwrt/staging_dir/host/lib \
  -o fsck.fat check.o file.o fsck.fat.o lfn.o boot.o common.o fat.o io.o \
  charconv.o @LIBICONV@
 gcc: error: LIBICONV@: No such file or directory
 make[4]: *** [Makefile:449: fsck.fat] Error 1

Suggested-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2021-10-23 11:48:41 -07:00

53 lines
1.5 KiB
Makefile

#
# Copyright (C) 2006-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=dosfstools
PKG_VERSION:=4.2
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://github.com/dosfstools/dosfstools/releases/download/v$(PKG_VERSION)/ \
http://fossies.org/linux/misc
PKG_HASH:=ba7c716ff9b8208a3bba5094a77584a7dc814141de09ab4ce1ae9b84bbcd7844
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:dosfstools_project:dosfstools
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
CONFIGURE_ARGS += \
--without-udev
define Package/dosfstools
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=Filesystem
DEPENDS:=$(ICONV_DEPENDS)
TITLE:=Utilities for making and checking MS-DOS FAT filesystems
URL:=https://github.com/dosfstools
endef
define Package/dosfstools/description
The dosfstools package includes the mkfs.fat and fsck.fat utilities, which respectively make and check MS-DOS FAT filesystems.
endef
define Package/dosfstools/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fatlabel $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/fsck.fat $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mkfs.fat $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,dosfstools))