src/world/e2fsprogs/Makefile

36 lines
1.1 KiB
Makefile

# Makefile - hhl - /usr/src/world/e2fsprogs
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
#
distname = e2fsprogs
include world.mk
export CFLAGS = --sysroot=$(DESTDIR)
config_opts += --host=$(tgt)
config_opts += --bindir=/bin
config_opts += --with-root-prefix=""
config_opts += --enable-elf-shlibs
config_opts += --disable-libblkid
config_opts += --disable-libuuid
config_opts += --disable-uuidd
config_opts += --disable-fsck
# e2fsprogs needlessly complicates installing directories before
# installing it's files, and it manages to break portability in relation
# to anything other than GNU coreutils. Install the needed directories
# ourselves before the install target.
installdirs += ${sharedir}/et
installdirs += ${includedir}/et
installdirs += ${sharedir}/ss
installdirs += ${includedir}/ss
installdirs += ${includedir}/e2p
installdirs += ${includedir}/ext2fs
define post_install
gunzip ${infodir}/libext2fs.info.gz
install-info --dir-file=${infodir}/dir ${infodir}/libext2fs.info
endef
install: | ${installdirs}
include targets.mk