- @rm -rf $(DIR_SRC)/$(BRISTUFF)
- # Decompress the source-code
- cd $(DIR_SRC) && \
- tar zxf $(DIR_DL)/$(BRISTUFF).tar.gz -C $(DIR_SRC) && \
- cd $(DIR_SRC)/$(BRISTUFF) && \
- tar xfz $(DIR_DL)/$(ZAPTEL).tar.gz && \
- tar xfz $(DIR_DL)/$(LIBPRI).tar.gz && \
- tar xfz $(DIR_DL)/$(ASTERISK).tar.gz && \
- tar xfz $(DIR_DL)/$(OH323).tar.gz
-
- # Build Zaptel
- cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && \
- patch -Np1 < $(DIR_SRC)/src/patches/zaptel.patch && \
- make clean && \
- make all KVERS=$(KVER)-smp && \
- make install KVERS=$(KVER)-smp && \
- make clean && \
- make all KVERS=$(KVER) && \
- make install KVERS=$(KVER)
- cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 zaptel.h /usr/include/linux/zaptel.h
- cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 zconfig.h /usr/include/linux/zconfig.h
- cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 ecdis.h /usr/include/linux/ecdis.h
- cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 fasthdlc.h /usr/include/linux/fasthdlc.h
- cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 kb1ec.h /usr/include/linux/kb1ec.h
- cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 kb1ec_const.h /usr/include/linux/kb1ec_const.h
- cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 biquad.h /usr/include/linux/biquad.h
- cd $(DIR_SRC)/$(BRISTUFF)/$(ZAPTEL) && install -D -m 644 arith.h /usr/include/linux/arith.h
- ln -nf -v /usr/include/linux/zaptel.h /usr/include/zaptel.h
- ln -nf -v /usr/include/linux/zconfig.h /usr/include/zconfig.h
- ln -nf -v /usr/include/linux/ecdis.h /usr/include/ecdis.h
- ln -nf -v /usr/include/linux/fasthdlc.h /usr/include/fasthdlc.h
- ln -nf -v /usr/include/linux/kb1ec.h /usr/include/kb1ec.h
- ln -nf -v /usr/include/linux/kb1ec_const.h /usr/include/kb1ec_const.h
- ln -nf -v /usr/include/linux/biquad.h /usr/include/biquad.h
- ln -nf -v /usr/include/linux/arith.h /usr/include/arith.h
-
- # Build Libpri
- cd $(DIR_SRC)/$(BRISTUFF)/$(LIBPRI) && \
- patch -Np1 < $(DIR_SRC)/src/patches/libpri.patch && \
- make clean all KVERS=$(KVER) && \
- make install KVERS=$(KVER)
-
- # Build libgsmat
- cd $(DIR_SRC)/$(BRISTUFF)/libgsmat-0.0.1 && \
- make clean all && \
- make install
-
- # Build uno/duo/quad GSM PCI driver
- cd $(DIR_SRC)/$(BRISTUFF)/ztgsm && \
- make clean linux24 && \
- install -D -m 644 ztgsm.o /lib/modules/$(KVER)/misc/ztgsm.o
-
- # Build qozap
- cd $(DIR_SRC)/$(BRISTUFF)/qozap && \
- make clean linux24 && \
- install -D -m 644 qozap.o /lib/modules/$(KVER)/misc/qozap.o
-
- # Build cwain
- cd $(DIR_SRC)/$(BRISTUFF)/cwain && \
- make clean linux24 && \
- install -D -m 644 cwain.o /lib/modules/$(KVER)/misc/cwain.o
-
- # Build zaphfc
- cd $(DIR_SRC)/$(BRISTUFF)/zaphfc && \
- patch -Np1 < $(DIR_SRC)/src/patches/zaphfc_0.3.0-PRE-1o_florz-12.diff && \
- cd $(DIR_SRC)/$(BRISTUFF)/zaphfc && make clean linux24 && \
- install -D -m 644 zaphfc.o /lib/modules/$(KVER)/misc/zaphfc.o
-
- # Build Asterisk
- cd $(DIR_SRC)/$(BRISTUFF)/$(ASTERISK) && \
- patch -Np1 < $(DIR_SRC)/src/patches/asterisk.patch # && \
- ### FAX geht noch nicht mit Asterisk 1.2.7.1
- # cp -fv $(DIR_DL)/app_{r,t}xfax.c $(DIR_SRC)/$(BRISTUFF)/$(ASTERISK)/apps && \
- # cd $(DIR_SRC)/$(BRISTUFF)/$(ASTERISK)/apps && \
- # patch < $(DIR_DL)/apps_Makefile.patch && \
- cd $(DIR_SRC)/$(BRISTUFF)/$(ASTERISK) && \
- make clean && \
- make all && \
- make install && \
- make samples
-
- # Build OH323
- cd $(DIR_SRC)/$(BRISTUFF)/$(OH323) && \
- make ASTERISKINCDIR=$(DIR_SRC)/$(BRISTUFF)/$(ASTERISK)/include OH323WRAPLIBDIR=/usr/lib && \
- make install ASTERISKINCDIR=$(DIR_SRC)/$(BRISTUFF)/$(ASTERISK)/include OH323WRAPLIBDIR=/usr/lib
- @rm -rf $(DIR_SRC)/$(BRISTUFF) $(DIR_SRC)/{pwlib,openh323}
- @$(POSTBUILD)