svn commit: r492286 - in head/lang/mujs: . files
Yuri Victorovich
yuri at FreeBSD.org
Wed Feb 6 05:46:56 UTC 2019
Author: yuri
Date: Wed Feb 6 05:46:55 2019
New Revision: 492286
URL: https://svnweb.freebsd.org/changeset/ports/492286
Log:
lang/mujs: Enable readline; pass build flags to the build
Modified:
head/lang/mujs/Makefile
head/lang/mujs/files/patch-Makefile
Modified: head/lang/mujs/Makefile
==============================================================================
--- head/lang/mujs/Makefile Wed Feb 6 01:18:48 2019 (r492285)
+++ head/lang/mujs/Makefile Wed Feb 6 05:46:55 2019 (r492286)
@@ -2,6 +2,7 @@
PORTNAME= mujs
DISTVERSION= 1.0.5
+PORTREVISION= 1
CATEGORIES= lang devel
MAINTAINER= yuri at FreeBSD.org
@@ -10,7 +11,7 @@ COMMENT= Embeddable Javascript interpreter in C
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= gmake
+USES= gmake localbase:ldflags readline
USE_GITHUB= yes
GH_ACCOUNT= ccxvii
USE_LDCONFIG= yes
Modified: head/lang/mujs/files/patch-Makefile
==============================================================================
--- head/lang/mujs/files/patch-Makefile Wed Feb 6 01:18:48 2019 (r492285)
+++ head/lang/mujs/files/patch-Makefile Wed Feb 6 05:46:55 2019 (r492286)
@@ -1,6 +1,36 @@
---- Makefile.orig 2018-07-30 13:35:39 UTC
+--- Makefile.orig 2018-09-11 10:47:31 UTC
+++ Makefile
-@@ -49,9 +49,9 @@ OUT := build/$(build)
+@@ -15,7 +15,7 @@ endif
+
+ # 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
+@@ -24,14 +24,17 @@ endif
+ ifeq "$(shell uname)" "Linux"
+ HAVE_READLINE := yes
+ endif
++ifeq "$(shell uname)" "FreeBSD"
++ HAVE_READLINE := yes
++endif
+
+ ifeq "$(build)" "debug"
+- CFLAGS += -g
++ #CFLAGS += -g
+ else ifeq "$(build)" "sanitize"
+- CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer
++ CFLAGS += -pipe -fsanitize=address -fno-omit-frame-pointer
+ LDFLAGS += -fsanitize=address
+ else
+- CFLAGS += -Os
++ #CFLAGS += -Os
+ LDFLAGS += -Wl,-s
+ endif
+
+@@ -49,9 +52,9 @@ OUT := build/$(build)
SRCS := $(wildcard js*.c utf*.c regexp.c)
HDRS := $(wildcard js*.h mujs.h utf.h regexp.h)
@@ -12,7 +42,7 @@
astnames.h: jsparse.h
grep -E '(AST|EXP|STM)_' jsparse.h | sed 's/^[^A-Z]*\(AST_\)*/"/;s/,.*/",/' | tr A-Z a-z > $@
-@@ -115,7 +115,7 @@ install-static: install-common
+@@ -115,7 +118,7 @@ install-static: install-common
install-shared: install-common
install -m 755 build/release/libmujs.so $(DESTDIR)$(libdir)
More information about the svn-ports-all
mailing list