Index: head/lang/phantomjs/Makefile =================================================================== --- head/lang/phantomjs/Makefile (revision 415225) +++ head/lang/phantomjs/Makefile (revision 415226) @@ -1,64 +1,65 @@ # $FreeBSD$ PORTNAME= phantomjs PORTVERSION= 2.0.0 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= https://bitbucket.org/ariya/phantomjs/downloads/ DISTNAME= ${PORTNAME}-${PORTVERSION}-source MAINTAINER= kuriyama@FreeBSD.org COMMENT= Minimalistic, headless, WebKit-based, JavaScript-driven tool LICENSE= BSD3CLAUSE BUILD_DEPENDS= bash:shells/bash \ python:lang/python LIB_DEPENDS= libfreetype.so:print/freetype2 \ libfontconfig.so:x11-fonts/fontconfig \ libicui18n.so:devel/icu \ libpng.so:graphics/png PROJECTHOST= phantomjs USES= bison:build compiler gmake gperf jpeg perl5 pkgconfig python:build zip USE_PERL5= build USE_RUBY= yes RUBY_NO_RUN_DEPENDS= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} PLIST_FILES= bin/phantomjs #PATCH_DEBUG= yes NO_CCACHE= yes # NOTE: # build.sh --qtwebkit=system requires Qt 5.3.x. We cannot use it. # qmake.conf detection is in src/qt/qtbase/configure script. SPEC= ${WRKSRC}/src/qt/qtbase/mkspecs post-extract: cd ${SPEC} && ${CP} -r freebsd-g++46 freebsd-g++48 cd ${SPEC} && ${CP} -r freebsd-g++46 freebsd-g++49 cd ${SPEC} && ${REINPLACE_CMD} -e 's|46|48|' freebsd-g++48/qmake.conf cd ${SPEC} && ${REINPLACE_CMD} -e 's|46|49|' freebsd-g++49/qmake.conf ${MKDIR} ${SPEC}/freebsd-clang cd ${SPEC} && ${SED} -e 's|\.\./\.\./|../|g' unsupported/freebsd-clang/qmake.conf > freebsd-clang/qmake.conf cd ${SPEC} && ${SED} -e 's|\.\./\.\./|../|g' unsupported/freebsd-clang/qplatformdefs.h > freebsd-clang/qplatformdefs.h _ENV= CC=${CC} CXX=${CXX} GMAKE=${GMAKE} OSTYPE=freebsd MAKEFLAGS= #_ENV+= CFLAGS="-g -pipe" _BLD= bash -x build.sh --jobs ${MAKE_JOBS_NUMBER} --confirm do-build: .if defined(_PHANTOMJS_USE_QT_SYSTEM) cd ${WRKSRC} && ${SETENV} ${_ENV} PATH=${PATH}:${QT_BINDIR} ${_BLD} --qt=system --qtwebkit=system .else cd ${WRKSRC} && ${SETENV} ${_ENV} PATH=${PATH} ${_BLD} --qt-config '-no-pch' .endif do-install: cd ${WRKSRC} && ${INSTALL_PROGRAM} bin/phantomjs ${STAGEDIR}${PREFIX}/bin/ .include .if ${ARCH} == "sparc64" BROKEN= Does not link on sparc64 .endif .include Index: head/lang/phantomjs/files/patch-src_qt_qtbase_src_network_ssl_qsslcontext.cpp =================================================================== --- head/lang/phantomjs/files/patch-src_qt_qtbase_src_network_ssl_qsslcontext.cpp (nonexistent) +++ head/lang/phantomjs/files/patch-src_qt_qtbase_src_network_ssl_qsslcontext.cpp (revision 415226) @@ -0,0 +1,14 @@ +--- src/qt/qtbase/src/network/ssl/qsslcontext.cpp.orig 2015-01-24 02:19:52 UTC ++++ src/qt/qtbase/src/network/ssl/qsslcontext.cpp +@@ -142,7 +142,11 @@ init_context: + #endif + break; + case QSsl::SslV3: ++#ifndef OPENSSL_NO_SSL3 + sslContext->ctx = q_SSL_CTX_new(client ? q_SSLv3_client_method() : q_SSLv3_server_method()); ++#else ++ sslContext->ctx = 0; // SSL 3 not supported by the system, but chosen deliberately -> error ++#endif + break; + case QSsl::SecureProtocols: // SslV2 will be disabled below + case QSsl::TlsV1SslV3: // SslV2 will be disabled below Property changes on: head/lang/phantomjs/files/patch-src_qt_qtbase_src_network_ssl_qsslcontext.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/lang/phantomjs/files/patch-src_qt_qtbase_src_network_ssl_qsslsocket__openssl__symbols.cpp =================================================================== --- head/lang/phantomjs/files/patch-src_qt_qtbase_src_network_ssl_qsslsocket__openssl__symbols.cpp (nonexistent) +++ head/lang/phantomjs/files/patch-src_qt_qtbase_src_network_ssl_qsslsocket__openssl__symbols.cpp (revision 415226) @@ -0,0 +1,22 @@ +--- src/qt/qtbase/src/network/ssl/qsslsocket_openssl_symbols.cpp.orig 2015-01-24 02:19:52 UTC ++++ src/qt/qtbase/src/network/ssl/qsslsocket_openssl_symbols.cpp +@@ -266,7 +266,9 @@ DEFINEFUNC(SSL_SESSION*, SSL_get_session + #ifndef OPENSSL_NO_SSL2 + DEFINEFUNC(const SSL_METHOD *, SSLv2_client_method, DUMMYARG, DUMMYARG, return 0, return) + #endif ++#ifndef OPENSSL_NO_SSL3 + DEFINEFUNC(const SSL_METHOD *, SSLv3_client_method, DUMMYARG, DUMMYARG, return 0, return) ++#endif + DEFINEFUNC(const SSL_METHOD *, SSLv23_client_method, DUMMYARG, DUMMYARG, return 0, return) + DEFINEFUNC(const SSL_METHOD *, TLSv1_client_method, DUMMYARG, DUMMYARG, return 0, return) + #if OPENSSL_VERSION_NUMBER >= 0x10001000L +@@ -276,7 +278,9 @@ DEFINEFUNC(const SSL_METHOD *, TLSv1_2_c + #ifndef OPENSSL_NO_SSL2 + DEFINEFUNC(const SSL_METHOD *, SSLv2_server_method, DUMMYARG, DUMMYARG, return 0, return) + #endif ++#ifndef OPENSSL_NO_SSL3 + DEFINEFUNC(const SSL_METHOD *, SSLv3_server_method, DUMMYARG, DUMMYARG, return 0, return) ++#endif + DEFINEFUNC(const SSL_METHOD *, SSLv23_server_method, DUMMYARG, DUMMYARG, return 0, return) + DEFINEFUNC(const SSL_METHOD *, TLSv1_server_method, DUMMYARG, DUMMYARG, return 0, return) + #if OPENSSL_VERSION_NUMBER >= 0x10001000L Property changes on: head/lang/phantomjs/files/patch-src_qt_qtbase_src_network_ssl_qsslsocket__openssl__symbols.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property