termux-packages/packages/graphviz/lib-gvpr-Makefile.am.patch

29 lines
835 B
Diff

--- ../lib-gvpr-Makefile.am.orig 2020-03-28 14:56:03.035919302 +0100
+++ ./lib/gvpr/Makefile.am 2020-03-28 15:32:59.954957670 +0100
@@ -3,6 +3,7 @@
pdfdir = $(pkgdatadir)/doc/pdf
pkgconfigdir = $(libdir)/pkgconfig
+HOSTCC ?= $(CC)
GVPR_VERSION="2:0:0"
@@ -21,7 +22,6 @@
-DDFLT_GVPRPATH="\".$(PATH_SEPARATOR)$(pkgdatadir)/gvpr\""
pkginclude_HEADERS = gvpr.h
-noinst_PROGRAMS = mkdefs
noinst_HEADERS = actions.h compile.h gprstate.h parse.h queue.h trieFA.h trie.c
noinst_LTLIBRARIES = libgvpr_C.la
lib_LTLIBRARIES = libgvpr.la
@@ -54,7 +54,8 @@
libgvpr_la_LDFLAGS += -export-symbols-regex gvpr
endif
-mkdefs_SOURCES = mkdefs.c
+mkdefs$(EXEEXT):
+ $(HOSTCC) $(srcdir)/mkdefs.c -o mkdefs$(EXEEXT)
gdefs.h: $(top_srcdir)/lib/gvpr/gprdata mkdefs$(EXEEXT)
./mkdefs$(EXEEXT) gdefs.h < $(top_srcdir)/lib/gvpr/gprdata