# $FreeBSD$
PORTNAME= duktape
PORTVERSION= 2.5.0
DISTVERSION= 2.6.0
CATEGORIES= lang devel
MASTER_SITES= https://duktape.org/
USES= tar:xz
MAKE_ARGS+= CC=${CC}
MAKEFILE= Makefile.cmdline
ALL_TARGET= duk
TIMESTAMP = 1575253657
TIMESTAMP = 1602737106
SHA256 (duktape-2.5.0.tar.xz) = 83d411560a1cd36ea132bd81d8d9885efe9285c6bc6685c4b71e69a0c4329616
SHA256 (duktape-2.6.0.tar.xz) = 96f4a05a6c84590e53b18c59bb776aaba80a205afbbd92b82be609ba7fe75fa7
SIZE (duktape-2.5.0.tar.xz) = 1031188
SIZE (duktape-2.6.0.tar.xz) = 1035160
-
--- Makefile.cmdline.orig 2020-10-12 22:23:10 UTC
+++ Makefile.cmdline
@@ -8,8 +8,7 @@ DUKTAPE_SOURCES = src/duktape.c
CMDLINE_SOURCES = \
examples/cmdline/duk_cmdline.c
-CC = gcc
-CCOPTS = -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer
+CCOPTS = ${CFLAGS} -pedantic -Wall -fstrict-aliasing -fomit-frame-pointer
CCOPTS += -I./examples/cmdline -I./src # duktape.h and duk_config.h must be in include path
CCLIBS = -lm