blob: 6c0e672430499b038f5e57885d6d7f99a1a11e91 (
plain)
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
|
# $NetBSD: Makefile.common,v 1.9 2005/12/08 09:14:50 rillig Exp $
#
# Ruby base distribution common definition
#
# Ruby distribution sites.
#
MASTER_SITE_RUBY?= \
ftp://ftp.ruby-lang.org/pub/ruby/${RUBY_SITE_SUBDIR}/ \
ftp://www.ibiblio.org/pub/languages/ruby/${RUBY_SITE_SUBDIR}/ \
ftp://xyz.lcs.mit.edu/pub/ruby/${RUBY_SITE_SUBDIR}/ \
ftp://gd.tuwien.ac.at/languages/ruby/${RUBY_SITE_SUBDIR}/ \
ftp://ftp.fu-berlin.de/unix/languages/ruby/${RUBY_SITE_SUBDIR}/ \
ftp://ftp.easynet.be/ruby/ruby/${RUBY_SITE_SUBDIR}/ \
ftp://ftp.ntua.gr/pub/lang/ruby/${RUBY_SITE_SUBDIR}/ \
ftp://sunsite.dk/mirrors/ruby/${RUBY_SITE_SUBDIR}/ \
ftp://ruby.cdpa.nsysu.edu.tw/ruby/${RUBY_SITE_SUBDIR}/ \
ftp://ftp.chg.ru/pub/lang/ruby/${RUBY_SITE_SUBDIR}/ \
ftp://ftp.ring.gr.jp/pub/lang/ruby/${RUBY_SITE_SUBDIR}/ \
ftp://ftp.iij.ad.jp/pub/lang/ruby/${RUBY_SITE_SUBDIR}/ \
ftp://ftp.idaemons.org/pub/mirror/ftp.ruby-lang.org/ruby/${RUBY_SITE_SUBDIR}/
RUBY_SITE_SUBDIR?= ${RUBY_VER_DIR}
# Ruby distribution
RUBY_DISTINFO_FILE= ${RUBY_SRCDIR}/distinfo
RUBY_HOMEPAGE= http://www.ruby-lang.org/en/
# common default
RUBY_DISTNAME?= ruby-${RUBY_VERSION}
RUBY_WRKSRC?= ${WRKDIR}/${RUBY_DISTNAME}
DIST_SUBDIR?= ruby
STRIP?= strip
DIST_SUBDIR?= ${RUBY_DIST_SUBDIR}
#
# PLIST substitution
#
PLIST_SUBST+= RUBY_SHLIBVER=${RUBY_SHLIBVER:Q} \
RUBY_SHLIBMAJOR=${RUBY_SHLIBMAJOR:Q} \
RUBY_NOSHLIBMAJOR=${RUBY_NOSHLIBMAJOR} \
RUBY_NAME=${RUBY_NAME:Q}
# Common macros.
.if ${OPSYS} == "NetBSD"
.if empty(OS_VERSION:M1.[0-9].*)
PTHREAD_OPTS+= native
.include "../../mk/pthread.buildlink3.mk"
.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
CONFIGURE_ARGS+= --disable-pthread
.else
CONFIGURE_ARGS+= --enable-pthread
.endif
.endif
.endif
.include "replace.mk"
|