buildroot/package/zerofree/zerofree.mk
Fabrice Fontaine e47c4fbcde package/zerofree: fix legal-info
Fix typo: ZEROFREE_LICENSE_FILE -> ZEROFREE_LICENSE_FILES
added by commit 98ecdd1d11

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-08-27 09:50:33 +02:00

29 lines
816 B
Makefile

################################################################################
#
# zerofree
#
################################################################################
ZEROFREE_VERSION = 1.1.1
ZEROFREE_SOURCE = zerofree-$(ZEROFREE_VERSION).tgz
ZEROFREE_SITE = https://frippery.org/uml
ZEROFREE_LICENSE = GPL-2.0
ZEROFREE_LICENSE_FILES = COPYING
ZEROFREE_DEPENDENCIES = e2fsprogs
# We use the same workaround as in https://bugs.gentoo.org/716136
# to build with musl.
ZEROFREE_CFLAGS = \
$(TARGET_CFLAGS) \
$(if $(BR2_TOOLCHAIN_USES_MUSL),-DHAVE_SYS_TYPES_H)
define ZEROFREE_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(ZEROFREE_CFLAGS)" -C $(@D)
endef
define ZEROFREE_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/zerofree $(TARGET_DIR)/usr/bin/zerofree
endef
$(eval $(generic-package))