$OpenBSD: patch-get_iplayer,v 1.77 2016/06/11 22:15:05 sthen Exp $
--- get_iplayer.orig	Sat Jun 11 20:35:45 2016
+++ get_iplayer	Sat Jun 11 22:43:32 2016
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
 #
 # get_iplayer - Lists, Records and Streams BBC iPlayer TV and Radio programmes and BBC podcasts
 #
@@ -372,6 +372,7 @@ if ( $opt->{encodinglocale} =~ /UTF-?8/i ) {
 }
 
 # Copy a few options over to opt so that logger works
+$opt->{packagemanager}= 'pkg_add';
 $opt->{debug} = $opt->{verbose} = 1 if $opt_pre->{debug};
 $opt->{verbose} = 1 if $opt_pre->{verbose};
 $opt->{silent} = $opt->{quiet} = 1 if $opt_pre->{silent};
@@ -432,7 +433,7 @@ my $plugin_dir_system;
 if ( defined $ENV{ALLUSERSPROFILE} && $^O eq "MSWin32" ) {
 	$plugin_dir_system = $ENV{ALLUSERSPROFILE}.'/get_iplayer/plugins';
 } else {
-	$plugin_dir_system = '/usr/share/get_iplayer/plugins';
+	$plugin_dir_system = '${TRUEPREFIX}/share/get_iplayer/plugins';
 }
 my $plugin_dir_user = "$profile_dir/plugins";
 for my $plugin_dir ( ( $plugin_dir_user, $plugin_dir_system ) ) {
