From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../mujs/files/mujs-0_p20150202-Makefile.patch | 28 ++++++++++++++++ dev-lang/mujs/files/mujs-1.0.1-gentoo.patch | 37 ++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch create mode 100644 dev-lang/mujs/files/mujs-1.0.1-gentoo.patch (limited to 'dev-lang/mujs/files') diff --git a/dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch b/dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch new file mode 100644 index 000000000000..4dca385e3792 --- /dev/null +++ b/dev-lang/mujs/files/mujs-0_p20150202-Makefile.patch @@ -0,0 +1,28 @@ +--- mujs-0_p20150202/Makefile ++++ mujs-0_p20150202/Makefile +@@ -2,23 +2,17 @@ + HDRS := $(wildcard js*.h mujs.h utf.h regex.h) + OBJS := $(SRCS:%.c=build/%.o) + +-prefix ?= /usr/local ++prefix ?= /usr + bindir ?= $(prefix)/bin + incdir ?= $(prefix)/include + libdir ?= $(prefix)/lib + +-CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter ++CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter + + ifeq "$(CC)" "clang" + CFLAGS += -Wunreachable-code + endif + +-ifeq "$(build)" "debug" +-CFLAGS += -g +-else +-CFLAGS += -O2 +-endif +- + default: build build/mujs build/mujsone + + debug: diff --git a/dev-lang/mujs/files/mujs-1.0.1-gentoo.patch b/dev-lang/mujs/files/mujs-1.0.1-gentoo.patch new file mode 100644 index 000000000000..c6c7977ac75d --- /dev/null +++ b/dev-lang/mujs/files/mujs-1.0.1-gentoo.patch @@ -0,0 +1,37 @@ +--- a/Makefile ++++ b/Makefile +@@ -2,7 +2,7 @@ + + build ?= release + +-prefix ?= /usr/local ++prefix ?= /usr + bindir ?= $(prefix)/bin + incdir ?= $(prefix)/include + libdir ?= $(prefix)/lib +@@ -11,7 +11,7 @@ + + # Compiler flags for various configurations: + +-CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter ++CFLAGS += -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter + + ifeq "$(CC)" "clang" + CFLAGS += -Wunreachable-code +@@ -22,16 +22,6 @@ + LDFLAGS += -Wl,--gc-sections + endif + +-ifeq "$(build)" "debug" +-CFLAGS += -g +-else ifeq "$(build)" "sanitize" +-CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer +-LDFLAGS += -fsanitize=address +-else +-CFLAGS += -Os +-LDFLAGS += -Wl,-s +-endif +- + # You shouldn't need to edit anything below here. + + OUT := build/$(build) -- cgit v1.2.3