mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
lang/mujs: Update 1.0.5-10 -> 1.0.5-21
Port changes: * Add the pull request patch enabling readline in FreeBSD * WITH_DEBUG triggers build=debug - the project manages its build options itself * Rm the post-install patch - the .pc issue has been fixed * Add FreeBSD-related patches eliminating build warnings, build using -O3 instead of -Os
This commit is contained in:
parent
8676fe88fd
commit
ecfc4688af
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=495797
@ -1,29 +1,33 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= mujs
|
||||
DISTVERSION= 1.0.5-10
|
||||
DISTVERSIONSUFFIX= -g9f40dfb
|
||||
DISTVERSION= 1.0.5-21
|
||||
DISTVERSIONSUFFIX= -g269904f
|
||||
CATEGORIES= lang devel
|
||||
|
||||
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${PORTNAME}/commit/
|
||||
PATCHFILES= d9a1f4c57f976eeb67d877101fcdca89ecc047ed.patch:-p1
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
COMMENT= Embeddable Javascript interpreter in C
|
||||
|
||||
LICENSE= ISCL
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
USES= compiler:c11 gmake localbase:ldflags readline # c11 is induced by the FreeBSD headers via isnan(3), etc, otherwise the project is all c99 code
|
||||
USES= compiler:c11 gmake readline # c11 is induced by the FreeBSD headers via isnan(3), etc, otherwise the project is all c99 code
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= ccxvii
|
||||
USE_LDCONFIG= yes
|
||||
ALL_TARGET= shared
|
||||
INSTALL_TARGET= install-shared
|
||||
|
||||
.if defined(WITH_DEBUG) # this project manages its build options itself
|
||||
MAKE_ARGS= build=debug
|
||||
.endif
|
||||
|
||||
PLIST_FILES= bin/mujs \
|
||||
include/mujs.h \
|
||||
lib/libmujs.so \
|
||||
libdata/pkgconfig/mujs.pc
|
||||
|
||||
post-install: # https://github.com/ccxvii/mujs/issues/83
|
||||
@${REINPLACE_CMD} -i '' 's|${STAGEDIR}||' ${STAGEDIR}${PREFIX}/libdata/pkgconfig/mujs.pc
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,5 @@
|
||||
TIMESTAMP = 1550977747
|
||||
SHA256 (ccxvii-mujs-1.0.5-10-g9f40dfb_GH0.tar.gz) = f4155fca71d62cae48f0eb0a6091889bb67835b1ecbc8c90105470b55d88fe37
|
||||
SIZE (ccxvii-mujs-1.0.5-10-g9f40dfb_GH0.tar.gz) = 119479
|
||||
TIMESTAMP = 1552667764
|
||||
SHA256 (ccxvii-mujs-1.0.5-21-g269904f_GH0.tar.gz) = 6a81cc6a323b8a7595d87d16814160deef5f5c5e6ce7e20cd2720f31514f3422
|
||||
SIZE (ccxvii-mujs-1.0.5-21-g269904f_GH0.tar.gz) = 119947
|
||||
SHA256 (d9a1f4c57f976eeb67d877101fcdca89ecc047ed.patch) = de236ceb1d7df002bf0930ff31f07f58260e0faf780edef72f05d478185cb279
|
||||
SIZE (d9a1f4c57f976eeb67d877101fcdca89ecc047ed.patch) = 589
|
||||
|
21
lang/mujs/files/patch-Makefile
Normal file
21
lang/mujs/files/patch-Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
--- Makefile.orig 2019-03-15 16:38:36 UTC
|
||||
+++ Makefile
|
||||
@@ -15,7 +15,8 @@ endif
|
||||
|
||||
# Compiler flags for various configurations:
|
||||
|
||||
-CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter
|
||||
+# change to c11 on FreeBSD because FreeBSD headers induce c11 through isnan(3), etc.
|
||||
+CFLAGS := -std=c11 -pedantic -Wall -Wextra -Wno-unused-parameter
|
||||
|
||||
ifeq "$(CC)" "clang"
|
||||
CFLAGS += -Wunreachable-code
|
||||
@@ -31,7 +32,7 @@ else ifeq "$(build)" "sanitize"
|
||||
CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer
|
||||
LDFLAGS += -fsanitize=address
|
||||
else
|
||||
- CFLAGS += -Os
|
||||
+ CFLAGS += -O3 # use -O3 on FreeBSD instead of -Os because this isn't an embedded platform
|
||||
LDFLAGS += -Wl,-s
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user