mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
b2f0be90fd
Reported by: pkg-fallout MFH: 2019Q2
73 lines
2.4 KiB
Makefile
73 lines
2.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= phantomjs
|
|
PORTVERSION= 2.1.1
|
|
PORTREVISION= 13
|
|
CATEGORIES= lang
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Minimalistic, headless, WebKit-based, JavaScript-driven tool
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
BROKEN_powerpc64= fails to build: g++48: not found
|
|
BROKEN_sparc64= does not link on sparc64
|
|
BROKEN_SSL= openssl111
|
|
BROKEN_SSL_REASON_openssl111= error: member access into incomplete type 'X509' (aka 'x509_st')
|
|
DEPRECATED= Project has been discontinued: https://github.com/ariya/phantomjs/issues/15344
|
|
EXPIRATION_DATE=2019-05-15
|
|
|
|
BUILD_DEPENDS= bash:shells/bash
|
|
LIB_DEPENDS= libfreetype.so:print/freetype2 \
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
libicui18n.so:devel/icu \
|
|
libpng.so:graphics/png
|
|
|
|
USES= bison:build compiler:c++11-lang gmake gperf jpeg perl5 pkgconfig python:build ssl sqlite
|
|
USE_GNOME+= libxml2
|
|
USE_PERL5= build
|
|
USE_RUBY= yes
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= ariya
|
|
GH_TUPLE= Vitallium:phantomjs-3rdparty-win:19051aa:msvc2013/src/qt/3rdparty \
|
|
Vitallium:qtbase:b5cc008:qtbase/src/qt/qtbase \
|
|
Vitallium:qtwebkit:e7b7433:qtwebkit/src/qt/qtwebkit
|
|
RUBY_NO_RUN_DEPENDS= yes
|
|
PLIST_FILES= bin/phantomjs
|
|
NO_CCACHE= yes
|
|
BINARY_ALIAS= python=${PYTHON_CMD}
|
|
|
|
OPTIONS_DEFINE= X11
|
|
X11_USE= XORG=x11
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${SSL_DEFAULT} == base
|
|
BROKEN_FreeBSD_12= error: member access into incomplete type 'X509' (aka 'x509_st')
|
|
BROKEN_FreeBSD_13= error: member access into incomplete type 'X509' (aka 'x509_st')
|
|
.endif
|
|
|
|
# qmake.conf detection is in src/qt/qtbase/configure script.
|
|
SPEC= ${WRKSRC}/src/qt/qtbase/mkspecs
|
|
post-extract:
|
|
${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
|
|
${MKDIR} ${WRKSRC}/src/qt/qtbase/.git
|
|
${MKDIR} ${WRKSRC}/src/qt/qtwebkit/.git
|
|
${RM} ${WRKSRC}/src/qt/qtwebkit/Source/WebCore/DerivedSources.cpp
|
|
|
|
_ENV= CC=${CC} CXX=${CXX} GMAKE=${GMAKE} OSTYPE=freebsd MAKEFLAGS= LOCALBASE=${LOCALBASE}
|
|
_BLD= ${PYTHON_CMD} build.py --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}
|
|
.endif
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${INSTALL_PROGRAM} bin/phantomjs ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
.include <bsd.port.mk>
|