summaryrefslogtreecommitdiff
path: root/print/mupdf/patches/patch-thirdparty_mujs_Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'print/mupdf/patches/patch-thirdparty_mujs_Makefile')
-rw-r--r--print/mupdf/patches/patch-thirdparty_mujs_Makefile22
1 files changed, 17 insertions, 5 deletions
diff --git a/print/mupdf/patches/patch-thirdparty_mujs_Makefile b/print/mupdf/patches/patch-thirdparty_mujs_Makefile
index 334af5cc58f..6092fd76d4e 100644
--- a/print/mupdf/patches/patch-thirdparty_mujs_Makefile
+++ b/print/mupdf/patches/patch-thirdparty_mujs_Makefile
@@ -1,10 +1,18 @@
-$NetBSD: patch-thirdparty_mujs_Makefile,v 1.1 2016/04/27 12:34:58 leot Exp $
+$NetBSD: patch-thirdparty_mujs_Makefile,v 1.2 2017/04/12 13:03:08 leot Exp $
o Add libtool support lo mujs.
o Avoid to set (unused) VERSION variable.
---- thirdparty/mujs/Makefile.orig 2016-03-01 20:52:00.000000000 +0000
+--- thirdparty/mujs/Makefile.orig 2017-03-29 13:56:39.000000000 +0000
+++ thirdparty/mujs/Makefile
+@@ -1,6 +1,6 @@
+ SRCS := $(wildcard js*.c utf*.c regexp.c)
+ HDRS := $(wildcard js*.h mujs.h utf.h regexp.h)
+-OBJS := $(SRCS:%.c=build/%.o)
++OBJS := $(SRCS:%.c=build/%.lo)
+
+ prefix ?= /usr/local
+ bindir ?= $(prefix)/bin
@@ -41,16 +41,16 @@ jsdump.c: astnames.h opnames.h
build:
mkdir -p build
@@ -22,12 +30,16 @@ o Avoid to set (unused) VERSION variable.
$(CC) $(LDFLAGS) -o $@ $^ -lm
-build/mujsone: build/main.o build/one.o
-+build/mujsone: build/main.o build/one.lo
++build/mujsone: build/main.lo build/one.lo
$(CC) $(LDFLAGS) -o $@ $^ -lm
install: release
-@@ -61,12 +61,12 @@ install: release
- install build/libmujs.a $(DESTDIR)$(libdir)
+@@ -58,15 +58,15 @@ install: release
+ install -d $(DESTDIR)$(libdir)
+ install -d $(DESTDIR)$(bindir)
+ install mujs.h $(DESTDIR)$(incdir)
+- install build/libmujs.a $(DESTDIR)$(libdir)
++ install build/libmujs.la $(DESTDIR)$(libdir)
install build/mujs $(DESTDIR)$(bindir)
-VERSION = $(shell git describe --tags --always)