svn commit: r512604 - in head/lang: . quickjs quickjs/files
Baptiste Daroussin
bapt at FreeBSD.org
Wed Oct 2 20:04:00 UTC 2019
On Sun, Sep 22, 2019 at 08:58:12PM +0000, Yuri Victorovich wrote:
> Author: yuri
> Date: Sun Sep 22 20:58:12 2019
> New Revision: 512604
> URL: https://svnweb.freebsd.org/changeset/ports/512604
>
> Log:
> New port: lang/quickjs: Embeddable Javascript interpreter in C
>
> Added:
> head/lang/quickjs/
> head/lang/quickjs/Makefile (contents, props changed)
> head/lang/quickjs/distinfo (contents, props changed)
> head/lang/quickjs/files/
> head/lang/quickjs/files/patch-Makefile (contents, props changed)
> head/lang/quickjs/files/patch-qjs.c (contents, props changed)
> head/lang/quickjs/files/patch-quickjs-libc.c (contents, props changed)
> head/lang/quickjs/files/patch-quickjs.c (contents, props changed)
> head/lang/quickjs/pkg-descr (contents, props changed)
> head/lang/quickjs/pkg-plist (contents, props changed)
> Modified:
> head/lang/Makefile
>
> Modified: head/lang/Makefile
> ==============================================================================
> --- head/lang/Makefile Sun Sep 22 20:58:11 2019 (r512603)
> +++ head/lang/Makefile Sun Sep 22 20:58:12 2019 (r512604)
> @@ -315,6 +315,7 @@
> SUBDIR += qmasm
> SUBDIR += qscheme
> SUBDIR += quack
> + SUBDIR += quickjs
> SUBDIR += racket
> SUBDIR += racket-minimal
> SUBDIR += ratfor
>
> Added: head/lang/quickjs/Makefile
> ==============================================================================
> --- /dev/null 00:00:00 1970 (empty, because file is newly added)
> +++ head/lang/quickjs/Makefile Sun Sep 22 20:58:12 2019 (r512604)
> @@ -0,0 +1,16 @@
> +# $FreeBSD$
> +
> +PORTNAME= quickjs
> +DISTVERSION= 2019.09.18
> +CATEGORIES= lang devel
> +MASTER_SITES= https://bellard.org/${PORTNAME}/
> +DISTNAME= ${PORTNAME}-${DISTVERSION:S/./-/g}
> +
> +MAINTAINER= yuri at FreeBSD.org
> +COMMENT= Embeddable Javascript interpreter in C
> +
> +LICENSE= MIT
> +
> +USES= gmake tar:xz
> +
> +.include <bsd.port.mk>
>
> Added: head/lang/quickjs/distinfo
> ==============================================================================
> --- /dev/null 00:00:00 1970 (empty, because file is newly added)
> +++ head/lang/quickjs/distinfo Sun Sep 22 20:58:12 2019 (r512604)
> @@ -0,0 +1,3 @@
> +TIMESTAMP = 1569184657
> +SHA256 (quickjs-2019-09-18.tar.xz) = ae4395d3f45045f920069e6c203ddb3fc3e549ce8fa3c429e696880cff010575
> +SIZE (quickjs-2019-09-18.tar.xz) = 761448
>
> Added: head/lang/quickjs/files/patch-Makefile
> ==============================================================================
> --- /dev/null 00:00:00 1970 (empty, because file is newly added)
> +++ head/lang/quickjs/files/patch-Makefile Sun Sep 22 20:58:12 2019 (r512604)
> @@ -0,0 +1,25 @@
> +--- Makefile.orig 2019-09-18 18:34:20 UTC
> ++++ Makefile
> +@@ -25,6 +25,9 @@
> + ifeq ($(shell uname -s),Darwin)
> + CONFIG_DARWIN=y
> + endif
> ++ifeq ($(shell uname -s),FreeBSD)
> ++CONFIG_FREEBSD=y
> ++endif
> + # Windows cross compilation from Linux
> + #CONFIG_WIN32=y
> + # use link time optimization (smaller and faster executables but slower build)
> +@@ -38,6 +41,12 @@ ifdef CONFIG_DARWIN
> + # use clang instead of gcc
> + CONFIG_CLANG=y
> + CONFIG_DEFAULT_AR=y
> ++endif
> ++ifdef CONFIG_FREEBSD
> ++# use clang instead of gcc
> ++CONFIG_CLANG=y
> ++CONFIG_DEFAULT_AR=y
> ++CONFIG_LTO=
> + endif
This is broken! this should be detected and provided by the ports tree.
This does not work on non clang architecture for one, or if someone defines
CC="something else not clang" in make.conf which is perfectly supported.
Regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20191002/11a488de/attachment.sig>
More information about the svn-ports-all
mailing list