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.

57 lines
1.5 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. sed -i -e 's,^\(install.bin:.*\)$,\1\n\tln -sfv $(LIBFULL) $(prefix)/lib/$(LIBLOAD),' Makefile
  33. sed -i -e 's,^\(install.bin:.*\)$,\1\n\tln -sfv $(LIBFULL) $(prefix)/lib/$(LIBSHARED),' Makefile
  34. sed -i -e 's,^\(install.bin:.*\)$,\1\n\tinstall -v $(LIBFULL) $(LIBARCHIVE) $(prefix)/lib/,' Makefile
  35. eval make $makeinstopt install
  36. cd $OLDPWD
  37. # echo "Installing nxproxy"
  38. # cd ../nxproxy
  39. # eval make $makeinstopt install
  40. # cd $OLDPWD
  41. }
  42. hook_add premake 3 "nx-X11_prem"
  43. # They don't install anything?
  44. hook_add postmake 3 "nx-X11_postm"
  45. var_append makeopt " " "World"