summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2017-10-28 02:47:21 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2017-10-28 02:47:21 +0000
commit96ca510ede56cd4f6914eb9f6b6cd3aa47d34774 (patch)
tree56c6c742766b5a1794a3fec7d7bbc226851fd614
parentx11/mate-applets: fix build on armv6 (diff)
Fix building on 12-current.
-rw-r--r--devel/nsgenbind/files/patch-src_Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/devel/nsgenbind/files/patch-src_Makefile b/devel/nsgenbind/files/patch-src_Makefile
new file mode 100644
index 000000000000..0a6364cf2e31
--- /dev/null
+++ b/devel/nsgenbind/files/patch-src_Makefile
@@ -0,0 +1,37 @@
+--- src/Makefile.orig 2017-10-28 02:13:25 UTC
++++ src/Makefile
+@@ -1,17 +1,17 @@
+-CFLAGS := $(CFLAGS) -I$(BUILDDIR) -Isrc/ -g -DYYENABLE_NLS=0
++CFLAGS := $(CFLAGS) -Isrc/ -g -DYYENABLE_NLS=0
+
+ # Sources in this directory
+ DIR_SOURCES := nsgenbind.c utils.c webidl-ast.c nsgenbind-ast.c ir.c \
+ duk-libdom.c duk-libdom-interface.c duk-libdom-dictionary.c \
+ duk-libdom-common.c duk-libdom-generated.c
+
+-SOURCES := $(SOURCES) $(BUILDDIR)/nsgenbind-parser.c $(BUILDDIR)/nsgenbind-lexer.c $(BUILDDIR)/webidl-parser.c $(BUILDDIR)/webidl-lexer.c
++SOURCES := $(SOURCES) src/nsgenbind-parser.c src/nsgenbind-lexer.c src/webidl-parser.c src/webidl-lexer.c
+
+-$(BUILDDIR)/%-lexer.c $(BUILDDIR)/%-lexer.h: src/%-lexer.l
++src/%-lexer.c src/%-lexer.h: src/%-lexer.l
+ $(VQ)$(ECHO) " FLEX: $<"
+- $(Q)$(FLEX) --outfile=$(BUILDDIR)/$(*F)-lexer.c --header-file=$(BUILDDIR)/$(*F)-lexer.h $<
++ $(Q)$(FLEX) --outfile=src/$(*F)-lexer.c --header-file=src/$(*F)-lexer.h $<
+
+-$(BUILDDIR)/%-lexer.c: $(BUILDDIR)/%-parser.h
++src/%-lexer.c: src/%-parser.h
+
+ # Bison 3.0 and later require api.prefix in curly braces
+ # Bison 2.6 and later require api.prefix
+@@ -33,9 +33,9 @@ else
+ endif
+ endif
+
+-$(BUILDDIR)/%-parser.c $(BUILDDIR)/%-parser.h: src/%-parser.y
++src/%-parser.c src/%-parser.h: src/%-parser.y
+ $(VQ)$(ECHO) " BISON: $<"
+- $(Q)$(BISON) -d -t $(BISON_DEFINES) --report=all --output=$(BUILDDIR)/$(*F)-parser.c --defines=$(BUILDDIR)/$(*F)-parser.h $<
++ $(Q)$(BISON) -d -t $(BISON_DEFINES) --report=all --output=src/$(*F)-parser.c --defines=src/$(*F)-parser.h $<
+
+ # Grab the core makefile
+ include $(NSBUILD)/Makefile.subdir