freebsd-ports/lang/phantomjs/Makefile
Jun Kuriyama 3e21c82eb1 - Upgrade to 1.7.0.
Feature safe: yes
2012-10-20 14:45:37 +00:00

37 lines
887 B
Makefile

# $FreeBSD$
PORTNAME= phantomjs
PORTVERSION= 1.7.0
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
PROJECTHOST= phantomjs
USE_ZIP= YES
USE_GMAKE= YES
USE_DOS2UNIX= YES
USE_QT4= moc qmake gui webkit rcc
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
do-build:
cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|!/|!/usr/local/|g' build.sh
cd ${WRKSRC}/src/qt && ${REINPLACE_CMD} -e 's|!/|!/usr/local/|g' preconfig.sh
cd ${WRKSRC} && ${LOCALBASE}/bin/bash -x build.sh --jobs 2
do-install:
cd ${WRKSRC} && ${INSTALL_PROGRAM} bin/phantomjs ${PREFIX}/bin/
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not link on sparc64
.endif
.include <bsd.port.post.mk>