blob: 257f29a0fd36dff25615af855401963a4798b4a0 (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Created by: Simun Mikecin <numisemis@yahoo.com>
# $FreeBSD$
PORTNAME= see
PORTVERSION= 3.0.1376
PORTREVISION= 2
CATEGORIES= lang devel
MASTER_SITES= http://www.evolane.com/download/mirror/etcl/ \
http://www.evolane.fr/download/mirror/etcl/
PKGNAMESUFFIX= -devel
MAINTAINER= numisemis@yahoo.com
COMMENT= Simple ECMAScript Engine (SEE)
OPTIONS_DEFINE= GC OPTIMIZED_CFLAGS SEE_DEBUG THREADS DOCS
OPTIONS_DEFAULT= GC THREADS
GC_DESC= Use Boehm-Weiser garbage collection package
SEE_DEBUG_DESC= Internal SEE library debugging
CONFLICTS= see-[0-9]*
USES= pathfix perl5
USE_LDCONFIG= yes
USE_PERL5= build
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMULTIPLE_THREADS}
CFLAGS+= -DMULTIPLE_THREADS
.endif
.if ! ${PORT_OPTIONS:MSEE_DEBUG}
CFLAGS+= -DNDEBUG
.endif
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CFLAGS+= -O3 -fomit-frame-pointer
.endif
.if ${PORT_OPTIONS:MGC}
LIB_DEPENDS+= gc:${PORTSDIR}/devel/boehm-gc
.else
CONFIGURE_ARGS+= --without-boehm-gc
.if ! ${PORT_OPTIONS:MTHREADS}
PTHREAD_CFLAGS=
PTHREAD_LIBS=
.endif
.endif
post-patch:
@${REINPLACE_CMD} -e "s|PACKAGE_BUGREPORT='leonard@users|PACKAGE_BUGREPORT='leonard\\\@users|" \
${WRKSRC}/configure
.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${DOCSDIR}
.for f in doc/USAGE.html AUTHORS NEWS README TODO COPYING
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|