svn commit: r520423 - head/lang/mujs

Yuri Victorovich yuri at FreeBSD.org
Thu Dec 19 07:36:58 UTC 2019


Author: yuri
Date: Thu Dec 19 07:36:57 2019
New Revision: 520423
URL: https://svnweb.freebsd.org/changeset/ports/520423

Log:
  lang/mujs: Add the 32BIT option allowing to execute much larger programs

Modified:
  head/lang/mujs/Makefile

Modified: head/lang/mujs/Makefile
==============================================================================
--- head/lang/mujs/Makefile	Thu Dec 19 06:13:16 2019	(r520422)
+++ head/lang/mujs/Makefile	Thu Dec 19 07:36:57 2019	(r520423)
@@ -3,6 +3,7 @@
 PORTNAME=	mujs
 DISTVERSION=	1.0.6-6
 DISTVERSIONSUFFIX=	-g8c86834
+PORTREVISION=	1
 CATEGORIES=	lang devel
 
 PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${PORTNAME}/commit/
@@ -30,6 +31,14 @@ PLIST_FILES=	bin/mujs \
 		lib/libmujs.so \
 		lib/libmujs.a \
 		libdata/pkgconfig/mujs.pc
+
+OPTIONS_DEFINE=		32BIT
+OPTIONS_DEFAULT=	32BIT
+
+32BIT_DESC=		32-bit address space to allow for larger programs
+
+post-patch-32BIT-on:
+	@${REINPLACE_CMD} 's|typedef unsigned short js_Instruction|typedef int js_Instruction|' ${WRKSRC}/jsi.h
 
 post-install: # https://github.com/ccxvii/mujs/issues/99
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmujs.so


More information about the svn-ports-all mailing list