diff -u libhdhomerun.orig/Makefile libhdhomerun/Makefile
--- libhdhomerun.orig/Makefile	2011-04-30 19:32:36.000000000 -0400
+++ libhdhomerun/Makefile	2011-04-30 19:33:11.000000000 -0400
@@ -34,7 +34,7 @@
   ifeq ($(OS),Darwin)
     CFLAGS += -arch i386 -arch ppc
     LIBEXT := .dylib
-    SHARED := -dynamiclib -install_name libhdhomerun$(LIBEXT)
+    SHARED := -dynamiclib -install_name @PREFIX@/lib/libhdhomerun$(LIBEXT)
   endif
 endif
 
