rbcdio 0.01 → 0.02
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +77 -0
- data/INSTALL +35 -26
- data/Makefile.am +12 -11
- data/Makefile.in +65 -51
- data/NEWS +13 -1
- data/README +10 -9
- data/VERSION +1 -1
- data/config.guess +76 -39
- data/config.sub +71 -31
- data/configure +2361 -1802
- data/configure.ac +4 -4
- data/doc/created.rid +1 -1
- data/doc/fr_file_index.html +1 -0
- data/example/README +6 -1
- data/example/audio.rb +1 -2
- data/example/cd-read.rb +2 -3
- data/example/cdchange.rb +71 -0
- data/example/device.rb +2 -3
- data/example/drivers.rb +2 -3
- data/example/drives.rb +2 -3
- data/example/eject.rb +2 -3
- data/example/iso1.rb +2 -3
- data/example/iso2.rb +2 -3
- data/example/iso3.rb +2 -3
- data/example/tracks.rb +2 -3
- data/ext/cdio/Makefile +30 -16
- data/ext/cdio/extconf.rb +9 -1
- data/ext/cdio/rubycdio_wrap.c +3609 -1892
- data/ext/iso9660/Makefile +29 -15
- data/ext/iso9660/extconf.rb +7 -2
- data/ext/iso9660/rubyiso9660_wrap.c +3347 -1647
- data/install-sh +266 -82
- data/lib/cdio.rb +10 -10
- data/lib/iso9660.rb +5 -5
- data/missing +34 -27
- data/swig/device.swg +2 -2
- data/swig/rubycdio.swg +2 -2
- data/swig/rubyiso9660.swg +3 -3
- data/test/cdiotest.rb +9 -4
- data/test/isotest.rb +4 -2
- metadata +5 -3
data/configure.ac
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2006 Rocky Bernstein <rocky@
|
1
|
+
# Copyright (C) 2006, 2007 Rocky Bernstein <rocky@gnu.org>
|
2
2
|
|
3
3
|
# This program is free software; you can redistribute it and/or modify
|
4
4
|
# it under the terms of the GNU General Public License as published by
|
@@ -18,12 +18,12 @@
|
|
18
18
|
## Note: the version number (the 2nd parameter in AC_INIT)
|
19
19
|
## is picked up inside the Python debugger script.
|
20
20
|
|
21
|
-
AC_INIT([rubycdio],[0.
|
21
|
+
AC_INIT([rubycdio],[0.02],[libcdio-rubycdio-devel@gnu.org])
|
22
22
|
|
23
23
|
##
|
24
24
|
## Check for Python interpreter and make we have a recent version.
|
25
25
|
##
|
26
|
-
AC_REVISION([$Id: configure.ac,v 1.
|
26
|
+
AC_REVISION([$Id: configure.ac,v 1.6 2007/10/13 17:11:45 rocky Exp $])dnl
|
27
27
|
|
28
28
|
##
|
29
29
|
## In maintainer mode we produce a ChangeLog
|
@@ -140,7 +140,7 @@ AC_SUBST(LDSHARED)
|
|
140
140
|
AC_SUBST(SWIG_FLAGS)
|
141
141
|
|
142
142
|
##
|
143
|
-
## Test program needs location of
|
143
|
+
## Test program needs location of rbcdio shared library
|
144
144
|
## This is a hack, but I at present I'm not sure what the best thing to
|
145
145
|
## do is.
|
146
146
|
RUBYCDIO_LIBDIR=`pwd`
|
data/doc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Fri, 26 Oct 2007 21:25:29 -0400
|
data/doc/fr_file_index.html
CHANGED
@@ -24,6 +24,7 @@
|
|
24
24
|
<a href="files/example/README.html">example/README</a><br />
|
25
25
|
<a href="files/example/audio_rb.html">example/audio.rb</a><br />
|
26
26
|
<a href="files/example/cd-read_rb.html">example/cd-read.rb</a><br />
|
27
|
+
<a href="files/example/cdchange_rb.html">example/cdchange.rb</a><br />
|
27
28
|
<a href="files/example/device_rb.html">example/device.rb</a><br />
|
28
29
|
<a href="files/example/drivers_rb.html">example/drivers.rb</a><br />
|
29
30
|
<a href="files/example/drives_rb.html">example/drives.rb</a><br />
|
data/example/README
CHANGED
@@ -7,6 +7,11 @@ libcdio supports Disc Images as well as a realCD-ROM, a CDRWIN
|
|
7
7
|
(BIN/CUE), cdrdao (TOC) or Nero NRG disc image can be played as
|
8
8
|
well. Run --help to get a list of options
|
9
9
|
|
10
|
+
== cdchagne.rb
|
11
|
+
|
12
|
+
A program to test if a CD has been changed since the last
|
13
|
+
change test.
|
14
|
+
|
10
15
|
== device.rb
|
11
16
|
|
12
17
|
A program to show drive capabilities. Various drives on various OS/s
|
@@ -44,4 +49,4 @@ A program to show using ISO9660::IFS to extract a file.
|
|
44
49
|
A program to list track numbers and logical sector numbers of a
|
45
50
|
Compact Disc.
|
46
51
|
|
47
|
-
$Id: README,v 1.
|
52
|
+
$Id: README,v 1.4 2007/10/13 23:00:18 rocky Exp $
|
data/example/audio.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# $Id: audio.rb,v 1.
|
2
|
+
# $Id: audio.rb,v 1.10 2007/10/13 23:25:41 rocky Exp $
|
3
3
|
#
|
4
4
|
# A program to show use of audio controls. See cdda-player from the
|
5
5
|
# libcdio distribution for a more complete program.
|
@@ -27,7 +27,6 @@ if(File::exists?(mypath + "/../ext/cdio/rubycdio.so"))
|
|
27
27
|
$: << File.dirname(__FILE__) + '/../lib'
|
28
28
|
else
|
29
29
|
require 'rubygems'
|
30
|
-
require_gem "rbcdio"
|
31
30
|
end
|
32
31
|
require "cdio"
|
33
32
|
require 'getoptlong'
|
data/example/cd-read.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# $Id: cd-read.rb,v 1.
|
2
|
+
# $Id: cd-read.rb,v 1.11 2007/10/13 23:25:41 rocky Exp $
|
3
3
|
#
|
4
4
|
# A program to read CD blocks. See read-cd from the libcdio distribution
|
5
5
|
# more complete program.
|
6
6
|
|
7
7
|
#
|
8
|
-
# Copyright (C) 2006 Rocky Bernstein <rocky@gnu.org>
|
8
|
+
# Copyright (C) 2006, 2007 Rocky Bernstein <rocky@gnu.org>
|
9
9
|
#
|
10
10
|
# This program is free software; you can redistribute it and/or modify
|
11
11
|
# it under the terms of the GNU General Public License as published by
|
@@ -27,7 +27,6 @@ if(File::exists?(mypath + "/../lib/cdio.rb"))
|
|
27
27
|
$: << File.dirname(__FILE__) + '/../ext/cdio'
|
28
28
|
else
|
29
29
|
require 'rubygems'
|
30
|
-
require_gem "rbcdio"
|
31
30
|
end
|
32
31
|
require "cdio"
|
33
32
|
require 'getoptlong'
|
data/example/cdchange.rb
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#$Id: cdchange.rb,v 1.2 2007/10/13 23:31:51 rocky Exp $ -*- Python -*-
|
3
|
+
#
|
4
|
+
# A Program to show CD media changing
|
5
|
+
#
|
6
|
+
#
|
7
|
+
# Copyright (C) 2007 Rocky Bernstein <rocky@gnu.org>
|
8
|
+
#
|
9
|
+
# This program is free software; you can redistribute it and/or modify
|
10
|
+
# it under the terms of the GNU General Public License as published by
|
11
|
+
# the Free Software Foundation; either version 2 of the License, or
|
12
|
+
# (at your option) any later version.
|
13
|
+
#
|
14
|
+
# This program is distributed in the hope that it will be useful,
|
15
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17
|
+
# GNU General Public License for more details.
|
18
|
+
#
|
19
|
+
# You should have received a copy of the GNU General Public License
|
20
|
+
# along with this program; if not, write to the Free Software
|
21
|
+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
22
|
+
#
|
23
|
+
mypath = File.dirname(__FILE__)
|
24
|
+
|
25
|
+
if(File::exists?(mypath + "/../lib/cdio.rb"))
|
26
|
+
$: << File.dirname(__FILE__) + '/../lib'
|
27
|
+
$: << File.dirname(__FILE__) + '/../ext/cdio'
|
28
|
+
else
|
29
|
+
require 'rubygems'
|
30
|
+
end
|
31
|
+
require "cdio"
|
32
|
+
|
33
|
+
sleep_time = 15
|
34
|
+
if ARGV[0]
|
35
|
+
begin
|
36
|
+
d = Cdio::Device.new(ARGV.first)
|
37
|
+
rescue IOError
|
38
|
+
print "Problem opening CD-ROM: %s" % sys.argv[1]
|
39
|
+
exit 1
|
40
|
+
end
|
41
|
+
if ARGV[1]
|
42
|
+
begin
|
43
|
+
sleep_time = ARGV[1].to_i
|
44
|
+
rescue
|
45
|
+
print "Invalid sleep parameter #{ARGV[1]}"
|
46
|
+
exit 2
|
47
|
+
end
|
48
|
+
end
|
49
|
+
else
|
50
|
+
begin
|
51
|
+
d = Cdio::Device.new(nil, Rubycdio::DRIVER_UNKNOWN)
|
52
|
+
rescue IOError
|
53
|
+
print "Problem finding a CD-ROM"
|
54
|
+
exit 1
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
if d.media_changed?
|
59
|
+
print "Initial media status: changed"
|
60
|
+
else
|
61
|
+
print "Initial media status: not changed"
|
62
|
+
end
|
63
|
+
|
64
|
+
print "Giving you #{sleep_time} seconds to change CD if you want to do so."
|
65
|
+
sleep(sleep_time)
|
66
|
+
if d.media_changed?
|
67
|
+
print "Media status: changed"
|
68
|
+
else
|
69
|
+
print "Media status: not changed"
|
70
|
+
end
|
71
|
+
d.close()
|
data/example/device.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# $Id: device.rb,v 1.
|
2
|
+
# $Id: device.rb,v 1.11 2007/10/13 23:25:41 rocky Exp $
|
3
3
|
#
|
4
4
|
# A Program to show CD-ROM device information
|
5
5
|
|
6
|
-
# Copyright (C) 2006 Rocky Bernstein <rocky@gnu.org>
|
6
|
+
# Copyright (C) 2006, 2007 Rocky Bernstein <rocky@gnu.org>
|
7
7
|
#
|
8
8
|
# This program is free software; you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU General Public License as published by
|
@@ -25,7 +25,6 @@ if(File::exists?(mypath + "/../lib/cdio.rb"))
|
|
25
25
|
$: << File.dirname(__FILE__) + '/../lib'
|
26
26
|
else
|
27
27
|
require 'rubygems'
|
28
|
-
require_gem "rbcdio"
|
29
28
|
end
|
30
29
|
require "cdio"
|
31
30
|
|
data/example/drivers.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# $Id: drivers.rb,v 1.
|
2
|
+
# $Id: drivers.rb,v 1.11 2007/10/13 23:25:41 rocky Exp $
|
3
3
|
#
|
4
4
|
# Program to read CD blocks. See read-cd from the libcdio distribution
|
5
5
|
# for a more complete program.
|
6
6
|
|
7
7
|
#
|
8
|
-
# Copyright (C) 2006 Rocky Bernstein <rocky@
|
8
|
+
# Copyright (C) 2006, 2007 Rocky Bernstein <rocky@gnu.org>
|
9
9
|
#
|
10
10
|
# This program is free software; you can redistribute it and/or modify
|
11
11
|
# it under the terms of the GNU General Public License as published by
|
@@ -27,7 +27,6 @@ if(File::exists?(mypath + "/../lib/cdio.rb"))
|
|
27
27
|
$: << File.dirname(__FILE__) + '/../lib'
|
28
28
|
else
|
29
29
|
require 'rubygems'
|
30
|
-
require_gem "rbcdio"
|
31
30
|
end
|
32
31
|
require "cdio"
|
33
32
|
|
data/example/drives.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# $Id: drives.rb,v 1.
|
2
|
+
# $Id: drives.rb,v 1.9 2007/10/13 23:25:41 rocky Exp $
|
3
3
|
#
|
4
4
|
# Program to read CD blocks. See read-cd from the libcdio distribution
|
5
5
|
# for a more complete program.
|
6
6
|
|
7
7
|
#
|
8
|
-
# Copyright (C) 2006 Rocky Bernstein <rocky@gnu.org>
|
8
|
+
# Copyright (C) 2006, 2007 Rocky Bernstein <rocky@gnu.org>
|
9
9
|
#
|
10
10
|
# This program is free software; you can redistribute it and/or modify
|
11
11
|
# it under the terms of the GNU General Public License as published by
|
@@ -27,7 +27,6 @@ if(File::exists?(mypath + "/../lib/cdio.rb"))
|
|
27
27
|
$: << File.dirname(__FILE__) + '/../ext/cdio'
|
28
28
|
else
|
29
29
|
require 'rubygems'
|
30
|
-
require_gem "rbcdio"
|
31
30
|
end
|
32
31
|
require "cdio"
|
33
32
|
|
data/example/eject.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# $Id: eject.rb,v 1.
|
2
|
+
# $Id: eject.rb,v 1.11 2007/10/13 23:25:41 rocky Exp $
|
3
3
|
#
|
4
4
|
# A program to eject and close CD-ROM drive
|
5
5
|
|
6
|
-
# Copyright (C) 2006 Rocky Bernstein <rocky@gnu.org>
|
6
|
+
# Copyright (C) 2006, 2007 Rocky Bernstein <rocky@gnu.org>
|
7
7
|
#
|
8
8
|
# This program is free software; you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU General Public License as published by
|
@@ -25,7 +25,6 @@ if(File::exists?(mypath + "/../lib/cdio.rb"))
|
|
25
25
|
$: << File.dirname(__FILE__) + '/../ext/cdio'
|
26
26
|
else
|
27
27
|
require 'rubygems'
|
28
|
-
require_gem "rbcdio"
|
29
28
|
end
|
30
29
|
require "cdio"
|
31
30
|
|
data/example/iso1.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# $Id: iso1.rb,v 1.
|
2
|
+
# $Id: iso1.rb,v 1.10 2007/10/13 23:25:41 rocky Exp $
|
3
3
|
#
|
4
4
|
# A simple program to show using libiso9660 to list files in a directory of
|
5
5
|
# an ISO-9660 image.
|
@@ -8,7 +8,7 @@
|
|
8
8
|
# use in the listing. Otherwise a compiled-in default ISO 9660 image
|
9
9
|
# name (that comes with the libcdio distribution) will be used.
|
10
10
|
|
11
|
-
# Copyright (C) 2006 Rocky Bernstein <rocky@gnu.org>
|
11
|
+
# Copyright (C) 2006, 2007 Rocky Bernstein <rocky@gnu.org>
|
12
12
|
#
|
13
13
|
# This program is free software; you can redistribute it and/or modify
|
14
14
|
# it under the terms of the GNU General Public License as published by
|
@@ -31,7 +31,6 @@ if(File::exists?(mypath + "/../lib/cdio.rb"))
|
|
31
31
|
$: << File.dirname(__FILE__) + '/../ext/iso9660'
|
32
32
|
else
|
33
33
|
require 'rubygems'
|
34
|
-
require_gem "rbcdio"
|
35
34
|
end
|
36
35
|
|
37
36
|
require "iso9660"
|
data/example/iso2.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# $Id: iso2.rb,v 1.
|
2
|
+
# $Id: iso2.rb,v 1.8 2007/10/13 23:25:41 rocky Exp $
|
3
3
|
# A program to show using iso9660 to extract a file
|
4
4
|
# from an ISO-9660 image.
|
5
5
|
#
|
@@ -7,7 +7,7 @@
|
|
7
7
|
# use in the extraction. Otherwise a compiled in default ISO 9660
|
8
8
|
# image name (that comes with the libcdio distribution) will be used.
|
9
9
|
|
10
|
-
# Copyright (C) 2006 Rocky Bernstein <rocky@gnu.org>
|
10
|
+
# Copyright (C) 2006, 2007 Rocky Bernstein <rocky@gnu.org>
|
11
11
|
#
|
12
12
|
# This program is free software; you can redistribute it and/or modify
|
13
13
|
# it under the terms of the GNU General Public License as published by
|
@@ -30,7 +30,6 @@ if(File::exists?(mypath + "/../lib/cdio.rb"))
|
|
30
30
|
$: << File.dirname(__FILE__) + '/../ext/iso9660'
|
31
31
|
else
|
32
32
|
require 'rubygems'
|
33
|
-
require_gem "rbcdio"
|
34
33
|
end
|
35
34
|
|
36
35
|
require "iso9660"
|
data/example/iso3.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# $Id: iso3.rb,v 1.
|
2
|
+
# $Id: iso3.rb,v 1.8 2007/10/13 23:25:42 rocky Exp $
|
3
3
|
#
|
4
4
|
# A program to show using ISO9660::IFS to extract a file
|
5
5
|
# from an ISO-9660 image.
|
@@ -8,7 +8,7 @@
|
|
8
8
|
# use in the extraction. Otherwise a compiled in default ISO 9660
|
9
9
|
# image name (that comes with the libcdio distribution) will be used.
|
10
10
|
|
11
|
-
# Copyright (C) 2006 Rocky Bernstein <rocky@
|
11
|
+
# Copyright (C) 2006, 2007 Rocky Bernstein <rocky@gnu.org>
|
12
12
|
#
|
13
13
|
# This program is free software; you can redistribute it and/or modify
|
14
14
|
# it under the terms of the GNU General Public License as published by
|
@@ -31,7 +31,6 @@ if(File::exists?(mypath + "/../lib/cdio.rb"))
|
|
31
31
|
$: << File.dirname(__FILE__) + '/../ext/iso9660'
|
32
32
|
else
|
33
33
|
require 'rubygems'
|
34
|
-
require_gem "rbcdio"
|
35
34
|
end
|
36
35
|
|
37
36
|
require "iso9660"
|
data/example/tracks.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
# $Id: tracks.rb,v 1.
|
2
|
+
# $Id: tracks.rb,v 1.11 2007/10/13 23:25:42 rocky Exp $
|
3
3
|
#
|
4
4
|
# A program to show CD information
|
5
5
|
|
6
|
-
# Copyright (C) 2006 Rocky Bernstein <rocky@gnu.org>
|
6
|
+
# Copyright (C) 2006, 2007 Rocky Bernstein <rocky@gnu.org>
|
7
7
|
#
|
8
8
|
# This program is free software; you can redistribute it and/or modify
|
9
9
|
# it under the terms of the GNU General Public License as published by
|
@@ -25,7 +25,6 @@ if(File::exists?(mypath + "/../lib/cdio.rb"))
|
|
25
25
|
$: << File.dirname(__FILE__) + '/../ext/cdio'
|
26
26
|
else
|
27
27
|
require 'rubygems'
|
28
|
-
require_gem "rbcdio"
|
29
28
|
end
|
30
29
|
require "cdio"
|
31
30
|
|
data/ext/cdio/Makefile
CHANGED
@@ -7,12 +7,19 @@ srcdir = .
|
|
7
7
|
topdir = /usr/lib/ruby/1.8/i586-linux
|
8
8
|
hdrdir = $(topdir)
|
9
9
|
VPATH = $(srcdir):$(topdir):$(hdrdir)
|
10
|
-
prefix = $(DESTDIR)/usr
|
10
|
+
prefix = $(DESTDIR)/usr/local
|
11
11
|
exec_prefix = $(DESTDIR)/usr
|
12
12
|
sitedir = $(libdir)/ruby/site_ruby
|
13
13
|
rubylibdir = $(libdir)/ruby/$(ruby_version)
|
14
|
+
docdir = $(datarootdir)/doc/$(PACKAGE)
|
15
|
+
dvidir = $(docdir)
|
16
|
+
datarootdir = $(prefix)/share
|
14
17
|
archdir = $(rubylibdir)/$(arch)
|
15
18
|
sbindir = $(DESTDIR)/usr/sbin
|
19
|
+
psdir = $(docdir)
|
20
|
+
vendordir = $(libdir)/ruby/vendor_ruby
|
21
|
+
localedir = $(datarootdir)/locale
|
22
|
+
htmldir = $(docdir)
|
16
23
|
datadir = $(DESTDIR)/usr/share
|
17
24
|
includedir = $(DESTDIR)/usr/include
|
18
25
|
infodir = $(DESTDIR)/usr/share/info
|
@@ -21,22 +28,27 @@ mandir = $(DESTDIR)/usr/share/man
|
|
21
28
|
libdir = $(DESTDIR)/usr/lib
|
22
29
|
sharedstatedir = $(DESTDIR)/usr/com
|
23
30
|
oldincludedir = $(DESTDIR)/usr/include
|
31
|
+
pdfdir = $(docdir)
|
24
32
|
sitearchdir = $(sitelibdir)/$(sitearch)
|
33
|
+
vendorarchdir = $(vendorlibdir)/$(vendorarch)
|
25
34
|
bindir = $(DESTDIR)/usr/bin
|
26
35
|
localstatedir = $(DESTDIR)/var
|
36
|
+
vendorlibdir = $(vendordir)/$(ruby_version)
|
27
37
|
sitelibdir = $(sitedir)/$(ruby_version)
|
28
38
|
libexecdir = $(DESTDIR)/usr/lib
|
29
39
|
|
30
40
|
CC = gcc
|
31
41
|
LIBRUBY = $(LIBRUBY_SO)
|
32
42
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
33
|
-
LIBRUBYARG_SHARED = -Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)
|
43
|
+
LIBRUBYARG_SHARED = -Wl,-R -Wl,$(libdir) -L. -L$(libdir) -l$(RUBY_SO_NAME)
|
34
44
|
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
35
45
|
|
36
|
-
|
37
|
-
|
46
|
+
RUBY_EXTCONF_H =
|
47
|
+
CFLAGS = -fPIC -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -g -fno-strict-aliasing -fPIC
|
48
|
+
INCFLAGS = -I. -I$(topdir) -I$(hdrdir) -I$(srcdir)
|
49
|
+
CPPFLAGS =
|
38
50
|
CXXFLAGS = $(CFLAGS)
|
39
|
-
DLDFLAGS =
|
51
|
+
DLDFLAGS = -L. -rdynamic -Wl,-export-dynamic
|
40
52
|
LDSHARED = $(CC) -shared
|
41
53
|
AR = ar
|
42
54
|
EXEEXT =
|
@@ -45,6 +57,7 @@ RUBY_INSTALL_NAME = ruby
|
|
45
57
|
RUBY_SO_NAME = ruby
|
46
58
|
arch = i586-linux
|
47
59
|
sitearch = i586-linux
|
60
|
+
vendorarch = i586-linux
|
48
61
|
ruby_version = 1.8
|
49
62
|
ruby = /usr/bin/ruby
|
50
63
|
RUBY = $(ruby)
|
@@ -59,8 +72,8 @@ COPY = cp
|
|
59
72
|
|
60
73
|
preload =
|
61
74
|
|
62
|
-
libpath = $(libdir)
|
63
|
-
LIBPATH = -L'$(libdir)' -Wl,-R'$(libdir)'
|
75
|
+
libpath = . $(libdir)
|
76
|
+
LIBPATH = -L'.' -L'$(libdir)' -Wl,-R'$(libdir)'
|
64
77
|
DEFFILE =
|
65
78
|
|
66
79
|
CLEANFILES =
|
@@ -69,12 +82,13 @@ DISTCLEANFILES =
|
|
69
82
|
extout =
|
70
83
|
extout_prefix =
|
71
84
|
target_prefix =
|
72
|
-
LOCAL_LIBS =
|
73
|
-
LIBS = $(LIBRUBYARG_SHARED)
|
85
|
+
LOCAL_LIBS = -L/usr/local/lib -lcdio -lm
|
86
|
+
LIBS = $(LIBRUBYARG_SHARED) -ldl -lcrypt -lm -lc
|
74
87
|
SRCS = rubycdio_wrap.c
|
75
88
|
OBJS = rubycdio_wrap.o
|
76
89
|
TARGET = rubycdio
|
77
90
|
DLLIB = $(TARGET).so
|
91
|
+
EXTSTATIC =
|
78
92
|
STATIC_LIB =
|
79
93
|
|
80
94
|
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
@@ -92,7 +106,7 @@ clean:
|
|
92
106
|
@-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
|
93
107
|
|
94
108
|
distclean: clean
|
95
|
-
@-$(RM) Makefile
|
109
|
+
@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
96
110
|
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
97
111
|
|
98
112
|
realclean: distclean
|
@@ -116,23 +130,23 @@ site-install-rb: install-rb
|
|
116
130
|
.SUFFIXES: .c .m .cc .cxx .cpp .C .o
|
117
131
|
|
118
132
|
.cc.o:
|
119
|
-
$(CXX) $(
|
133
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
120
134
|
|
121
135
|
.cxx.o:
|
122
|
-
$(CXX) $(
|
136
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
123
137
|
|
124
138
|
.cpp.o:
|
125
|
-
$(CXX) $(
|
139
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
126
140
|
|
127
141
|
.C.o:
|
128
|
-
$(CXX) $(
|
142
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
129
143
|
|
130
144
|
.c.o:
|
131
|
-
$(CC) $(
|
145
|
+
$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
|
132
146
|
|
133
147
|
$(DLLIB): $(OBJS)
|
134
148
|
@-$(RM) $@
|
135
|
-
$(LDSHARED) $(
|
149
|
+
$(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
136
150
|
|
137
151
|
|
138
152
|
|