50 lines
1 KiB
Makefile
50 lines
1 KiB
Makefile
VERSION = 3.0.6
|
|
DISTNAME = ruby-${VERSION}
|
|
SHARED_LIBS = ruby30 0.0
|
|
NEXTVER = 3.1
|
|
PKGSPEC-main ?= ruby->=3.0.0,<${NEXTVER}
|
|
|
|
REVISION-main = 0
|
|
|
|
# Backport fix for fixnum*fixnum multiplication on octeon
|
|
PATCHFILES.p = ruby-octeon-fix-1{fe6245b4309c855e6aca5b786ad50a72d53d278a}.patch
|
|
|
|
PSEUDO_FLAVORS= no_ri_docs bootstrap
|
|
# Do not build the RI docs on slow arches
|
|
.if ${MACHINE_ARCH:Malpha} || ${MACHINE_ARCH:Marm} || ${MACHINE_ARCH:Mhppa}
|
|
FLAVOR?= no_ri_docs bootstrap
|
|
.else
|
|
FLAVOR?=
|
|
.endif
|
|
|
|
MULTI_PACKAGES = -main -gdbm -ri_docs
|
|
.include <bsd.port.arch.mk>
|
|
|
|
.if ${BUILD_PACKAGES:M-ri_docs}
|
|
ALL_TARGET += rdoc
|
|
INSTALL_TARGET += install-doc
|
|
.endif
|
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/tool
|
|
|
|
# Fix path for JIT compiler to not use shims in ports obj bin dir
|
|
CONFIGURE_ENV += ac_cv_path_MJIT_CC=`which ${CC}`
|
|
|
|
WANTLIB-main += curses yaml-0
|
|
|
|
post-extract:
|
|
${POST_EXTRACT}
|
|
|
|
pre-configure:
|
|
${FIX_RIPPER}
|
|
|
|
pre-install:
|
|
${PRE_INSTALL}
|
|
|
|
post-install:
|
|
${FIX_RBCONFIG}
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && make check
|
|
|
|
.include <bsd.port.mk>
|