27 lines
613 B
Makefile
27 lines
613 B
Makefile
include ports/e2fsprogs.inc
|
|
|
|
#
|
|
# Check for tools
|
|
#
|
|
$(call check_tool,git)
|
|
|
|
#
|
|
# Interface to top-level prepare Makefile
|
|
#
|
|
PORTS += $(E2FSPROGS)
|
|
|
|
prepare-e2fsprogs: $(CONTRIB_DIR)/$(E2FSPROGS)
|
|
|
|
#
|
|
# Port-specific local rules
|
|
#
|
|
$(CONTRIB_DIR)/$(E2FSPROGS):
|
|
$(VERBOSE)git clone $(E2FSPROGS_URL) $(CONTRIB_DIR)/$(E2FSPROGS) && \
|
|
cd $(CONTRIB_DIR)/$(E2FSPROGS) && \
|
|
git checkout -b $(E2FSPROGS_BRANCH) $(E2FSPROGS_BRANCH)
|
|
$(VERBOSE)for i in src/noux-pkg/e2fsprogs/patches/*.patch; do \
|
|
patch -d $(CONTRIB_DIR)/$(E2FSPROGS) -N -p1 < $$i; done || true
|
|
|
|
clean-e2fsprogs:
|
|
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(E2FSPROGS)
|