pkgsrc/lang/ossp-js/Makefile

53 lines
1.2 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.15 2016/07/09 06:38:26 wiz Exp $
Import of OSSP js-1.6.20070208, a portable, sanitized version of Mozilla's SpiderMonkey. I wish I knew about this sooner! I've tried this out with elinks, and the javsascript support seems more reliable. Thanks, OSSP! I vote for killing spidermonkey once we verify all packages using it build with this. Local modifications: --Only build fdlibm into libjs if necessary. This follows in the spirit of lang/spidermonkey, though someone with more knowledge of this probably will want to change the list of platforms in the Makefile. --Following the aforementioned change, link the library against -lm (and list -lm in js-config, etc.) only if required. --Use pkgsrc-provided installation tools instead of shtool. --Apply fix for __VA_COPY_USE_CPP. Blurb (DESCR): OSSP js is a stand-alone distribution of the JavaScript (JS) programming language reference implementation from Mozilla -- aka "JSRef" or "SpiderMonkey". This distribution provides a smart, stand-alone and portable distribution of Mozilla JavaScript through a GNU autotools-based build environment. Additionally, the C API in "libjs" contains both the JavaScript engine and the required Sun math library ("fdlibm") and with all internal symbols carefully protected under the "js" namespace. Finally, a js-config(1) utility and a pkg-config(1) specification is provided to allow applications to easily build with the JavaScript C API. OSSP js was created because for OSSP and similar pedantic C coding projects a smart, stand-alone, portable, clean, powerful and robust scripting language engine is required. JavaScript is a great programming language and Mozilla JavaScript "SpiderMonkey" definitely is an acceptable clean, powerful and robust implementation. Unfortunately there is just a stand-alone distribution released from time to time by Mozilla and it is far away from really being smart, stand-alone and portable. OSSP js combines the best from two worlds: the 1:1 repackaged JavaScript code base from Mozilla with the GNU autotools-based build environment as always used by OSSP. Additionally, this package provides stdio-based file object support and does not depend upon the Mozilla NSPR library.
2008-02-06 05:22:33 +01:00
#
DISTNAME= js-1.6.20070208
PKGNAME= ossp-${DISTNAME}
PKGREVISION= 8
Import of OSSP js-1.6.20070208, a portable, sanitized version of Mozilla's SpiderMonkey. I wish I knew about this sooner! I've tried this out with elinks, and the javsascript support seems more reliable. Thanks, OSSP! I vote for killing spidermonkey once we verify all packages using it build with this. Local modifications: --Only build fdlibm into libjs if necessary. This follows in the spirit of lang/spidermonkey, though someone with more knowledge of this probably will want to change the list of platforms in the Makefile. --Following the aforementioned change, link the library against -lm (and list -lm in js-config, etc.) only if required. --Use pkgsrc-provided installation tools instead of shtool. --Apply fix for __VA_COPY_USE_CPP. Blurb (DESCR): OSSP js is a stand-alone distribution of the JavaScript (JS) programming language reference implementation from Mozilla -- aka "JSRef" or "SpiderMonkey". This distribution provides a smart, stand-alone and portable distribution of Mozilla JavaScript through a GNU autotools-based build environment. Additionally, the C API in "libjs" contains both the JavaScript engine and the required Sun math library ("fdlibm") and with all internal symbols carefully protected under the "js" namespace. Finally, a js-config(1) utility and a pkg-config(1) specification is provided to allow applications to easily build with the JavaScript C API. OSSP js was created because for OSSP and similar pedantic C coding projects a smart, stand-alone, portable, clean, powerful and robust scripting language engine is required. JavaScript is a great programming language and Mozilla JavaScript "SpiderMonkey" definitely is an acceptable clean, powerful and robust implementation. Unfortunately there is just a stand-alone distribution released from time to time by Mozilla and it is far away from really being smart, stand-alone and portable. OSSP js combines the best from two worlds: the 1:1 repackaged JavaScript code base from Mozilla with the GNU autotools-based build environment as always used by OSSP. Additionally, this package provides stdio-based file object support and does not depend upon the Mozilla NSPR library.
2008-02-06 05:22:33 +01:00
CATEGORIES= lang
MASTER_SITES= ftp://ftp.ossp.org/pkg/lib/js/
Import of OSSP js-1.6.20070208, a portable, sanitized version of Mozilla's SpiderMonkey. I wish I knew about this sooner! I've tried this out with elinks, and the javsascript support seems more reliable. Thanks, OSSP! I vote for killing spidermonkey once we verify all packages using it build with this. Local modifications: --Only build fdlibm into libjs if necessary. This follows in the spirit of lang/spidermonkey, though someone with more knowledge of this probably will want to change the list of platforms in the Makefile. --Following the aforementioned change, link the library against -lm (and list -lm in js-config, etc.) only if required. --Use pkgsrc-provided installation tools instead of shtool. --Apply fix for __VA_COPY_USE_CPP. Blurb (DESCR): OSSP js is a stand-alone distribution of the JavaScript (JS) programming language reference implementation from Mozilla -- aka "JSRef" or "SpiderMonkey". This distribution provides a smart, stand-alone and portable distribution of Mozilla JavaScript through a GNU autotools-based build environment. Additionally, the C API in "libjs" contains both the JavaScript engine and the required Sun math library ("fdlibm") and with all internal symbols carefully protected under the "js" namespace. Finally, a js-config(1) utility and a pkg-config(1) specification is provided to allow applications to easily build with the JavaScript C API. OSSP js was created because for OSSP and similar pedantic C coding projects a smart, stand-alone, portable, clean, powerful and robust scripting language engine is required. JavaScript is a great programming language and Mozilla JavaScript "SpiderMonkey" definitely is an acceptable clean, powerful and robust implementation. Unfortunately there is just a stand-alone distribution released from time to time by Mozilla and it is far away from really being smart, stand-alone and portable. OSSP js combines the best from two worlds: the 1:1 repackaged JavaScript code base from Mozilla with the GNU autotools-based build environment as always used by OSSP. Additionally, this package provides stdio-based file object support and does not depend upon the Mozilla NSPR library.
2008-02-06 05:22:33 +01:00
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.ossp.org/pkg/lib/js/
Import of OSSP js-1.6.20070208, a portable, sanitized version of Mozilla's SpiderMonkey. I wish I knew about this sooner! I've tried this out with elinks, and the javsascript support seems more reliable. Thanks, OSSP! I vote for killing spidermonkey once we verify all packages using it build with this. Local modifications: --Only build fdlibm into libjs if necessary. This follows in the spirit of lang/spidermonkey, though someone with more knowledge of this probably will want to change the list of platforms in the Makefile. --Following the aforementioned change, link the library against -lm (and list -lm in js-config, etc.) only if required. --Use pkgsrc-provided installation tools instead of shtool. --Apply fix for __VA_COPY_USE_CPP. Blurb (DESCR): OSSP js is a stand-alone distribution of the JavaScript (JS) programming language reference implementation from Mozilla -- aka "JSRef" or "SpiderMonkey". This distribution provides a smart, stand-alone and portable distribution of Mozilla JavaScript through a GNU autotools-based build environment. Additionally, the C API in "libjs" contains both the JavaScript engine and the required Sun math library ("fdlibm") and with all internal symbols carefully protected under the "js" namespace. Finally, a js-config(1) utility and a pkg-config(1) specification is provided to allow applications to easily build with the JavaScript C API. OSSP js was created because for OSSP and similar pedantic C coding projects a smart, stand-alone, portable, clean, powerful and robust scripting language engine is required. JavaScript is a great programming language and Mozilla JavaScript "SpiderMonkey" definitely is an acceptable clean, powerful and robust implementation. Unfortunately there is just a stand-alone distribution released from time to time by Mozilla and it is far away from really being smart, stand-alone and portable. OSSP js combines the best from two worlds: the 1:1 repackaged JavaScript code base from Mozilla with the GNU autotools-based build environment as always used by OSSP. Additionally, this package provides stdio-based file object support and does not depend upon the Mozilla NSPR library.
2008-02-06 05:22:33 +01:00
COMMENT= Sanitized distribution of Mozilla's JavaScript implementation
###
### XXX This could be eliminated with buildlinkery, but I do not have time
### right now. You'll probably want to use this package in lieu of
### spidermonkey anyway.
###
CONFLICTS+= spidermonkey-[0-9]*
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
CFLAGS+= -Wall
Import of OSSP js-1.6.20070208, a portable, sanitized version of Mozilla's SpiderMonkey. I wish I knew about this sooner! I've tried this out with elinks, and the javsascript support seems more reliable. Thanks, OSSP! I vote for killing spidermonkey once we verify all packages using it build with this. Local modifications: --Only build fdlibm into libjs if necessary. This follows in the spirit of lang/spidermonkey, though someone with more knowledge of this probably will want to change the list of platforms in the Makefile. --Following the aforementioned change, link the library against -lm (and list -lm in js-config, etc.) only if required. --Use pkgsrc-provided installation tools instead of shtool. --Apply fix for __VA_COPY_USE_CPP. Blurb (DESCR): OSSP js is a stand-alone distribution of the JavaScript (JS) programming language reference implementation from Mozilla -- aka "JSRef" or "SpiderMonkey". This distribution provides a smart, stand-alone and portable distribution of Mozilla JavaScript through a GNU autotools-based build environment. Additionally, the C API in "libjs" contains both the JavaScript engine and the required Sun math library ("fdlibm") and with all internal symbols carefully protected under the "js" namespace. Finally, a js-config(1) utility and a pkg-config(1) specification is provided to allow applications to easily build with the JavaScript C API. OSSP js was created because for OSSP and similar pedantic C coding projects a smart, stand-alone, portable, clean, powerful and robust scripting language engine is required. JavaScript is a great programming language and Mozilla JavaScript "SpiderMonkey" definitely is an acceptable clean, powerful and robust implementation. Unfortunately there is just a stand-alone distribution released from time to time by Mozilla and it is far away from really being smart, stand-alone and portable. OSSP js combines the best from two worlds: the 1:1 repackaged JavaScript code base from Mozilla with the GNU autotools-based build environment as always used by OSSP. Additionally, this package provides stdio-based file object support and does not depend upon the Mozilla NSPR library.
2008-02-06 05:22:33 +01:00
PKGCONFIG_OVERRIDE+= js.pc.in
CONFIGURE_ARGS+= --with-dso
CONFIGURE_ARGS+= --with-editline
CONFIGURE_ARGS+= --with-file
CONFIGURE_ARGS+= --without-perl
REPLACE_SH= js-config.sh.in
REPLACE_INTERPRETER+= js
REPLACE.js.old= ./js
REPLACE.js.new= ${PREFIX}/bin/js
REPLACE_FILES.js= jslint.js jspack.js
.include "libm.mk"
Import of OSSP js-1.6.20070208, a portable, sanitized version of Mozilla's SpiderMonkey. I wish I knew about this sooner! I've tried this out with elinks, and the javsascript support seems more reliable. Thanks, OSSP! I vote for killing spidermonkey once we verify all packages using it build with this. Local modifications: --Only build fdlibm into libjs if necessary. This follows in the spirit of lang/spidermonkey, though someone with more knowledge of this probably will want to change the list of platforms in the Makefile. --Following the aforementioned change, link the library against -lm (and list -lm in js-config, etc.) only if required. --Use pkgsrc-provided installation tools instead of shtool. --Apply fix for __VA_COPY_USE_CPP. Blurb (DESCR): OSSP js is a stand-alone distribution of the JavaScript (JS) programming language reference implementation from Mozilla -- aka "JSRef" or "SpiderMonkey". This distribution provides a smart, stand-alone and portable distribution of Mozilla JavaScript through a GNU autotools-based build environment. Additionally, the C API in "libjs" contains both the JavaScript engine and the required Sun math library ("fdlibm") and with all internal symbols carefully protected under the "js" namespace. Finally, a js-config(1) utility and a pkg-config(1) specification is provided to allow applications to easily build with the JavaScript C API. OSSP js was created because for OSSP and similar pedantic C coding projects a smart, stand-alone, portable, clean, powerful and robust scripting language engine is required. JavaScript is a great programming language and Mozilla JavaScript "SpiderMonkey" definitely is an acceptable clean, powerful and robust implementation. Unfortunately there is just a stand-alone distribution released from time to time by Mozilla and it is far away from really being smart, stand-alone and portable. OSSP js combines the best from two worlds: the 1:1 repackaged JavaScript code base from Mozilla with the GNU autotools-based build environment as always used by OSSP. Additionally, this package provides stdio-based file object support and does not depend upon the Mozilla NSPR library.
2008-02-06 05:22:33 +01:00
.if !empty(JS_FDLIBM_MATH_REQUESTED:M[Yy][Ee][Ss])
MAKE_ENV+= -DJS_FDLIBM_MATH_REQUESTED=1
Import of OSSP js-1.6.20070208, a portable, sanitized version of Mozilla's SpiderMonkey. I wish I knew about this sooner! I've tried this out with elinks, and the javsascript support seems more reliable. Thanks, OSSP! I vote for killing spidermonkey once we verify all packages using it build with this. Local modifications: --Only build fdlibm into libjs if necessary. This follows in the spirit of lang/spidermonkey, though someone with more knowledge of this probably will want to change the list of platforms in the Makefile. --Following the aforementioned change, link the library against -lm (and list -lm in js-config, etc.) only if required. --Use pkgsrc-provided installation tools instead of shtool. --Apply fix for __VA_COPY_USE_CPP. Blurb (DESCR): OSSP js is a stand-alone distribution of the JavaScript (JS) programming language reference implementation from Mozilla -- aka "JSRef" or "SpiderMonkey". This distribution provides a smart, stand-alone and portable distribution of Mozilla JavaScript through a GNU autotools-based build environment. Additionally, the C API in "libjs" contains both the JavaScript engine and the required Sun math library ("fdlibm") and with all internal symbols carefully protected under the "js" namespace. Finally, a js-config(1) utility and a pkg-config(1) specification is provided to allow applications to easily build with the JavaScript C API. OSSP js was created because for OSSP and similar pedantic C coding projects a smart, stand-alone, portable, clean, powerful and robust scripting language engine is required. JavaScript is a great programming language and Mozilla JavaScript "SpiderMonkey" definitely is an acceptable clean, powerful and robust implementation. Unfortunately there is just a stand-alone distribution released from time to time by Mozilla and it is far away from really being smart, stand-alone and portable. OSSP js combines the best from two worlds: the 1:1 repackaged JavaScript code base from Mozilla with the GNU autotools-based build environment as always used by OSSP. Additionally, this package provides stdio-based file object support and does not depend upon the Mozilla NSPR library.
2008-02-06 05:22:33 +01:00
CONFIGURE_ENV+= LIBM=""
.else
CONFIGURE_ENV+= LIBM="-lm"
.endif
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/readline.buildlink3.mk"
Import of OSSP js-1.6.20070208, a portable, sanitized version of Mozilla's SpiderMonkey. I wish I knew about this sooner! I've tried this out with elinks, and the javsascript support seems more reliable. Thanks, OSSP! I vote for killing spidermonkey once we verify all packages using it build with this. Local modifications: --Only build fdlibm into libjs if necessary. This follows in the spirit of lang/spidermonkey, though someone with more knowledge of this probably will want to change the list of platforms in the Makefile. --Following the aforementioned change, link the library against -lm (and list -lm in js-config, etc.) only if required. --Use pkgsrc-provided installation tools instead of shtool. --Apply fix for __VA_COPY_USE_CPP. Blurb (DESCR): OSSP js is a stand-alone distribution of the JavaScript (JS) programming language reference implementation from Mozilla -- aka "JSRef" or "SpiderMonkey". This distribution provides a smart, stand-alone and portable distribution of Mozilla JavaScript through a GNU autotools-based build environment. Additionally, the C API in "libjs" contains both the JavaScript engine and the required Sun math library ("fdlibm") and with all internal symbols carefully protected under the "js" namespace. Finally, a js-config(1) utility and a pkg-config(1) specification is provided to allow applications to easily build with the JavaScript C API. OSSP js was created because for OSSP and similar pedantic C coding projects a smart, stand-alone, portable, clean, powerful and robust scripting language engine is required. JavaScript is a great programming language and Mozilla JavaScript "SpiderMonkey" definitely is an acceptable clean, powerful and robust implementation. Unfortunately there is just a stand-alone distribution released from time to time by Mozilla and it is far away from really being smart, stand-alone and portable. OSSP js combines the best from two worlds: the 1:1 repackaged JavaScript code base from Mozilla with the GNU autotools-based build environment as always used by OSSP. Additionally, this package provides stdio-based file object support and does not depend upon the Mozilla NSPR library.
2008-02-06 05:22:33 +01:00
.include "../../mk/bsd.pkg.mk"