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.

54 lines
1.2 KiB

  1. prefix=opt/nx
  2. set_confopt
  3. nx-X11_prem() {
  4. cd ..
  5. nxothersources="nxagent- nxauth- nxcomp- nxcompext- nxproxy-"
  6. for nxsource in $nxothersources; do
  7. nxsf=$(ls $archdir/${nxsource}*)
  8. echo "Extracting $nxsf ($taropt) ..."
  9. tar $taropt $nxsf
  10. # if [[ $nxsource = nxcomp- ]] ; then
  11. # patch -d nxcomp -p0 < $base/package/public/nxcomp/gcc34.patch
  12. # fi
  13. done
  14. cd $OLDPWD
  15. echo "Configuring XFree ..."
  16. cat >> config/cf/host.def << EOT
  17. /* Disable the internal zlib to use the system installed one */
  18. #define HasZlib YES
  19. /* Disable the internal expat library to use the system installed one */
  20. #define HasExpat YES
  21. /* Less warnings with recent gccs ... */
  22. #define DefaultCCOptions -ansi GccWarningOptions
  23. EOT
  24. }
  25. nx-X11_postm() {
  26. # echo "Installing nxcomp"
  27. # cd ../nxcomp
  28. # eval make $makeinstopt install
  29. # cd $OLDPWD
  30. echo "Installing nxcompext"
  31. cd ../nxcompext
  32. eval make $makeinstopt install
  33. cd $OLDPWD
  34. # echo "Installing nxproxy"
  35. # cd ../nxproxy
  36. # eval make $makeinstopt install
  37. # cd $OLDPWD
  38. }
  39. hook_add premake 3 "nx-X11_prem"
  40. # They don't install anything?
  41. hook_add postmake 3 "nx-X11_postm"
  42. var_append makeopt " " "World"