diff options
| author | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-14 14:05:28 +0100 |
|---|---|---|
| committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-14 14:05:28 +0100 |
| commit | 8f39dc5c8c3d0b77daebd90f927e0bc78bca7d1d (patch) | |
| tree | f064c23ea4a5ac3f8dd4730997a3426f3630452d /package/ruby/Makefile | |
| parent | 80cf711c344256c59b857da6cd7fc91898f90752 (diff) | |
| parent | a03e16ce46353740a2b778beda4dda03c0252e07 (diff) | |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/ruby/Makefile')
| -rw-r--r-- | package/ruby/Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/package/ruby/Makefile b/package/ruby/Makefile index 35835b9b3..21ec52811 100644 --- a/package/ruby/Makefile +++ b/package/ruby/Makefile @@ -18,19 +18,24 @@ include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,RUBY,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) MAKE_FILE:= GNUmakefile -XAKE_FLAGS+= optflags='' debugflags='' -CONFIGURE_ARGS+= --enable-wide-getaddrinfo +XAKE_FLAGS+= optflags='' debugflags='' BASERUBY="${WRKBUILD}/hostruby" # uClibc setpgrp does not take arguments CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes INSTALL_TARGET:= install-nodoc -# Enable some ruby extension / options -post-configure: - #echo "option nodynamic" >> ${WRKBUILD}/ext/Setup - #echo "socket" >> ${WRKBUILD}/ext/Setup +pre-configure: + cp ${WRKBUILD}/ext/Setup ${WRKBUILD}/ext/Setup.orig + echo "option nodynamic" >> ${WRKBUILD}/ext/Setup + (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \ + ./configure --prefix=$(STAGING_TOOLS) \ + ); + $(MAKE) -C ${WRKBUILD} ruby + cp ${WRKBUILD}/ruby ${WRKBUILD}/hostruby + cp ${WRKBUILD}/ext/Setup.orig ${WRKBUILD}/ext/Setup + $(MAKE) -C ${WRKBUILD} install-nodoc + $(MAKE) -C ${WRKBUILD} clean post-install: - rm ${WRKINST}/usr/lib/*.a rm -rf ${WRKINST}/usr/lib/site_ruby rm -rf ${WRKINST}/usr/include ${CP} ${WRKINST}/usr ${IDIR_RUBY}/ |
