mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
749 B

  1. ao323-premake() {
  2. mydir="$PWD"
  3. tar $taropt $archdir/pwlib-Janus*
  4. cd pwlib
  5. patch -p1 < $confdir/openssl-hotfix.patch.pwlib
  6. eval ./configure
  7. eval make $makeopt clean opt
  8. cd "$mydir"
  9. tar $taropt $archdir/openh323-Janus*
  10. cd openh323
  11. patch -p1 < ../openh323_1.13.5-make.patch
  12. eval ./configure
  13. eval make $makeopt clean opt
  14. cd "$mydir"
  15. }
  16. hook_add premake 2 "ao323-premake"
  17. hook_add premake 3 "sed -i Makefile -e 's,^\(DESTDIR=\).*,\1$root/,' \
  18. -e 's,^\(PWLIBDIR=\).*,\1../pwlib,' \
  19. -e 's,^\(OPENH323DIR=\).*,\1../openh323,' \
  20. -e 's,^\(ASTERISKINCDIR=\).*,\1$includedir,' \
  21. -e 's,^\(ASTERISKMODDIR=\).*,\1$libdir/asterisk/modules,' \
  22. -e 's,^\(ASTERISKETCDIR=\).*,\1$sysconfdir/asterisk,' \
  23. -e 's,^\(OH323WRAPLIBDIR=\).*,\1$libdir,'"