2011-01-29 21:32:53 +01:00
|
|
|
Index: configure.ac
|
|
|
|
===================================================================
|
2024-02-23 11:22:54 +01:00
|
|
|
--- libcaca/configure.ac
|
|
|
|
+++ libcaca-new/configure.ac
|
2022-11-16 15:17:39 +01:00
|
|
|
@@ -489,14 +489,17 @@ ac_cv_my_have_ruby_minitest="no"
|
2012-05-14 12:15:56 +02:00
|
|
|
if test "${enable_ruby}" != "no"; then
|
|
|
|
AC_PATH_PROG(RUBY, ruby, no)
|
2008-06-26 15:55:14 +02:00
|
|
|
if test "${RUBY}" != "no"; then
|
2018-01-23 12:04:42 +01:00
|
|
|
- RUBY_CFLAGS="$("${RUBY}" -r mkmf -e 'conf = RbConfig::CONFIG.merge("hdrdir" => $hdrdir, "arch_hdrdir" => $arch_hdrdir); print RbConfig::expand("#$INCFLAGS", conf)')"
|
2012-05-14 12:15:56 +02:00
|
|
|
+ RUBY_CFLAGS=$(pkg-config --cflags ruby-1.9)
|
|
|
|
+ if test -z "$RUBY_CFLAGS"; then
|
2015-03-13 07:57:03 +01:00
|
|
|
+ RUBY_CFLAGS="-I$(ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"archdir"@:>@')"
|
2012-05-14 12:15:56 +02:00
|
|
|
+ fi
|
2018-01-23 12:04:42 +01:00
|
|
|
RUBY_LIBS="-L$("${RUBY}" -r rbconfig -e 'print RbConfig::CONFIG@<:@"libdir"@:>@') -l$("${RUBY}" -r rbconfig -e 'print RbConfig::CONFIG@<:@"RUBY_SO_NAME"@:>@')"
|
|
|
|
- RUBY_SITEARCHDIR=`"${RUBY}" -r rbconfig -e 'print RbConfig::CONFIG@<:@"sitearchdir"@:>@'`
|
|
|
|
- RUBY_SITELIBDIR=`"${RUBY}" -r rbconfig -e 'print RbConfig::CONFIG@<:@"sitelibdir"@:>@'`
|
2015-03-13 07:57:03 +01:00
|
|
|
+ RUBY_VENDORARCHDIR=`ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"vendorarchdir"@:>@'`
|
|
|
|
+ RUBY_VENDORLIBDIR=`ruby -r rbconfig -e 'print RbConfig::CONFIG@<:@"vendorlibdir"@:>@'`
|
2008-06-26 15:55:14 +02:00
|
|
|
AC_SUBST(RUBY_CFLAGS)
|
|
|
|
AC_SUBST(RUBY_LIBS)
|
|
|
|
- AC_SUBST(RUBY_SITEARCHDIR)
|
|
|
|
- AC_SUBST(RUBY_SITELIBDIR)
|
|
|
|
+ AC_SUBST(RUBY_VENDORARCHDIR)
|
|
|
|
+ AC_SUBST(RUBY_VENDORLIBDIR)
|
|
|
|
CPPFLAGS="${CPPFLAGS} ${RUBY_CFLAGS}"
|
|
|
|
AC_CHECK_HEADERS([ruby.h],
|
|
|
|
[ac_cv_my_have_ruby="yes"
|
2011-01-29 21:32:53 +01:00
|
|
|
Index: ruby/Makefile.am
|
|
|
|
===================================================================
|
2024-02-23 11:22:54 +01:00
|
|
|
--- libcaca/ruby/Makefile.am
|
|
|
|
+++ libcaca-new/ruby/Makefile.am
|
2018-01-23 12:04:42 +01:00
|
|
|
@@ -1,12 +1,12 @@
|
|
|
|
|
|
|
|
include $(top_srcdir)/build/autotools/common.am
|
2008-06-26 15:55:14 +02:00
|
|
|
|
|
|
|
-rubylibdir = $(RUBY_SITEARCHDIR)
|
|
|
|
-rubysitedir = $(RUBY_SITELIBDIR)
|
|
|
|
+rubylibdir = $(RUBY_VENDORARCHDIR)
|
|
|
|
+rubyvendordir = $(RUBY_VENDORLIBDIR)
|
|
|
|
|
|
|
|
if USE_RUBY
|
2009-03-17 20:13:24 +01:00
|
|
|
rubylib_LTLIBRARIES = caca.la
|
2008-06-26 15:55:14 +02:00
|
|
|
-rubysite_DATA = lib/caca.rb
|
|
|
|
+rubyvendor_DATA = lib/caca.rb
|
2018-01-23 12:04:42 +01:00
|
|
|
if USE_RUBY_MINITEST
|
2008-06-26 15:55:14 +02:00
|
|
|
TESTS = test
|
|
|
|
endif
|