12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include ${ADK_TOPDIR}/rules.mk
- PKG_NAME:= ruby
- PKG_VERSION:= 2.1.5
- PKG_RELEASE:= 1
- PKG_HASH:= 4305cc6ceb094df55210d83548dcbeb5117d74eea25196a9b14fa268d354b100
- PKG_DESCR:= scripting language
- PKG_SECTION:= dev/lang
- PKG_DEPENDS:= librt libpthread
- PKG_BUILDDEP:= ruby-host
- HOST_BUILDDEP:= readline-host
- PKG_URL:= http://www.ruby-lang.org/
- PKG_SITES:= http://ftp.ruby-lang.org/pub/ruby/2.1/
- PKG_NOPARALLEL:= 1
- DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
- include ${ADK_TOPDIR}/mk/host.mk
- include ${ADK_TOPDIR}/mk/package.mk
- $(eval $(call HOST_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE}))
- $(eval $(call PKG_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
- # uClibc setpgrp does not take arguments
- CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes \
- stack_protector=no \
- rb_cv_binary_elf=yes
- CONFIGURE_ARGS+= --disable-install-doc \
- --with-baseruby=${STAGING_HOST_DIR}/usr/bin/ruby
- MAKE_FILE:= GNUmakefile
- XAKE_FLAGS+= optflags='' debugflags='' dldflags="$(TARGET_LDFLAGS)"
- ALL_TARGET:= main
- INSTALL_TARGET:= install-nodoc
- HOST_CONFIGURE_ARGS+= --disable-install-doc \
- --disable-shared \
- --with-out-ext=curses,openssl,readline \
- --disable-rubygems
- HOST_ALL_TARGET:= main
- HOST_INSTALL_TARGET:= install-nodoc
- HOST_XAKE_FLAGS:= V=1 DESTDIR=""
- ruby-install:
- ${INSTALL_DIR} ${IDIR_RUBY}/usr/lib/ruby
- ${INSTALL_DIR} ${IDIR_RUBY}/usr/bin
- ${CP} ${WRKINST}/usr/lib/libruby.so* ${IDIR_RUBY}/usr/lib
- ${CP} ${WRKINST}/usr/lib/ruby/* ${IDIR_RUBY}/usr/lib/ruby
- ${INSTALL_BIN} ${WRKINST}/usr/bin/* ${IDIR_RUBY}/usr/bin
- include ${ADK_TOPDIR}/mk/host-bottom.mk
- include ${ADK_TOPDIR}/mk/pkg-bottom.mk
|