$OpenBSD: patch-src_export_ExportMP3_cpp,v 1.3 2006/12/17 12:12:59 ajacoutot Exp $
--- src/export/ExportMP3.cpp.orig	Sun Oct 29 01:05:27 2006
+++ src/export/ExportMP3.cpp	Sat Dec  2 11:28:24 2006
@@ -268,7 +268,7 @@ bool MP3Exporter::FindLibrary(wxWindow *
          
          wxString GetLibraryTypeString()
          {
-            return wxString(_("Only libmp3lame.so|libmp3lame.so|Primary Shared Object files (*.so)|*.so|Extended Libraries (*.so*)|*.so*|All Files (*)|*"));
+            return wxString(_("Only libmp3lame.so.X.Y|libmp3lame.so.*|Extended Libraries (*.so.*)|*.so.*|Primary Shared Object files (*.so)|*.so|All Files (*)|*"));
          }
          
          wxString GetLibraryMessage()
@@ -276,10 +276,12 @@ bool MP3Exporter::FindLibrary(wxWindow *
             /* i18n-hint: This message is used on Unix/Linux */
             return _("Audacity does not export MP3 files directly, but instead uses the \n"
                    "freely available LAME library to handle MP3 file encoding.  You must \n"
-                   "obtain libmp3lame.so separately, either by downloading it or building \n"
-                   "it from the sources, and then locate the file for Audacity.  You only \n"
-                   "need to do this once.\n\n"
-                   "Would you like to locate libmp3lame.so now?");
+                   "install the lame package on your OpenBSD system using pkg_add(1), or\n"
+                   "alternatively you can install the port from the audio/lame subdirectory\n"
+                   "of the ports tree.\n\n"
+                   "The library is usually located under !!LOCALBASE!!/lib and its filename\n"
+                   "should be libmp3lame.so.X.Y, where X and Y are version numbers.\n"
+                   "If you are ready, click Yes to locate the library file on your system.\n");
          }
 
          bool  LoadLibrary() {
@@ -523,7 +525,7 @@ void ReleaseMP3Exporter()
          
       wxString GetLibraryPath()
       {
-         return wxT("/usr/local/lib");
+         return wxT("!!LOCALBASE!!/lib");
       }
 
          wxString GetLibraryName()
