termux-packages/packages/mupdf/Makefile.patch

55 lines
1.8 KiB
Diff
Raw Normal View History

2022-01-22 09:13:38 +01:00
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,7 @@
2022-01-18 08:51:22 +01:00
QUIET_CXX = @ echo " CXX $@" ;
QUIET_GEN = @ echo " GEN $@" ;
QUIET_LINK = @ echo " LINK $@" ;
+ QUIET_LINK_FOR_BUILD = @ echo " LINK_FOR_BUILD $@" ;
QUIET_RM = @ echo " RM $@" ;
QUIET_TAGS = @ echo " TAGS $@" ;
QUIET_WINDRES = @ echo " WINDRES $@" ;
2022-01-22 09:13:38 +01:00
@@ -61,6 +62,7 @@
2022-01-18 08:51:22 +01:00
RANLIB_CMD = $(QUIET_RANLIB) $(RANLIB) $@
endif
LINK_CMD = $(QUIET_LINK) $(MKTGTDIR) ; $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
+LINK_FOR_BUILD_CMD = $(QUIET_LINK_FOR_BUILD) $(MKTGTDIR) ; $(CC_FOR_BUILD) -o $@ $^
2022-01-22 09:13:38 +01:00
TAGS_CMD = $(QUIET_TAGS) ctags -R --c-kinds=+p --exclude=platform/python --exclude=platform/c++
WINDRES_CMD = $(QUIET_WINDRES) $(MKTGTDIR) ; $(WINDRES) $< $@
OBJCOPY_CMD = $(QUIET_OBJCOPY) $(MKTGTDIR) ; $(LD) -r -b binary -z noexecstack -o $@ $<
2022-01-22 09:13:38 +01:00
@@ -82,7 +84,7 @@
2022-01-18 08:51:22 +01:00
$(RANLIB_CMD)
$(OUT)/%.exe: %.c
- $(LINK_CMD)
+ $(LINK_FOR_BUILD_CMD)
$(OUT)/%.$(SO):
$(LINK_CMD) $(LIB_LDFLAGS) $(THIRD_LIBS) $(LIBCRYPTO_LIBS)
2022-01-22 09:13:38 +01:00
@@ -362,7 +364,7 @@
2020-01-01 19:41:12 +01:00
$(OUT)/example: docs/examples/example.c $(MUPDF_LIB) $(THIRD_LIB)
$(LINK_CMD) $(CFLAGS) $(THIRD_LIBS)
$(OUT)/multi-threaded: docs/examples/multi-threaded.c $(MUPDF_LIB) $(THIRD_LIB)
- $(LINK_CMD) $(CFLAGS) $(THIRD_LIBS) -lpthread
+ $(LINK_CMD) $(CFLAGS) $(THIRD_LIBS)
# --- Update version string header ---
2022-01-22 09:13:38 +01:00
@@ -396,7 +398,7 @@
2020-01-01 19:41:12 +01:00
tools: $(TOOL_APPS)
apps: $(TOOL_APPS) $(VIEW_APPS)
-install: libs apps
+install: libs tools
install -d $(DESTDIR)$(incdir)/mupdf
install -d $(DESTDIR)$(incdir)/mupdf/fitz
install -d $(DESTDIR)$(incdir)/mupdf/pdf
2022-01-22 09:13:38 +01:00
@@ -410,7 +412,7 @@
endif
2020-01-01 19:41:12 +01:00
install -d $(DESTDIR)$(bindir)
2022-01-22 09:13:38 +01:00
- install -m 755 $(LIBS_TO_INSTALL_IN_BIN) $(TOOL_APPS) $(VIEW_APPS) $(DESTDIR)$(bindir)
+ install -m 755 $(LIBS_TO_INSTALL_IN_BIN) $(TOOL_APPS) $(DESTDIR)$(bindir)
2020-01-01 19:41:12 +01:00
install -d $(DESTDIR)$(mandir)/man1
install -m 644 docs/man/*.1 $(DESTDIR)$(mandir)/man1