1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00

1: Upgrade to 3.4.4

2: install shared library by default.
3: resolv undefined symbol.

PR:		ports/157875
Submitted by:	Brett Kiefer <brett at fogcreek.com>, L Campbell <lcampbell at ironclad.mobi> [3]
This commit is contained in:
Vanilla I. Shu 2011-06-20 07:16:31 +00:00
parent 95579009cd
commit 80c75c68ce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=275877
4 changed files with 26 additions and 13 deletions

View File

@ -6,7 +6,8 @@
#
PORTNAME= v8
PORTVERSION= 3.4.1
PORTVERSION= 3.4.4
PORTREVISION= 0
CATEGORIES= lang
MASTER_SITES= http://github.com/${PORTNAME}/${PORTNAME}/tarball/${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTNAME}-${PORTVERSION}-${GITVERSION}
@ -16,16 +17,18 @@ COMMENT= Google\'s open source JavaScript engine
LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo
GITVERSION= 0-g064fc53
GITVERSION= 0-gf985a1d
FETCH_ARGS= -pRr
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTNAME}-${GITVERSION:S/^0-g//}
USE_SCONS= yes
USE_LDCONFIG= yes
OPTIONS= DEBUG "Build in debug mode" Off \
SNAPSHOT "Enable snapshots" Off
.include <bsd.port.options.mk>
SCONS_ARGS=
SCONS_ARGS= visibility=default
.if defined(WITHOUT_DEBUG)
SCONS_ARGS+= mode=release
.else
@ -54,15 +57,17 @@ 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
${INSTALL_LIB} -m 755 ${WRKSRC}/libv8.a ${PREFIX}/lib/libv8.a
${INSTALL_LIB} -m 755 ${WRKSRC}/libv8.so ${PREFIX}/lib/libv8.so.1
${INSTALL_LIB} -m 755 ${WRKSRC}/libv8preparser.a ${PREFIX}/lib/libv8preparser.a
${INSTALL_LIB} -m 755 ${WRKSRC}/libv8preparser.so ${PREFIX}/lib/libv8preparser.so.1
${LN} -sf ${PREFIX}/lib/libv8.so.1 ${PREFIX}/lib/libv8.so
${LN} -sf ${PREFIX}/lib/libv8preparser.so.1 ${PREFIX}/lib/libv8preparser.so
${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/

View File

@ -1,2 +1,2 @@
SHA256 (v8-v8-3.4.1-0-g064fc53.tar.gz) = 5dac63c4820f661b1b990077b6b5bba1b85979c48408121fd4253df0e025f9de
SIZE (v8-v8-3.4.1-0-g064fc53.tar.gz) = 10708971
SHA256 (v8-v8-3.4.4-0-gf985a1d.tar.gz) = 181ca28251eaabb3025850847f21945ab61223b3647fb96612662c35b71ac0fe
SIZE (v8-v8-3.4.4-0-gf985a1d.tar.gz) = 10703974

View File

@ -1,6 +1,6 @@
--- 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 = {
--- SConstruct.orig 2011-06-01 14:00:58.000000000 +0800
+++ SConstruct 2011-06-16 09:56:00.000000000 +0800
@@ -120,10 +120,10 @@ LIBRARY_FLAGS = {
}
},
'os:freebsd': {
@ -8,4 +8,8 @@
+ 'CPPPATH' : [join(root_dir, 'src'), '/usr/local/include'],
'LIBPATH' : ['/usr/local/lib'],
'CCFLAGS': ['-ansi'],
'LIBS': ['execinfo']
- 'LIBS': ['execinfo']
+ 'LIBS': ['pthread', 'execinfo']
},
'os:openbsd': {
'CPPPATH' : ['/usr/local/include'],

View File

@ -5,4 +5,8 @@ include/v8-profiler.h
include/v8-testing.h
include/v8stdint.h
lib/libv8.a
lib/libv8.so
lib/libv8.so.1
lib/libv8preparser.a
lib/libv8preparser.so
lib/libv8preparser.so.1