freebsd-ports/lang/phantomjs/Makefile
Mathieu Arnold 88bfe4bd43 Cleanup DIST* variables.
When appropriate:
- Try to use DISTVERSION{SUF,PRE}FIX
- Replace PORTNAME-PORTVERSION by DISTNAME
- Convert MASTER_SITES to use macros
- Other light cleanup

With hat:	portmgr
Sponsored by:	Absolight
2015-05-11 18:34:57 +00:00

38 lines
1,009 B
Makefile

# $FreeBSD$
PORTNAME= phantomjs
PORTVERSION= 1.9.8
#PORTREVISION= 0
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:${PORTSDIR}/shells/bash
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
PROJECTHOST= phantomjs
USES= gmake dos2unix pkgconfig zip
USE_GCC= any
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLIST_FILES= bin/phantomjs
do-build:
cd ${WRKSRC} && ${SETENV} CC=${CC} CXX=${CXX} OSTYPE=freebsd MAKEFLAGS= PATH=${PATH} bash -x build.sh --jobs ${MAKE_JOBS_NUMBER} --confirm \
--qt-config '-no-pch'
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>