aboutsummaryrefslogtreecommitdiffstats
path: root/lang/see/Makefile
blob: c4eccc72d29df12c86157ec69e1f8ff3e965264c (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Created by: Simun Mikecin <numisemis@yahoo.com>
# $FreeBSD$

PORTNAME=   see
PORTVERSION=    3.1.1424
PORTREVISION=   4
CATEGORIES= lang devel
MASTER_SITES=   http://download.openpkg.org/components/cache/see/ \
        http://lil.fr.distfiles.macports.org/see/ \
        ftp://ftp.mirrorservice.org/sites/distfiles.macports.org/see/ \
        ftp://mirror.csclub.uwaterloo.ca/MacPorts/mpdistfiles/see/

MAINTAINER= numisemis@yahoo.com
COMMENT=    Simple ECMAScript Engine (SEE)

LICENSE=    BSD3CLAUSE DTOA.C
LICENSE_COMB=   multi
LICENSE_NAME_DTOA.C=    License of dtoa.c
LICENSE_FILE_BSD3CLAUSE=    ${WRKSRC}/COPYING
LICENSE_FILE_DTOA.C=    ${WRKSRC}/COPYING
LICENSE_PERMS_DTOA.C=   dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

OPTIONS_DEFINE= GC DEBUG DOCS
OPTIONS_DEFAULT=    GC
GC_DESC=    Use Boehm-Weiser garbage collection package
DEBUG_DESC= Internal SEE library debugging

CONFLICTS=  see-devel-[0-9]*

USES=       libtool pathfix perl5
USE_LDCONFIG=   yes
USE_PERL5=  build
GNU_CONFIGURE=  yes
INSTALL_TARGET= install-strip

CFLAGS+=    -O3
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -lpthread -L${LOCALBASE}/lib

DEBUG_CFLAGS_OFF=   -DNDEBUG
GC_LIB_DEPENDS=     libgc.so:devel/boehm-gc
GC_CONFIGURE_WITH=  boehm-gc

post-patch:
    @${REINPLACE_CMD} -e "s|PACKAGE_BUGREPORT='leonard@users|PACKAGE_BUGREPORT='leonard\\\@users|" \
        ${WRKSRC}/configure

post-install:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in doc/USAGE.html AUTHORS NEWS README TODO COPYING
    ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor

.include <bsd.port.mk>