
$FreeBSD: ports/net/asterisk/files/patch-cdr::Makefile,v 1.4 2004/10/17 18:00:02 sobomax Exp $

--- cdr/Makefile.orig	Tue Aug 31 19:33:00 2004
+++ cdr/Makefile	Thu Oct 14 19:13:38 2004
@@ -21,7 +21,7 @@
 OSARCH=$(shell uname -s)
 
 ifeq (${OSARCH},FreeBSD)
-SOLINK+=-L/usr/local/lib
+SOLINK+=-L$(LOCALBASE)/lib
 endif
 
 #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
@@ -71,7 +71,7 @@
 all: depend $(MODS)
 
 install: all
-	for x in $(MODS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
+	for x in $(MODS); do $(BSD_INSTALL_PROGRAM) $$x $(DESTDIR)$(MODULES_DIR) ; done
 
 clean:
 	rm -f *.so *.o .depend
