aboutsummaryrefslogtreecommitdiffstats
path: root/lang/njs/Makefile
blob: c2e95cf735c29889761be298d35ecfe1e87921dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# New ports collection makefile for:    NJS
# Date created:             Fri Jan 11 20:45:26 GMT 2002
# Whom:                 Thierry Thomas <thierry@pompo.net>
#
# $FreeBSD$
#

PORTNAME=   njs
PORTVERSION=    0.2.5
PORTREVISION=   2
CATEGORIES= lang
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= arved
DISTNAME=   js-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    NJS (NGS) is a standalone JavaScript/ECMAScript interpreter

CONFLICTS=  js-1.5.*

USE_LDCONFIG=   yes
USE_AUTOTOOLS=  libtool
CONFIGURE_ARGS= --enable-shared

MAN1=       js.1 jsdas.1
INFO=       js

post-extract:
    @${RM} ${WRKSRC}/docs/js.info*
# Fix for GCC 4.2
    @${REINPLACE_CMD} -E \
        's,\((unsigned char) \*\) (ptr \+=),\2 sizeof(\1) *,' \
            ${WRKSRC}/src/iostream.c

.include <bsd.port.mk>