diff options
author | Vanilla I. Shu <vanilla@FreeBSD.org> | 2011-05-12 15:52:14 +0000 |
---|---|---|
committer | Vanilla I. Shu <vanilla@FreeBSD.org> | 2011-05-12 15:52:14 +0000 |
commit | 867c93ee025e38908bfb9e0e250ff6737c37c01e (patch) | |
tree | 1678ef78674257627fb7e8c5ff6a481c2c1b5cc8 /lang/v8 | |
parent | fb1f84c3e0140340c3e4b9b5ef35f18c6565c598 (diff) | |
download | ports-867c93ee025e38908bfb9e0e250ff6737c37c01e.tar.gz ports-867c93ee025e38908bfb9e0e250ff6737c37c01e.zip |
Notes
Diffstat (limited to 'lang/v8')
-rw-r--r-- | lang/v8/Makefile | 83 | ||||
-rw-r--r-- | lang/v8/distinfo | 2 | ||||
-rw-r--r-- | lang/v8/files/patch-SConstruct | 11 | ||||
-rw-r--r-- | lang/v8/pkg-descr | 3 | ||||
-rw-r--r-- | lang/v8/pkg-plist | 10 |
5 files changed, 109 insertions, 0 deletions
diff --git a/lang/v8/Makefile b/lang/v8/Makefile new file mode 100644 index 000000000000..b049a7033eed --- /dev/null +++ b/lang/v8/Makefile @@ -0,0 +1,83 @@ +# New ports collection makefile for: v8 +# Date created: 12 November 2010 +# Whom: siasia +# +# $FreeBSD$ +# + +PORTNAME= v8 +PORTVERSION= 3.2.8 +CATEGORIES= lang +MASTER_SITES= http://github.com/${PORTNAME}/${PORTNAME}/tarball/${PORTVERSION}/ +DISTNAME= ${PORTNAME}-${PORTNAME}-${PORTVERSION}-${GITVERSION} + +MAINTAINER= vanilla@FreeBSD.org +COMMENT= Google\'s open source JavaScript engine + +GITVERSION= 0-ga00b3e8 +FETCH_ARGS= -pRr +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTNAME}-a00b3e8 +USE_SCONS= yes +OPTIONS= DEBUG "Build in debug mode" Off \ + SNAPSHOT "Enable snapshots" Off \ + SHARED "Build shared library" Off + +.include <bsd.port.options.mk> + +SCONS_ARGS= +.if defined(WITHOUT_DEBUG) +SCONS_ARGS+= mode=release +.else +SCONS_ARGS+= mode=debug +.endif + +.if defined(WITHOUT_SNAPSHOT) +SCONS_ARGS+= snapshot=off +.else +SCONS_ARGS+= snapshot=on +.endif + +.if defined(WITH_SHARED) +USE_LDCONFIG= yes +PLIST_SUB+= V8SHARED="" +.else +PLIST_SUB+= V8SHARED="@comment " +.endif + +ONLY_FOR_ARCHS= i386 amd64 + +.include <bsd.port.pre.mk> + +.if ${ARCH} == i386 +V8ARCH=ia32 +.elif ${ARCH} == amd64 +V8ARCH=x64 +.endif +PLIST_SUB+= ARCH=${V8ARCH} +SCONS_ARGS+= arch=${V8ARCH} + +do-build: + @cd ${BUILD_WRKSRC} && \ + ${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} ${SCONS_ENV} ${_MAKE_JOBS} \ + ${SCONS_ARGS} library=static ${SCONS_TARGET} +.if defined(WITH_SHARED) + @cd ${BUILD_WRKSRC} && \ + ${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} ${SCONS_ENV} ${_MAKE_JOBS} \ + ${SCONS_ARGS} library=shared ${SCONS_TARGET} +.endif + +do-install: + ${INSTALL_DATA} -m 755 ${WRKSRC}/libv8.a ${PREFIX}/lib + ${INSTALL_DATA} -m 755 ${WRKSRC}/libv8preparser.a ${PREFIX}/lib +.if defined(WITH_SHARED) + ${INSTALL_LIB} -m 755 ${WRKSRC}/libv8.so ${PREFIX}/lib/libv8.so.1 + ${INSTALL_LIB} -m 755 ${WRKSRC}/libv8preparser.so ${PREFIX}/lib/libv8preparser.so.1 +.endif + ${INSTALL_DATA} ${WRKSRC}/include/v8.h ${PREFIX}/include/ + ${INSTALL_DATA} ${WRKSRC}/include/v8-debug.h ${PREFIX}/include/ + ${INSTALL_DATA} ${WRKSRC}/include/v8-preparser.h ${PREFIX}/include/ + ${INSTALL_DATA} ${WRKSRC}/include/v8-profiler.h ${PREFIX}/include/ + ${INSTALL_DATA} ${WRKSRC}/include/v8-testing.h ${PREFIX}/include/ + ${INSTALL_DATA} ${WRKSRC}/include/v8stdint.h ${PREFIX}/include/ + +.include <bsd.port.post.mk> diff --git a/lang/v8/distinfo b/lang/v8/distinfo new file mode 100644 index 000000000000..d4473dcb5b69 --- /dev/null +++ b/lang/v8/distinfo @@ -0,0 +1,2 @@ +SHA256 (v8-v8-3.2.8-0-ga00b3e8.tar.gz) = 6145d6564e2f4227dcc6c5efc62aec5cbd8c65348e70c3f6dda917389bacc373 +SIZE (v8-v8-3.2.8-0-ga00b3e8.tar.gz) = 10785342 diff --git a/lang/v8/files/patch-SConstruct b/lang/v8/files/patch-SConstruct new file mode 100644 index 000000000000..6bfab1f2a528 --- /dev/null +++ b/lang/v8/files/patch-SConstruct @@ -0,0 +1,11 @@ +--- SConstruct.orig 2011-04-06 19:17:46.000000000 +0800 ++++ SConstruct 2011-05-12 20:48:13.000000000 +0800 +@@ -178,7 +178,7 @@ LIBRARY_FLAGS = { + } + }, + 'os:freebsd': { +- 'CPPPATH' : ['/usr/local/include'], ++ 'CPPPATH' : [join(root_dir, 'src'), '/usr/local/include'], + 'LIBPATH' : ['/usr/local/lib'], + 'CCFLAGS': ['-ansi'], + 'LIBS': ['execinfo'] diff --git a/lang/v8/pkg-descr b/lang/v8/pkg-descr new file mode 100644 index 000000000000..b7412aa9e000 --- /dev/null +++ b/lang/v8/pkg-descr @@ -0,0 +1,3 @@ +Google's open source JavaScript engine + +WWW: http://code.google.com/p/v8/ diff --git a/lang/v8/pkg-plist b/lang/v8/pkg-plist new file mode 100644 index 000000000000..61f680a9aad0 --- /dev/null +++ b/lang/v8/pkg-plist @@ -0,0 +1,10 @@ +include/v8.h +include/v8-debug.h +include/v8-preparser.h +include/v8-profiler.h +include/v8-testing.h +include/v8stdint.h +lib/libv8.a +%%V8SHARED%%lib/libv8.so.1 +lib/libv8preparser.a +%%V8SHARED%%lib/libv8preparser.so.1 |