Sha256: cb96077dd01a5479c0507f5589d6ee9b20edf93d92d92bd13f98b28ced196eae
Contents?: true
Size: 1.29 KB
Versions: 3
Compression:
Stored size: 1.29 KB
Contents
require 'mkmf' require 'rbconfig' host_os = RbConfig::CONFIG['host_os'] LASEM_DIR = File.join(File.dirname(__FILE__), "lasem", "src") ITEX_DIR = File.join(File.dirname(__FILE__), "itexToMML") if host_os =~ /darwin|mac os/ ENV['PKG_CONFIG_PATH'] = "/opt/X11/lib/pkgconfig:#{ENV['PKG_CONFIG_PATH']}" end have_library("xml2") find_header("libxml/tree.h", "/usr/include/libxml2", "/usr/local/include/libxml2") find_header("libxml/parser.h", "/usr/include/libxml2", "/usr/local/include/libxml2") find_header("libxml/xpath.h", "/usr/include/libxml2", "/usr/local/include/libxml2") find_header("libxml/xpathInternals.h", "/usr/include/libxml2", "/usr/local/include/libxml2") # TODO: this is so frakkin' stupid. but I can't seem to get subdirs to compile any other way # the `destroy_copies` task, immediately after `compile`, will destroy these files FileUtils.cp_r(Dir.glob("#{LASEM_DIR}/*"), File.dirname(__FILE__)) File.delete(File.join(File.dirname(__FILE__), "lasemrender.c")) FileUtils.cp_r(Dir.glob("#{ITEX_DIR}/*"), File.dirname(__FILE__)) have_library("pangocairo-1.0") $LDFLAGS += " #{`pkg-config --static --libs glib-2.0 gdk-pixbuf-2.0 cairo pango`.chomp}" $CFLAGS += " #{`pkg-config --cflags glib-2.0 gdk-pixbuf-2.0 cairo pango`.chomp} -I#{LASEM_DIR} -I#{ITEX_DIR}" create_makefile("mathematical/mathematical")
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mathematical-0.4.2 | ext/mathematical/extconf.rb |
mathematical-0.4.1 | ext/mathematical/extconf.rb |
mathematical-0.4.0 | ext/mathematical/extconf.rb |