View | Details | Raw Unified | Return to bug 203481 | Differences between
and this patch

Collapse All | Expand All

(-)lang/duktape/Makefile (-5 / +13 lines)
Lines 1-8 Link Here
1
# $FreeBSD: head/lang/duktape/Makefile 396541 2015-09-09 21:48:34Z amdmi3 $
1
# $FreeBSD: head/lang/duktape/Makefile 396541 2015-09-09 21:48:34Z amdmi3 $
2
2
3
PORTNAME=	duktape
3
PORTNAME=	duktape
4
PORTVERSION=	1.2.3
4
PORTVERSION=	1.2.4
5
PORTREVISION=	1
6
CATEGORIES=	lang devel
5
CATEGORIES=	lang devel
7
MASTER_SITES=	http://duktape.org/
6
MASTER_SITES=	http://duktape.org/
8
7
Lines 13-29 Link Here
13
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
12
LICENSE_FILE=	${WRKSRC}/LICENSE.txt
14
13
15
USES=		libedit tar:xz
14
USES=		libedit tar:xz
16
15
USE_CSTD=	c99
17
MAKEFILE=	Makefile.cmdline
16
MAKEFILE=	Makefile.cmdline
18
ALL_TARGET=	duk
17
ALL_TARGET=	duk
19
18
20
PLIST_FILES=	bin/duk
19
PLIST_FILES=	bin/duk
21
20
22
post-patch:
21
post-patch:
23
	@${REINPLACE_CMD} -e "/history\.h/d ; s,readline/,editline/,g " \
22
	@${REINPLACE_CMD} -e \
23
		'/gcc/s|^|#| ; \
24
		 /-Os/s|^|#| ; \
25
		 s|-I\./src$$|-I./src $$(CFLAGS) $$(CPPFLAGS)| ; \
26
		 s|-lm$$|-lm -ledit $$(LDFLAGS)| ; \
27
		 /FANCY$$/s|^#||' \
28
		${WRKSRC}/Makefile.cmdline
29
	@${REINPLACE_CMD} -e \
30
		'/history\.h/d ; \
31
		 s|readline/|editline/|g' \
24
		${WRKSRC}/examples/cmdline/duk_cmdline.c
32
		${WRKSRC}/examples/cmdline/duk_cmdline.c
25
33
26
do-install:
34
do-install:
27
	${INSTALL_PROGRAM} ${WRKSRC}/duk ${STAGEDIR}${PREFIX}/bin
35
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} duk ${STAGEDIR}${PREFIX}/bin)
28
36
29
.include <bsd.port.mk>
37
.include <bsd.port.mk>
(-)lang/duktape/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (duktape-1.2.3.tar.xz) = 3c065a0cc4e0264ba01e4c35bc9cb06ff20a695186e69cec9acb6e7c0948e033
1
SHA256 (duktape-1.2.4.tar.xz) = a52ff1af9750361041f51fb42cc74d3a6a2cb1be839034437f177625903811ca
2
SIZE (duktape-1.2.3.tar.xz) = 514152
2
SIZE (duktape-1.2.4.tar.xz) = 514304
(-)lang/duktape/files/patch-Makefile.cmdline (-24 lines)
Lines 1-24 Link Here
1
--- Makefile.cmdline.orig	2015-08-09 09:27:25 UTC
2
+++ Makefile.cmdline
3
@@ -8,16 +8,16 @@ DUKTAPE_SOURCES = src/duktape.c
4
 DUKTAPE_CMDLINE_SOURCES = \
5
 	examples/cmdline/duk_cmdline.c
6
 
7
-CC	= gcc
8
-CCOPTS	= -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
9
-CCOPTS += -I./src
10
+CC	?= gcc
11
+CCOPTS	= ${CFLAGS} -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
12
+CCOPTS += -I./src ${CPPFLAGS}
13
 CCLIBS	= -lm
14
 
15
 # If you have readline, you may want to enable these.  On some platforms
16
 # -lreadline also requires -lncurses (e.g. RHEL), so it is added by default
17
 # (you may be able to remove it)
18
-#CCOPTS += -DDUK_CMDLINE_FANCY
19
-#CCLIBS += -lreadline
20
+CCOPTS += -DDUK_CMDLINE_FANCY
21
+CCLIBS += ${LDFLAGS} -ledit
22
 #CCLIBS += -lncurses
23
 
24
 # Optional feature defines, see: http://duktape.org/guide.html#compiling
(-)lang/duktape/pkg-descr (-5 / +5 lines)
Lines 1-8 Link Here
1
Duktape is an embeddable Javascript engine, with a focus on portability and
1
Duktape is an embeddable Javascript engine, with a focus on portability
2
compact footprint.
2
and compact footprint.
3
3
4
Duktape is easy to integrate into a C/C++ project: add duktape.c and duktape.h
4
Duktape is easy to integrate into a C/C++ project: add duktape.c and
5
to your build, and use the Duktape API to call Ecmascript functions from C code
5
duktape.h to your build, and use the Duktape API to call Ecmascript
6
and vice versa.
6
functions from C code and vice versa.
7
7
8
WWW: http://duktape.org/
8
WWW: http://duktape.org/

Return to bug 203481