diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-10 05:48:34 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-10 05:48:34 +0800 |
commit | a494760ec789f9ae66b44919f9b165685587040d (patch) | |
tree | 3cdab7376300cadee887104d0852faefa3de2798 /lang | |
parent | a1916a4d29e95742a6412ca5a33e5b38fe262fe6 (diff) | |
download | freebsd-ports-gnome-a494760ec789f9ae66b44919f9b165685587040d.tar.gz freebsd-ports-gnome-a494760ec789f9ae66b44919f9b165685587040d.tar.zst freebsd-ports-gnome-a494760ec789f9ae66b44919f9b165685587040d.zip |
- Convert to USES=libedit (port tries to to the same thing manually)
- Respect CFLAGS
- Fix WWW:
Diffstat (limited to 'lang')
-rw-r--r-- | lang/duktape/Makefile | 12 | ||||
-rw-r--r-- | lang/duktape/files/patch-Makefile.cmdline | 12 | ||||
-rw-r--r-- | lang/duktape/pkg-descr | 2 |
3 files changed, 12 insertions, 14 deletions
diff --git a/lang/duktape/Makefile b/lang/duktape/Makefile index 87a22cb1701d..76a8b47d7e11 100644 --- a/lang/duktape/Makefile +++ b/lang/duktape/Makefile @@ -2,6 +2,7 @@ PORTNAME= duktape PORTVERSION= 1.2.3 +PORTREVISION= 1 CATEGORIES= lang devel MASTER_SITES= http://duktape.org/ @@ -11,20 +12,13 @@ COMMENT= Embeddable Javascript engine LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE.txt -USES= tar:xz +USES= libedit tar:xz -LIB_DEPENDS= libedit.so.0:${PORTSDIR}/devel/libedit MAKEFILE= Makefile.cmdline -ALL_TARGET= # +ALL_TARGET= duk PLIST_FILES= bin/duk -# for libedit -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib - -MAKE_ARGS= CC="${CC}" - post-patch: @${REINPLACE_CMD} -e "/history\.h/d ; s,readline/,editline/,g " \ ${WRKSRC}/examples/cmdline/duk_cmdline.c diff --git a/lang/duktape/files/patch-Makefile.cmdline b/lang/duktape/files/patch-Makefile.cmdline index d6856948105a..269cc0d06fee 100644 --- a/lang/duktape/files/patch-Makefile.cmdline +++ b/lang/duktape/files/patch-Makefile.cmdline @@ -1,10 +1,14 @@ ---- Makefile.cmdline.orig 2014-11-08 02:33:22 UTC +--- Makefile.cmdline.orig 2015-08-09 09:27:25 UTC +++ Makefile.cmdline -@@ -10,14 +10,14 @@ DUKTAPE_CMDLINE_SOURCES = \ +@@ -8,16 +8,16 @@ DUKTAPE_SOURCES = src/duktape.c + DUKTAPE_CMDLINE_SOURCES = \ + examples/cmdline/duk_cmdline.c - CC = gcc - CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer +-CC = gcc +-CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer -CCOPTS += -I./src ++CC ?= gcc ++CCOPTS = ${CFLAGS} -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer +CCOPTS += -I./src ${CPPFLAGS} CCLIBS = -lm diff --git a/lang/duktape/pkg-descr b/lang/duktape/pkg-descr index f542ba6ae46d..e415af649195 100644 --- a/lang/duktape/pkg-descr +++ b/lang/duktape/pkg-descr @@ -5,4 +5,4 @@ Duktape is easy to integrate into a C/C++ project: add duktape.c and duktape.h to your build, and use the Duktape API to call Ecmascript functions from C code and vice versa. -WWW: http://duktape.org +WWW: http://duktape.org/ |