summaryrefslogtreecommitdiff
path: root/math/zimpl/files
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2017-12-25 21:31:55 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2017-12-25 21:31:55 +0000
commit6ff500470b026a472e3113a2f7c5899f83d2cc08 (patch)
tree2338872b66124f406d5a683667a5a12604a6fab5 /math/zimpl/files
parentmultimedia/mpv: Fix build on arm64 (diff)
New port: math/zimpl: Language to translate the LP models into .lp or .mps
Submitted by: myself Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D13623
Diffstat (limited to 'math/zimpl/files')
-rw-r--r--math/zimpl/files/patch-Makefile51
1 files changed, 51 insertions, 0 deletions
diff --git a/math/zimpl/files/patch-Makefile b/math/zimpl/files/patch-Makefile
new file mode 100644
index 000000000000..55a9e8d801a0
--- /dev/null
+++ b/math/zimpl/files/patch-Makefile
@@ -0,0 +1,51 @@
+--- Makefile.orig 2017-03-07 17:20:10 UTC
++++ Makefile
+@@ -26,7 +26,7 @@
+ #
+ .PHONY: all depend clean lint doc doxygen check valgrind libdbl coverage
+
+-ARCH := $(shell uname -m | \
++ARCHX := $(shell uname -m | \
+ sed \
+ -e s/sun../sparc/ \
+ -e s/i.86/x86/ \
+@@ -40,6 +40,7 @@ OSTYPE := $(shell uname -s
+ tr '[:upper:]' '[:lower:]' | \
+ tr '/' '_' | \
+ sed \
++ -e s/freebsd/linux/ \
+ -e s/cygwin.*/cygwin/ \
+ -e s/irix../irix/ \
+ -e s/windows.*/windows/ \
+@@ -76,7 +77,7 @@ SRCDIR = src
+ BINDIR = bin
+ LIBDIR = lib
+
+-CPPFLAGS = -I$(SRCDIR) -DVERSION='"$(VERSION)"'
++CPPFLAGS += -I$(SRCDIR) -DVERSION='"$(VERSION)"'
+ CFLAGS = -O
+ LDFLAGS = -lgmp -lm
+ YFLAGS = -d -t -v
+@@ -102,10 +103,10 @@ ifeq ($(STATIC),true)
+ LINK = static
+ endif
+
+-BASE = $(OSTYPE).$(ARCH).$(COMP).$(OPT)
+-OBJDIR = obj/O.$(OSTYPE).$(ARCH).$(COMP).$(LINK).$(OPT)
++BASE = $(OSTYPE).$(ARCHX).$(COMP).$(OPT)
++OBJDIR = obj/O.$(OSTYPE).$(ARCHX).$(COMP).$(LINK).$(OPT)
+ NAME = zimpl
+-BINNAME = $(NAME)-$(VERSION).$(OSTYPE).$(ARCH).$(COMP).$(LINK).$(OPT)
++BINNAME = $(NAME)-$(VERSION).$(OSTYPE).$(ARCHX).$(COMP).$(LINK).$(OPT)
+ LIBNAME = $(NAME)-$(VERSION).$(BASE)
+
+ LIBRARY = $(LIBDIR)/lib$(LIBNAME)$(LIBEXT)
+@@ -140,7 +141,7 @@ OBJSRC = $(addprefix $(SRCDIR)/,$(OBJEC
+ LIBSRC = $(addprefix $(SRCDIR)/,$(LIBOBJ:.o=.c)) #(SRCDIR)/numbdbl.c
+
+ #-----------------------------------------------------------------------------
+-include make/make.$(OSTYPE).$(ARCH).$(COMP).$(OPT)
++include make/make.$(OSTYPE).$(ARCHX).$(COMP).$(OPT)
+ -include make/local/make.$(HOSTNAME)
+ -include make/local/make.$(HOSTNAME).$(COMP)
+ -include make/local/make.$(HOSTNAME).$(COMP).$(OPT)