2010-09-14 08:03:42 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.78 2010/09/14 12:03:42 jasper Exp $
|
2006-10-18 21:03:17 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
2000-03-28 08:16:02 -05:00
|
|
|
|
2007-09-15 20:27:05 -04:00
|
|
|
COMMENT-main= object oriented script language with threads
|
|
|
|
COMMENT-iconv= libiconv interface for ruby
|
|
|
|
COMMENT-gdbm= gdbm interface for ruby
|
|
|
|
COMMENT-tk= tk interface for ruby
|
2002-12-26 10:48:22 -05:00
|
|
|
|
2007-12-27 13:32:32 -05:00
|
|
|
VERSION= 1.8.6
|
2009-06-16 05:12:44 -04:00
|
|
|
PATCHLEVEL= 369
|
2007-12-27 13:32:32 -05:00
|
|
|
DISTNAME= ruby-${VERSION}-p${PATCHLEVEL}
|
2008-07-25 16:25:59 -04:00
|
|
|
SHARED_LIBS= ruby 2.0
|
2010-07-24 19:05:08 -04:00
|
|
|
PKGNAME-main= ruby-${VERSION}.${PATCHLEVEL}
|
|
|
|
PKGNAME-iconv= ruby-iconv-${VERSION}.${PATCHLEVEL}
|
|
|
|
PKGNAME-gdbm= ruby-gdbm-${VERSION}.${PATCHLEVEL}
|
|
|
|
PKGNAME-tk= ruby-tk-${VERSION}.${PATCHLEVEL}
|
2010-09-14 08:03:42 -04:00
|
|
|
REVISION-main= 4
|
2010-07-24 19:05:08 -04:00
|
|
|
REVISION-iconv= 4
|
|
|
|
REVISION-gdbm= 3
|
|
|
|
REVISION-tk= 4
|
2005-12-29 12:27:31 -05:00
|
|
|
|
2004-02-20 17:52:57 -05:00
|
|
|
CATEGORIES= lang
|
2002-09-20 10:58:38 -04:00
|
|
|
|
2004-02-20 17:52:57 -05:00
|
|
|
HOMEPAGE= http://www.ruby-lang.org/
|
2000-03-28 08:16:02 -05:00
|
|
|
|
2007-12-27 13:32:32 -05:00
|
|
|
MAINTAINER= Bernd Ahlers <bernd@openbsd.org>
|
2005-12-29 12:27:31 -05:00
|
|
|
|
|
|
|
# GPL/Artistic/BSD/Public Domain/Beer-Ware
|
2004-02-20 17:52:57 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2000-03-28 08:16:02 -05:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
2004-02-20 17:52:57 -05:00
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-03-28 08:16:02 -05:00
|
|
|
|
2005-12-29 12:27:31 -05:00
|
|
|
MASTER_SITES= ftp://www.ruby-lang.org/pub/ruby/1.8/ \
|
|
|
|
ftp://mirror.nucba.ac.jp/pub/ruby/1.8/ \
|
|
|
|
ftp://ftp.kr.freebsd.org/pub/ruby/1.8/
|
2000-03-28 08:16:02 -05:00
|
|
|
|
2005-12-29 12:27:31 -05:00
|
|
|
CONFIGURE_STYLE= gnu
|
2006-10-18 21:03:17 -04:00
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
2005-12-29 12:27:31 -05:00
|
|
|
--enable-ipv6 \
|
|
|
|
--with-dbm-type=bogus \
|
|
|
|
--with-opt-dir="${LOCALBASE}"
|
2006-10-18 21:03:17 -04:00
|
|
|
CONFIGURE_ENV= PREFIX="${PREFIX}" \
|
2007-01-11 04:34:40 -05:00
|
|
|
LIBruby_VERSION=${LIBruby_VERSION} \
|
|
|
|
CPPFLAGS="-DOPENSSL_NO_STATIC_ENGINE"
|
2005-12-29 12:27:31 -05:00
|
|
|
|
2006-11-24 04:45:08 -05:00
|
|
|
MODULES= converters/libiconv
|
|
|
|
|
|
|
|
WANTLIB-main= c m readline termcap util crypto ncurses ssl z
|
|
|
|
LIB_DEPENDS-main=
|
|
|
|
RUN_DEPENDS-main=
|
2006-10-18 21:03:17 -04:00
|
|
|
|
|
|
|
PSEUDO_FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
|
|
|
|
2006-11-24 04:45:08 -05:00
|
|
|
MULTI_PACKAGES= -main -iconv -gdbm
|
2006-10-18 21:03:17 -04:00
|
|
|
|
2005-12-29 12:27:31 -05:00
|
|
|
.if !${FLAVOR:L:Mno_x11}
|
|
|
|
USE_X11= Yes
|
2006-10-18 21:03:17 -04:00
|
|
|
MULTI_PACKAGES+= -tk
|
2008-09-28 11:43:05 -04:00
|
|
|
CONFIGURE_ARGS+= --with-tcl-include=${PREFIX}/include/tcl8.5 \
|
|
|
|
--with-tk-include=${PREFIX}/include/tk8.5 \
|
2006-10-18 21:03:17 -04:00
|
|
|
--with-X11-dir=${X11BASE}
|
2002-07-03 12:31:28 -04:00
|
|
|
.endif
|
|
|
|
|
2006-11-24 04:45:08 -05:00
|
|
|
WANTLIB-iconv= c m
|
|
|
|
LIB_DEPENDS-iconv= ruby.>=1::lang/ruby \
|
|
|
|
${MODLIBICONV_LIB_DEPENDS}
|
|
|
|
RUN_DEPENDS-iconv= ${MODLIBICONV_RUN_DEPENDS}
|
2005-12-29 12:27:31 -05:00
|
|
|
|
2006-11-24 04:45:08 -05:00
|
|
|
WANTLIB-gdbm= c m
|
|
|
|
LIB_DEPENDS-gdbm= gdbm.>=3::databases/gdbm \
|
|
|
|
ruby.>=1::lang/ruby
|
|
|
|
RUN_DEPENDS-gdbm=
|
2000-03-28 08:16:02 -05:00
|
|
|
|
2006-11-19 06:54:44 -05:00
|
|
|
.if !${FLAVOR:L:Mno_x11}
|
2009-08-10 13:31:07 -04:00
|
|
|
WANTLIB-tk= X11 c m pthread-stubs tcl85 xcb
|
2009-03-09 13:54:21 -04:00
|
|
|
LIB_DEPENDS-tk= tk85:tk->=8.5,<8.6:x11/tk/8.5 \
|
2006-11-24 04:45:08 -05:00
|
|
|
ruby.>=1::lang/ruby
|
|
|
|
RUN_DEPENDS-tk=
|
2006-10-18 21:03:17 -04:00
|
|
|
.endif
|
2006-07-06 04:22:20 -04:00
|
|
|
|
2007-12-27 13:32:32 -05:00
|
|
|
REGRESS_DEPENDS= :${PKGNAME-main}:lang/ruby
|
2006-10-18 21:03:17 -04:00
|
|
|
INSTALL_TARGET= install install-doc
|
|
|
|
REV= 1.8
|
|
|
|
SUB= ${MACHINE_ARCH:S/amd64/x86_64/}-openbsd${OSREV}
|
|
|
|
SUBST_VARS= SUB REV
|
2000-03-28 08:16:02 -05:00
|
|
|
|
2006-11-27 04:52:52 -05:00
|
|
|
# Building the ruby documentation consumes lots of memory.
|
|
|
|
VMEM_WARNING= Yes
|
|
|
|
|
2000-06-28 09:51:23 -04:00
|
|
|
.include <bsd.port.mk>
|