Update duktape to 2.7.0.
This commit is contained in:
parent
f7b24540a9
commit
c0bc5ed632
@ -1,9 +1,9 @@
|
||||
COMMENT = embeddable JavaScript engine
|
||||
|
||||
DISTNAME = duktape-2.6.0
|
||||
DISTNAME = duktape-2.7.0
|
||||
EXTRACT_SUFX = .tar.xz
|
||||
|
||||
SHARED_LIBS += duktape 1.2 # 206
|
||||
SHARED_LIBS += duktape 1.2 # 207
|
||||
|
||||
CATEGORIES = lang
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (duktape-2.6.0.tar.xz) = lvSgWmyEWQ5TsYxZu3dqq6gKIFr7vZK4K+YJun/nX6c=
|
||||
SIZE (duktape-2.6.0.tar.xz) = 1035160
|
||||
SHA256 (duktape-2.7.0.tar.xz) = kPjS+otVZ8aJmDDd7ywD88J5YLEayiIvoXqnrGE8KJA=
|
||||
SIZE (duktape-2.7.0.tar.xz) = 1026524
|
||||
|
@ -1,30 +1,30 @@
|
||||
Index: Makefile.sharedlibrary
|
||||
--- Makefile.sharedlibrary.orig
|
||||
+++ Makefile.sharedlibrary
|
||||
@@ -55,14 +55,14 @@ DUKTAPE_SRCDIR = ./src
|
||||
CC = gcc
|
||||
@@ -63,14 +63,14 @@ CC ?= gcc
|
||||
CC := $(CC)
|
||||
|
||||
.PHONY: all
|
||||
-all: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX)
|
||||
+all: libduktape.$(SO_REALNAME_SUFFIX)
|
||||
-all: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.$(SO_REALNAME_SUFFIX) duktape.pc
|
||||
+all: libduktape.$(SO_REALNAME_SUFFIX) duktape.pc
|
||||
|
||||
# If the default duk_config.h is not suitable for the distribution, modify it
|
||||
# before compiling the shared library and copy the same, edited duk_config.h
|
||||
# to $INSTALL_PREFIX/include on installation.
|
||||
|
||||
libduktape.$(SO_REALNAME_SUFFIX):
|
||||
- $(CC) -shared -fPIC -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \
|
||||
+ $(CC) -shared -fPIC -Wall -Wextra ${CFLAGS} -Wl,$(LD_SONAME_ARG),libduktape.so.$(REAL_VERSION) \
|
||||
- $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fPIC -Wall -Wextra -Os -Wl,$(LD_SONAME_ARG),libduktape.$(SO_SONAME_SUFFIX) \
|
||||
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -shared -fPIC -Wall -Wextra -Wl,$(LD_SONAME_ARG),libduktape.so.$(REAL_VERSION) \
|
||||
-o $@ $(DUKTAPE_SRCDIR)/duktape.c
|
||||
|
||||
libduktaped.$(SO_REALNAME_SUFFIX):
|
||||
@@ -83,6 +83,6 @@ install: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.
|
||||
mkdir -p $(INSTALL_PREFIX)/include/
|
||||
cp $(DUKTAPE_SRCDIR)/duktape.h $(DUKTAPE_SRCDIR)/duk_config.h $(INSTALL_PREFIX)/include/
|
||||
@@ -99,6 +99,6 @@ install: libduktape.$(SO_REALNAME_SUFFIX) libduktaped.
|
||||
mkdir -p $(DESTDIR)$(INSTALL_PREFIX)/include/
|
||||
cp $(DUKTAPE_SRCDIR)/duktape.h $(DUKTAPE_SRCDIR)/duk_config.h $(DESTDIR)$(INSTALL_PREFIX)/include/
|
||||
|
||||
-CCOPTS = -I./examples/cmdline
|
||||
-duk:
|
||||
- $(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)/lib -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm
|
||||
- $(CC) $(CCOPTS) -I$(INSTALL_PREFIX)/include -L$(INSTALL_PREFIX)$(LIBDIR) -Wall -Wextra -Os -o $@ ./examples/cmdline/duk_cmdline.c -lduktape -lm
|
||||
+CCOPTS = -I./examples/cmdline -Isrc
|
||||
+duk: libduktape.$(SO_REALNAME_SUFFIX)
|
||||
+ $(CC) $(CCOPTS) -Wall -Wextra ${CFLAGS} -o $@ ./examples/cmdline/duk_cmdline.c -L. -lduktape -lm
|
||||
|
Loading…
Reference in New Issue
Block a user