Skip to content

Commit

Permalink
Add rule for page2img
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Mar 21, 2020
1 parent 9beaeb5 commit 76f8e69
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,15 @@ $(BIN)/ocrd: core
multirule = $(patsubst $(BIN)/%,\%/%,$(1))


ifneq ($(findstring format-converters, $(OCRD_MODULES)),)
OCRD_EXECUTABLES += $(PAGE2IMG)
PAGE2IMG := $(BIN)/page2img
$(PAGE2IMG): format-converters/page2img.py
$(PIP) install validators
echo "#!$(BIN)/python3" | cat - $< >$@
chmod +x $@
endif

ifneq ($(findstring opencv-python, $(OCRD_MODULES)),)
CUSTOM_DEPS += cmake gcc g++
# libavcodec-dev libavformat-dev libswscale-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev
Expand Down

0 comments on commit 76f8e69

Please sign in to comment.