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.

31 lines
868 B

  1. nxothersources="nxagent-1.4.0-47.tar.bz2 nxauth-1.4.0-1.tar.bz2 nxcomp-1.4.0-23.tar.bz2 \
  2. nxcompext-1.4.0-3.tar.bz2 nxproxy-1.4.0-2.tar.bz2"
  3. nx-X11_prem() {
  4. cd ..
  5. for nxsource in $nxothersources; do
  6. echo "Extracting $nxsource ($taropt) ..."
  7. tar $taropt $archdir/$nxsource
  8. if [[ $nxsource = nxcomp-* ]] ; then
  9. patch -p0 < $confdir/gcc34.diff
  10. fi
  11. done
  12. cd $OLDPWD
  13. echo "Configuring XFree ..."
  14. cat >> config/cf/host.def << EOT
  15. /* Disable the internal zlib to use the system installed one */
  16. #define HasZlib YES
  17. /* Disable the internal expat library to use the system installed one */
  18. #define HasExpat YES
  19. /* Less warnings with recent gccs ... */
  20. #define DefaultCCOptions -ansi GccWarningOptions
  21. EOT
  22. }
  23. hook_add premake 3 "nx-X11_prem"
  24. var_append makeopt " " "World"