bb5d2a3f28
This may change dependencies other than 10.x environment, so bump PORTREVISION for safety.
37 lines
936 B
Makefile
37 lines
936 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= phantomjs
|
|
PORTVERSION= 1.9.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= lang
|
|
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
|
COMMENT= Minimalistic, headless, WebKit-based, JavaScript-driven tool
|
|
|
|
LICENSE= BSD
|
|
|
|
BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
|
|
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \
|
|
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
|
|
|
|
PROJECTHOST= phantomjs
|
|
USE_GCC= 4.2+
|
|
USES= gmake dos2unix pkgconfig
|
|
USE_ZIP= YES
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${SETENV} CC=${CC} CXX=${CXX} OSTYPE=freebsd MAKEFLAGS= PATH=${PATH} bash -x build.sh --jobs ${MAKE_JOBS_NUMBER} --confirm
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${INSTALL_PROGRAM} bin/phantomjs ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
BROKEN= Does not link on sparc64
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|