OpenSDE Packages Database (without history before r20070)
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.

53 lines
1.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../acroread/acroread.conf
  5. # Copyright (C) 2008 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. prefix='opt/acroread-7.0'
  16. set_confopt
  17. acroread_patch () {
  18. sed -e "s,/opt/acroread,$root/$prefix,g" $confdir/setup.diff | patch -p0
  19. }
  20. acroread_setup () {
  21. ./INSTALL
  22. pkginstalled mozilla && {
  23. pkgprefix -t mozilla
  24. cp -av $root/$prefix/Browser/intellinux/nppdf.so $MOZILLA_FIVE_HOME/plugins
  25. }
  26. pkginstalled firefox && {
  27. pkgprefix -t firefox
  28. pdir=`pkgprefix libdir firefox`
  29. pdir=`ls -d $pdir/firefox-*/plugins`
  30. for pd in $pdir ; do
  31. cp -av $root/$prefix/Browser/intellinux/nppdf.so $pd
  32. done
  33. }
  34. }
  35. acroread_cleanup () {
  36. # Remove installation files ... build_this_package does treat them
  37. # as default documentation ...
  38. rm -fv $root/$docdir/COMMON.TAR
  39. rm -fv $root/$docdir/ILINXR.TAR
  40. }
  41. makeopt=
  42. makeinstopt=
  43. createdocs=0
  44. hook_add prepatch 5 acroread_patch
  45. hook_add postmake 5 acroread_setup
  46. hook_add postdoc 5 acroread_cleanup