Skip to content

Instantly share code, notes, and snippets.

@ox
Created October 31, 2013 21:47
Show Gist options
  • Save ox/7257758 to your computer and use it in GitHub Desktop.
Save ox/7257758 to your computer and use it in GitHub Desktop.
require "mkmf"
extension_name = "TagLibArtem"
taglib_config = find_executable("taglib-config")
if taglib_config
prefix = `#{taglib_config} --prefix`.strip
$CFLAGS += " -I#{prefix}/include"
$LDFLAGS += " -L#{prefix}/lib"
else
prefix = "/usr/local"
end
$CFLAGS += "-fpermissive"
$CPPFLAGS = " -I#{prefix}/include"
dir_config(extension_name)
if have_library("tag_c")
create_makefile(extension_name)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment