libgpg-error: Fix compiling with uclibc
[openadk.git] / package / ruby / Makefile
blobb5e7689ce3d00f0d0d2401597a20557890314498
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= ruby
7 PKG_VERSION:= 3.0.2
8 PKG_RELEASE:= 1
9 PKG_HASH:= 570e7773100f625599575f363831166d91d49a1ab97d3ab6495af44774155c40
10 PKG_DESCR:= scripting language
11 PKG_SECTION:= dev/lang
12 PKG_DEPENDS:= libressl zlib
13 PKG_BUILDDEP:= ruby-host libressl zlib
14 HOST_BUILDDEP:= libressl-host
15 PKG_NEEDS:= threads
16 PKG_URL:= http://www.ruby-lang.org/
17 PKG_SITES:= http://ftp.ruby-lang.org/pub/ruby/3.0/
19 include ${ADK_TOPDIR}/mk/host.mk
20 include ${ADK_TOPDIR}/mk/package.mk
22 $(eval $(call HOST_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE}))
23 $(eval $(call PKG_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
25 AUTOTOOL_STYLE:= autoreconf
26 # uClibc setpgrp does not take arguments
27 CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes \
28 stack_protector=no \
29 rb_cv_binary_elf=yes
30 CONFIGURE_ARGS+= --disable-install-doc \
31 --with-out-ext=fiddle \
32 --with-baseruby=${STAGING_HOST_DIR}/usr/bin/ruby
34 MAKE_FILE:= GNUmakefile
35 XAKE_FLAGS+= optflags='' debugflags='' dldflags="$(TARGET_LDFLAGS)"
36 ALL_TARGET:= main
37 INSTALL_TARGET:= install-nodoc
39 HOST_CONFIGURE_ARGS+= --disable-install-doc \
40 --disable-shared \
41 --with-out-ext=curses,readline \
42 --disable-rubygems
43 HOST_ALL_TARGET:= main
44 HOST_INSTALL_TARGET:= install-nodoc
45 HOST_XAKE_FLAGS:= DESTDIR=""
47 ruby-install:
48 ${INSTALL_DIR} ${IDIR_RUBY}/usr/lib/ruby
49 ${INSTALL_DIR} ${IDIR_RUBY}/usr/bin
50 ${CP} ${WRKINST}/usr/lib/libruby.so* ${IDIR_RUBY}/usr/lib
51 ${CP} ${WRKINST}/usr/lib/ruby/* ${IDIR_RUBY}/usr/lib/ruby
52 ${INSTALL_BIN} ${WRKINST}/usr/bin/* ${IDIR_RUBY}/usr/bin
54 include ${ADK_TOPDIR}/mk/host-bottom.mk
55 include ${ADK_TOPDIR}/mk/pkg-bottom.mk