22 lines
538 B
Makefile
22 lines
538 B
Makefile
# Makefile - hhl - /usr/src/world/findutils
|
|
# Copyright 2020 Nathan Fisher <nfisher.sr@gmail.com>
|
|
#
|
|
distname = findutils
|
|
include world.mk
|
|
|
|
export CFLAGS = --sysroot=$(DESTDIR)
|
|
config_opts += --host=$(tgt)
|
|
config_opts += --localstatedir=/var/lib/locate
|
|
|
|
ifeq ($(filter armv7l i486 i586 i686 i786, $(arch)), $(arch))
|
|
export TIME_T_32_BIT_OK = yes
|
|
endif
|
|
|
|
define post_install
|
|
sed -i 's|find:=$${BINDIR}|find:=/bin|' $(bindir)/updatedb
|
|
mv $(bindir)/find $(DESTDIR)/bin
|
|
ln -s ../../bin/find $(bindir)/find
|
|
endef
|
|
|
|
include targets.mk
|