53e76e68e0
- Update to latest codec negotiation patch Submitted by: Andriy I Pylypenko <bamby@portaone.com> (MAINTAINER)
59 lines
2.2 KiB
Text
59 lines
2.2 KiB
Text
--- asterisk-driver/Makefile.orig Fri Sep 9 16:35:25 2005
|
|
+++ asterisk-driver/Makefile Thu Apr 13 14:22:51 2006
|
|
@@ -40,9 +40,9 @@
|
|
endif
|
|
else
|
|
ifeq ($(OH323BUILDTYPE),debug) # Shared, debug
|
|
- LIBPTPATH=$(word 1,$(shell ls $(PWLIBDIR)/lib/libpt*d.so))
|
|
+ LIBPTPATH=$(word 1,$(shell ls $(SYSLIBDIR)/libpt*d.so))
|
|
else # Shared, opt
|
|
- LIBPTPATH=$(word 1,$(shell ls $(PWLIBDIR)/lib/libpt*r.so))
|
|
+ LIBPTPATH=$(word 1,$(shell ls $(SYSLIBDIR)/libpt*r.so))
|
|
endif
|
|
endif
|
|
LIBPTNAME=$(subst lib,,$(basename $(notdir $(LIBPTPATH))))
|
|
@@ -69,12 +69,12 @@
|
|
endif
|
|
else
|
|
ifeq ($(OH323BUILDTYPE),debug) # Shared, debug
|
|
- LIBH323PATH=$(word 1,$(shell ls $(OPENH323DIR)/lib/libh323*d.so))
|
|
+ LIBH323PATH=$(word 1,$(shell ls $(SYSLIBDIR)/libh323*d.so))
|
|
else
|
|
ifeq ($(OH323BUILDTYPE),opt) # Shared, opt
|
|
- LIBH323PATH=$(word 1,$(shell ls $(OPENH323DIR)/lib/libh323*r.so))
|
|
+ LIBH323PATH=$(word 1,$(shell ls $(SYSLIBDIR)/libh323*r.so))
|
|
else # Shared, opt, no trace
|
|
- LIBH323PATH=$(word 1,$(shell ls $(OPENH323DIR)/lib/libh323*n.so))
|
|
+ LIBH323PATH=$(word 1,$(shell ls $(SYSLIBDIR)/libh323*n.so))
|
|
endif
|
|
endif
|
|
endif
|
|
@@ -90,7 +90,7 @@
|
|
LIBH323=$(LIBH323NAME)
|
|
|
|
ifndef SKIP_EXTLIBS
|
|
- EXTLIBS=$(shell $(PWLIBDIR)/make/ptlib-config --libs)
|
|
+ EXTLIBS=$(shell $(PWLIBDIR)/make/ptlib-config --ldflags --libs)
|
|
endif
|
|
|
|
CFLAGS += -pipe -Wstrict-prototypes -Wmissing-prototypes \
|
|
@@ -110,14 +110,15 @@
|
|
|
|
install:
|
|
if [ ! -d $(DESTDIR)$(ASTERISKMODDIR) ]; then \
|
|
- $(INSTALL) -d $(DESTDIR)$(ASTERISKMODDIR); \
|
|
+ $(MKDIR) $(DESTDIR)$(ASTERISKMODDIR); \
|
|
fi
|
|
- $(INSTALL) $(TARGET) $(DESTDIR)$(ASTERISKMODDIR)
|
|
+ $(BSD_INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(ASTERISKMODDIR)
|
|
if [ ! -d $(DESTDIR)$(ASTERISKETCDIR) ]; then \
|
|
- $(INSTALL) -d $(DESTDIR)$(ASTERISKETCDIR); \
|
|
+ $(MKDIR) $(DESTDIR)$(ASTERISKETCDIR); \
|
|
fi
|
|
+ $(BSD_INSTALL_DATA) oh323.conf.sample $(DESTDIR)$(ASTERISKETCDIR)/oh323.conf.sample; \
|
|
if [ ! -f $(DESTDIR)$(ASTERISKETCDIR)/oh323.conf ]; then \
|
|
- $(INSTALL) -m 0644 oh323.conf.sample $(DESTDIR)$(ASTERISKETCDIR)/oh323.conf; \
|
|
+ $(BSD_INSTALL_DATA) oh323.conf.sample $(DESTDIR)$(ASTERISKETCDIR)/oh323.conf; \
|
|
fi
|
|
@echo
|
|
@echo " +---------- Asterisk-oh323 Installation Complete ----------+ "
|