1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

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

This commit is contained in:
Yuri Victorovich 2019-12-19 07:36:57 +00:00
parent 694847e2bf
commit 847b4fbe67
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=520423

View File

@ -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/
@ -31,6 +32,14 @@ PLIST_FILES= bin/mujs \
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