diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2012-01-09 01:53:59 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2012-01-09 01:53:59 +0000 |
commit | c9fde86009f9b2b4bb7912983ca9683d01df228e (patch) | |
tree | 34c37b89b6b9107006e187ff87f68ca170e6e07b /lang/phantomjs | |
parent | - update to 1.0.0 (diff) |
- Upgrade to 1.4.1.
PR: ports/163912
Submitted by: Hsin-Han You <hhyou@cs.nctu.edu.tw>
Notes
Notes:
svn path=/head/; revision=288792
Diffstat (limited to 'lang/phantomjs')
-rw-r--r-- | lang/phantomjs/Makefile | 10 | ||||
-rw-r--r-- | lang/phantomjs/distinfo | 4 | ||||
-rw-r--r-- | lang/phantomjs/files/patch-src-mongoose-mongoose.c | 13 |
3 files changed, 22 insertions, 5 deletions
diff --git a/lang/phantomjs/Makefile b/lang/phantomjs/Makefile index 613fc9c7ee65..3a43ea4bfb2d 100644 --- a/lang/phantomjs/Makefile +++ b/lang/phantomjs/Makefile @@ -6,9 +6,10 @@ # PORTNAME= phantomjs -PORTVERSION= 1.0.0 +PORTVERSION= 1.4.1 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} +DISTNAME= ${PORTNAME}-${PORTVERSION}-source MAINTAINER= kuriyama@FreeBSD.org COMMENT= Minimalistic, headless, WebKit-based, JavaScript-driven tool @@ -16,11 +17,14 @@ COMMENT= Minimalistic, headless, WebKit-based, JavaScript-driven tool PROJECTHOST= phantomjs USE_QT_VER= 4 USE_GMAKE= YES +USE_DOS2UNIX= YES QT_COMPONENTS= moc qmake gui webkit rcc PLIST_FILES= bin/phantomjs +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -do-configure: - cd ${WRKSRC} && ${QMAKE} +do-build: + cd ${WRKSRC}/src/ && ${QMAKE} phantomjs.pro -o Makefile.phantomjs && ${REINPLACE_CMD} -e 's|-ldl||g' Makefile.phantomjs + cd ${WRKSRC}/src/ && ${GMAKE} -f Makefile.phantomjs all do-install: cd ${WRKSRC} && ${INSTALL_PROGRAM} bin/phantomjs ${PREFIX}/bin/ diff --git a/lang/phantomjs/distinfo b/lang/phantomjs/distinfo index 79ed4f260e66..4a25cbd5c3cb 100644 --- a/lang/phantomjs/distinfo +++ b/lang/phantomjs/distinfo @@ -1,2 +1,2 @@ -SHA256 (phantomjs-1.0.0.tar.gz) = 5aad2478607dc5356c246c8ce8ba9fb40cb2d473665ff99380cb52a3d481a92f -SIZE (phantomjs-1.0.0.tar.gz) = 31244 +SHA256 (phantomjs-1.4.1-source.tar.gz) = 93df6e2125d560c10519a79b5502833b37a4986a2bc9fc42cc6d65e3536d20a4 +SIZE (phantomjs-1.4.1-source.tar.gz) = 497856 diff --git a/lang/phantomjs/files/patch-src-mongoose-mongoose.c b/lang/phantomjs/files/patch-src-mongoose-mongoose.c new file mode 100644 index 000000000000..2c9af0e311c8 --- /dev/null +++ b/lang/phantomjs/files/patch-src-mongoose-mongoose.c @@ -0,0 +1,13 @@ +--- src/mongoose/mongoose.c.orig 2012-01-08 11:06:17.000000000 +0800 ++++ src/mongoose/mongoose.c 2012-01-08 11:08:32.000000000 +0800 +@@ -18,6 +18,10 @@ + // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + // THE SOFTWARE. + ++#if defined(__FreeBSD__) ++#include <sys/socket.h> ++#endif ++ + #if defined(_WIN32) + #define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005 + #else
\ No newline at end of file |