File: extconf.rb

package info (click to toggle)
ruby-zoom 0.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 264 kB
  • sloc: ansic: 680; xml: 262; ruby: 255; makefile: 4
file content (18 lines) | stat: -rw-r--r-- 363 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'mkmf'
require 'pkg-config'

unless PKGConfig.have_package('yaz')
  $stderr.puts 'yaz development files do not appear to be installed'
  exit(false)
end

unless have_header('yaz/zoom.h')
  $stderr.puts 'yaz zoom header not available'
  exit
end

$CFLAGS << " #{PKGConfig.cflags('yaz')} "
$LDFLAGS << " #{PKGConfig.libs('yaz')} "

create_makefile("zoom")