aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2013-10-07 07:22:08 +0800
committermarino <marino@FreeBSD.org>2013-10-07 07:22:08 +0800
commit74fb5978c9a8efe70dd4804347a283799b5a6c1e (patch)
tree4ce89a371c1d2faf048e370c105a44bab661fc6f /audio
parent6f1dc1e7109bdf61fb2c764c1d9de6725a5d04e7 (diff)
downloadfreebsd-ports-gnome-74fb5978c9a8efe70dd4804347a283799b5a6c1e.tar.gz
freebsd-ports-gnome-74fb5978c9a8efe70dd4804347a283799b5a6c1e.tar.zst
freebsd-ports-gnome-74fb5978c9a8efe70dd4804347a283799b5a6c1e.zip
audio/p5-Net-FreeBSD: Support DragonFly too
Transferring these dports patches to this unmaintained port.
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');
+ }