[Asterisk-bsd] help libpri make file patch
Richard Neese
r.neese at gmail.com
Fri Sep 16 23:52:46 CDT 2005
libpri changed the Makefile from 1.0.9 and cvs head need help repatching for
head.
Also wanted to know where zaptel updates for fbsd 6.0 stood.
src makefile
install: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
mkdir -p $(INSTALL_PREFIX)$(INSTALL_BASE)/include
ifneq (${OSARCH},SunOS)
install -m 644 libpri.h $(INSTALL_PREFIX)$(INSTALL_BASE)/include
install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux status:"
| grep -q "enabled"); then restorecon -v
$(INSTALL_PREFIX)$(INSTALL_BASE)/lib/$(DYNAMIC_LIBRARY); fi
( cd $(INSTALL_PREFIX)$(INSTALL_BASE)/lib ; ln -sf libpri.so.1 libpri.so )
install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)$(INSTALL_BASE)/lib
$(LDCONFIG)
else
install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/include -m 644 libpri.h
install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/lib -m 755 $(DYNAMIC_LIBRARY)
( cd $(INSTALL_PREFIX)$(INSTALL_BASE)/lib ; ln -sf libpri.so.1 libpri.so ;
$(SOSLINK) )
install -f $(INSTALL_PREFIX)$(INSTALL_BASE)/lib -m 644 $(STATIC_LIBRARY)
endif
patch:
install: $(STATIC_LIBRARY) $(DYNAMIC_LIBRARY)
- mkdir -p $(INSTALL_PREFIX)/usr/lib
- mkdir -p $(INSTALL_PREFIX)/usr/include
- install -m 644 libpri.h $(INSTALL_PREFIX)/usr/include
- install -m 755 $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)/usr/lib
- if [ -x /usr/sbin/sestatus ] && ( /usr/sbin/sestatus | grep "SELinux
status:" | grep -q "enabled"); then restorecon -v
$(INSTALL_PREFIX)$(INSTALL_BASE)/lib/$(DYNAMIC_LIBRARY); fi
- ( cd $(INSTALL_PREFIX)/usr/lib ; ln -sf libpri.so.1 libpri.so )
- install -m 644 $(STATIC_LIBRARY) $(INSTALL_PREFIX)/usr/lib
- /sbin/ldconfig
+ mkdir -p $(INSTALL_PREFIX)/lib
+ mkdir -p $(INSTALL_PREFIX)/include
+ $(BSD_INSTALL_DATA) libpri.h $(INSTALL_PREFIX)/include
+ $(BSD_INSTALL_PROGRAM) $(DYNAMIC_LIBRARY) $(INSTALL_PREFIX)/lib
+ ( cd $(INSTALL_PREFIX)/lib ; ln -sf libpri.so.1 libpri.so )
+ $(BSD_INSTALL_DATA) $(STATIC_LIBRARY) $(INSTALL_PREFIX)/lib
--
Open your Eyes to life .
And look at all the wounderful
colors the Gods gave us.
More information about the Asterisk-BSD
mailing list