aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/p5-Net-FreeDB/files/patch-Makefile.PL13
-rw-r--r--audio/p5-Net-FreeDB/files/patch-test.pl29
2 files changed, 42 insertions, 0 deletions
diff --git a/audio/p5-Net-FreeDB/files/patch-Makefile.PL b/audio/p5-Net-FreeDB/files/patch-Makefile.PL
new file mode 100644
index 000000000000..5dd6984df14f
--- /dev/null
+++ b/audio/p5-Net-FreeDB/files/patch-Makefile.PL
@@ -0,0 +1,13 @@
+--- Makefile.PL.orig 2006-09-27 08:46:57.000000000 +0000
++++ Makefile.PL
+@@ -9,6 +9,10 @@ if ($^O =~ /linux/) {
+ print "OS: $^O, copying XS file: ";
+ system("cp FreeDB.xs.linux FreeDB.xs") && die "Copying failed\n";
+ print "1 file copied\n";
++} elsif ($^O =~ /dragonfly/) {
++ print "OS: $^O, copying XS file: ";
++ system("cp FreeDB.xs.linux FreeDB.xs") && die "Copying failed\n";
++ print "1 file copied\n";
+ } elsif ($^O =~ /MSWin32/) {
+ print "OS: $^O, copying XS file:";
+ system("copy FreeDB.xs.win32 FreeDB.xs") && die "Copying failed\n";
diff --git a/audio/p5-Net-FreeDB/files/patch-test.pl b/audio/p5-Net-FreeDB/files/patch-test.pl
new file mode 100644
index 000000000000..61ec37a94326
--- /dev/null
+++ b/audio/p5-Net-FreeDB/files/patch-test.pl
@@ -0,0 +1,29 @@
+--- test.pl.orig 2005-09-28 14:45:55.000000000 +0000
++++ test.pl
+@@ -40,6 +40,8 @@ if ($^O =~ /MSWin32/) {
+ $id = $cddb->getdiscid(0);
+ } elsif ($^O =~ /freebsd/) {
+ $id = $cddb->getdiscid('/dev/acd0');
++} elsif ($^O =~ /dragonfly/) {
++ $id = $cddb->getdiscid('/dev/cd0');
+ } else {
+ $id = $cddb->getdiscid('/dev/cdrom');
+ }
+@@ -51,6 +53,8 @@ if ($^O =~ /MSWin32/) {
+ $id = Net::FreeDB::getdiscid(0);
+ } elsif ($^O =~ /freebsd/) {
+ $id = Net::FreeDB::getdiscid('/dev/acd0');
++} elsif ($^O =~ /dragonfly/) {
++ $id = Net::FreeDB::getdiscid('/dev/cd0');
+ } else {
+ $id = Net::FreeDB::getdiscid('/dev/cdrom');
+ }
+@@ -62,6 +66,8 @@ if ($^O =~ /MSWin32/) {
+ $id = Net::FreeDB::getdiscdata(0);
+ } elsif ($^O =~ /freebsd/) {
+ $id = Net::FreeDB::getdiscdata('/dev/acd0');
++} elsif ($^O =~ /dragonfly/) {
++ $id = Net::FreeDB::getdiscdata('/dev/cd0');
+ } else {
+ $id = Net::FreeDB::getdiscdata('/dev/cdrom');
+ }