openbsd-ports/lang/ruby/1.9/Makefile

83 lines
2.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.19 2011/11/09 19:23:35 jeremy Exp $
COMMENT-main = object oriented script language with threads
COMMENT-gdbm = gdbm interface for ruby
COMMENT-dbm = Berkley DB interface for ruby
COMMENT-tk = tk interface for ruby
COMMENT-ri_docs = ri documentation files for ruby
VERSION = 1.9.3
PATCHLEVEL = 0
RUBYLIBREV = 1.9.1
SHARED_LIBS = ruby19 1.0
PKGNAME-main = ruby-${VERSION}.${PATCHLEVEL}
PKGNAME-gdbm = ruby-gdbm-${VERSION}.${PATCHLEVEL}
PKGNAME-dbm = ruby-dbm-${VERSION}.${PATCHLEVEL}
PKGNAME-tk = ruby-tk-${VERSION}.${PATCHLEVEL}
PKGNAME-ri_docs = ruby-ri_docs-${VERSION}.${PATCHLEVEL}
REVISION-main = 0
PKGSPEC-main = ruby->=1.9,<1.10
CONFIGURE_ARGS = --program-suffix=19 \
--with-soname=ruby19 \
--enable-pthread \
--enable-ipv6 \
--disable-option-checking
CONFIGURE_ENV = LIBruby19_VERSION=${LIBruby19_VERSION} \
ac_cv_prog_DOXYGEN="" \
ac_cv_prog_DOT=""
ALL_TARGET = all V=1
INSTALL_TARGET = install-all V=1
MODULES = converters/libiconv
USE_GROFF = Yes
WANTLIB-main = c crypto ffi m ncurses ncursesw pthread readline ssl \
termcap util yaml z ${MODLIBICONV_WANTLIB}
LIB_DEPENDS-main = ${MODLIBICONV_LIB_DEPENDS} \
devel/libyaml \
devel/libffi
RUN_DEPENDS-main = ${MODLIBICONV_RUN_DEPENDS}
PSEUDO_FLAVORS= no_x11
FLAVOR?=
MULTI_PACKAGES = -main -gdbm -dbm -ri_docs
WANTLIB-gdbm = c m gdbm ruby19
LIB_DEPENDS-gdbm = databases/gdbm \
lang/ruby/${REV},-main>=${VERSION}.${PATCHLEVEL}
RUN_DEPENDS-gdbm =
WANTLIB-dbm = c m db ruby19
LIB_DEPENDS-dbm = databases/db/v4 \
lang/ruby/${REV},-main>=${VERSION}.${PATCHLEVEL}
RUN_DEPENDS-dbm =
.if !${FLAVOR:L:Mno_x11}
MULTI_PACKAGES+= -tk
CONFIGURE_ARGS+= --with-tcl-include=${PREFIX}/include/tcl8.5 \
--with-tk-include=${PREFIX}/include/tk8.5 \
--with-X11-dir=${X11BASE}
WANTLIB-tk = X11 c m ruby19 tcl85 tk85
LIB_DEPENDS-tk = tk->=8.5,<8.6:x11/tk/8.5 \
lang/ruby/${REV},-main>=${VERSION}.${PATCHLEVEL}
RUN_DEPENDS-tk =
.endif
SUBST_VARS += RUBYLIBREV
REGRESS_DEPENDS = ${FULLPKGNAME-main}:${BUILD_PKGPATH}
do-regress:
-cd ${WRKSRC} && make test-sample
-cd ${WRKSRC} && make btest-ruby
cd ${WRKSRC} && make test-all
.include <bsd.port.mk>