2007-06-10 15:47:03 +02:00
|
|
|
# $NetBSD: Makefile.common,v 1.15 2007/06/10 13:47:03 taca Exp $
|
2004-11-27 14:57:20 +01:00
|
|
|
#
|
|
|
|
# Ruby base distribution common definition
|
|
|
|
|
|
|
|
#
|
|
|
|
# Ruby distribution sites.
|
|
|
|
#
|
|
|
|
MASTER_SITE_RUBY?= \
|
2004-11-29 04:31:53 +01:00
|
|
|
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}
|
2004-11-27 14:57:20 +01:00
|
|
|
|
|
|
|
# Ruby distribution
|
2005-03-06 17:42:30 +01:00
|
|
|
RUBY_DISTINFO_FILE= ${RUBY_SRCDIR}/distinfo
|
2004-11-27 14:57:20 +01:00
|
|
|
|
|
|
|
RUBY_HOMEPAGE= http://www.ruby-lang.org/en/
|
|
|
|
|
|
|
|
# common default
|
2007-03-15 17:41:01 +01:00
|
|
|
.if !empty(RUBY_PATCH_LEVEL)
|
2007-06-10 15:47:03 +02:00
|
|
|
RUBY_DISTNAME?= ruby-${RUBY_VERSION}-p${RUBY_PATCH_LEVEL}
|
2007-03-15 17:41:01 +01:00
|
|
|
.else
|
2004-11-27 14:57:20 +01:00
|
|
|
RUBY_DISTNAME?= ruby-${RUBY_VERSION}
|
2007-03-15 17:41:01 +01:00
|
|
|
.endif
|
2004-11-27 14:57:20 +01:00
|
|
|
RUBY_WRKSRC?= ${WRKDIR}/${RUBY_DISTNAME}
|
2007-03-15 17:41:01 +01:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2004-11-27 14:57:20 +01:00
|
|
|
STRIP?= strip
|
|
|
|
|
|
|
|
#
|
|
|
|
# PLIST substitution
|
|
|
|
#
|
2005-12-05 21:49:47 +01:00
|
|
|
PLIST_SUBST+= RUBY_SHLIBVER=${RUBY_SHLIBVER:Q} \
|
|
|
|
RUBY_SHLIBMAJOR=${RUBY_SHLIBMAJOR:Q} \
|
2005-12-08 10:14:50 +01:00
|
|
|
RUBY_NOSHLIBMAJOR=${RUBY_NOSHLIBMAJOR} \
|
2005-12-05 21:49:47 +01:00
|
|
|
RUBY_NAME=${RUBY_NAME:Q}
|
2004-11-27 14:57:20 +01:00
|
|
|
|
|
|
|
.include "replace.mk"
|
2006-09-08 04:36:51 +02:00
|
|
|
|
2006-09-13 14:56:46 +02:00
|
|
|
.if !empty(RUBY_USE_PTHREAD:M[nN][oO])
|
2006-09-08 04:36:51 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-pthread
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-pthread
|
|
|
|
.endif
|