blob: d60ef4f8395fe73c56fb273ea4f74ce4142d2617 (
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
68
69
70
|
# New ports collection makefile for: yarv
# Date created: 24 Jul 2006
# Whom: Jun Mukai aka jmuk <mukai@jmuk.org>
#
# $FreeBSD$
#
PORTNAME= yarv
PORTVERSION= 0.4.1
CATEGORIES= lang ruby
MASTER_SITES= http://www.atdot.net/yarv/
DIST_SUBDIR= ruby
MAINTAINER= mukai@jmuk.org
COMMENT= Yet Another Ruby Virtual-machine
USE_GCC= 4.0+
USE_LDCONFIG= yes
USE_OPENSSL= yes
USE_RUBY= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ${RUBY_CONFIGURE_ARGS} --program-suffix=20 \
--enable-shared --with-openssl-include=${OPENSSLINC}
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" LIBS="${PTHREAD_LIBS}"
OPTIONS= DEBUG "Enable debugging information" off \
THREADS "Enable threading support" off
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64"
BROKEN= does not build
.endif
.if ${OSVERSION} < 600000
BROKEN= Does not build on 5.x
.endif
.if ${OSVERSION} >= 400014
CONFIGURE_ARGS+=--enable-ipv6
.if ${OSVERSION} < 500000
CONFIGURE_ARGS+=--enable-wide-getaddrinfo
.endif
.endif
.if defined(NOPORTDOCS)
INSTALL_TARGET= install-nodoc
PLIST_SUB+= PORTSDOCS="@comment "
.else
INSTALL_TARGET= install
PLIST_SUB+= PORTSDOCS=""
.endif
.if defined(WITH_DEBUG)
CFLAGS+= -g
STRIP= # none
.endif
.if defined(WITH_THREADS)
CONFIGURE_ARGS+=--enable-pthread
PKGNAMESUFFIX:= ${PKGNAMESUFFIX}+pthreads
.else
CONFIGURE_ARGS+=--disable-pthread
.endif
test:
@(cd ${WRKSRC}; ${MAKE} test)
.include <bsd.port.post.mk>
|