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 ${TOPDIR}/rules.mk
10 PKG_MD5SUM
:= 8e2fef56185cfbaf29d0c8329fc77c05
11 PKG_DESCR
:= interpreter for the ruby language
13 PKG_URL
:= http
://www.ruby-lang.org
/
14 PKG_SITES
:= http
://ftp.ruby-lang.org
/pub
/ruby
/1.9/
17 PKG_HOST_DEPENDS
:= !freebsd
!cygwin
19 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}-p
${PKG_EXTRAVER}.
tar.gz
20 WRKDIST
= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}-p
${PKG_EXTRAVER}
22 include ${TOPDIR}/mk
/package.mk
24 $(eval
$(call PKG_template
,RUBY
,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
26 MAKE_FILE
:= GNUmakefile
27 XAKE_FLAGS
+= optflags
='' debugflags
='' dldflags
="$(TARGET_LDFLAGS)"
28 # uClibc setpgrp does not take arguments
29 CONFIGURE_ENV
+= ac_cv_func_setpgrp_void
=yes rb_cv_binary_elf
=yes
30 CONFIGURE_ARGS
+= --disable-install-doc
--with-baseruby
=${WRKBUILD}/hostruby
32 INSTALL_TARGET
:= install-nodoc
35 (cd
${WRKBUILD}; rm -rf config.
{cache
,status
} ; \
36 rb_cv_binary_elf
=yes .
/configure
--prefix=$(STAGING_HOST_DIR
) --disable-install-doc \
38 -$(MAKE
) -C
${WRKBUILD} main Q
=""
39 cp
${WRKBUILD}/ruby
${WRKBUILD}/hostruby
40 $(MAKE
) -C
${WRKBUILD} install-nodoc
41 $(MAKE
) -C
${WRKBUILD} clean
44 ${INSTALL_DIR} ${IDIR_RUBY}/usr
/lib
/ruby
45 ${INSTALL_DIR} ${IDIR_RUBY}/usr
/bin
46 ${CP} ${WRKINST}/usr
/lib
/libruby.so
* ${IDIR_RUBY}/usr
/lib
47 ${CP} ${WRKINST}/usr
/lib
/ruby
/* ${IDIR_RUBY}/usr
/lib
/ruby
48 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/* ${IDIR_RUBY}/usr
/bin
50 include ${TOPDIR}/mk
/pkg-bottom.mk