linamh/dev-libs/stfl/files/stfl-0.22-ruby-sharedlib.patch

15 lines
735 B
Diff
Raw Permalink Normal View History

2023-04-06 11:47:15 +02:00
--- stfl-0.22/ruby/Makefile.snippet.orig
+++ stfl-0.22/ruby/Makefile.snippet
@@ -23,9 +23,9 @@
install: install_ruby
-ruby/build_ok: libstfl.a stfl.h ruby/stfl.i swig/*.i
+ruby/build_ok: libstfl.so.$(VERSION) stfl.h ruby/stfl.i swig/*.i
cd ruby && swig -ruby stfl.i && ruby extconf.rb
- $(MAKE) -C ruby clean && $(MAKE) -C ruby LIBS+="../libstfl.a -lncursesw" CFLAGS+="-pthread -I.." DLDFLAGS+="-pthread" DESTDIR=$(DESTDIR) prefix=$(prefix) sitedir=$(prefix)/$(libdir)/ruby
+ $(MAKE) -C ruby clean && $(MAKE) -C ruby LIBS+="../libstfl.so.$(VERSION) -lncursesw" CFLAGS+="-pthread -I.." DLDFLAGS+="-pthread" DESTDIR=$(DESTDIR) prefix=$(prefix) sitedir=$(prefix)/$(libdir)/ruby
touch ruby/build_ok
install_ruby: ruby/build_ok