Sha256: 8f30e2769d221f17e96fd025268ca448e9031fa8f16ecda1638f6ddc7da8856b

Contents?: true

Size: 568 Bytes

Versions: 2

Compression:

Stored size: 568 Bytes

Contents

ENV["ARCHFLAGS"] = "-arch #{`uname -p` =~ /powerpc/ ? 'ppc' : 'i386'}"

require 'mkmf'

LIBDIR = Config::CONFIG['libdir']
INCLUDEDIR = Config::CONFIG['includedir']

HEADER_DIRS = [
    '/opt/local/include/opencv',
]

LIB_DIRS = [
  LIBDIR,
  '/opt/local/lib',
]

dir_config('opencv', "/opt/local/include/opencv", "/opt/local/lib")
dir_config('qrencode', "/opt/local/include", "/opt/local/lib")
%w{ qrencode cxcore cv highgui }.each do |lib|
  abort "need #{lib}" unless have_library(lib)
end
find_header('qrencode.h')
have_library('stdc++')
create_makefile('qrtools')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qrtools-1.0.1 ext/qrtools/extconf.rb
qrtools-1.0.0 ext/qrtools/extconf.rb