talimat 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Tanım: Özgür pascal derleyicisi
  2. # URL: http://www.freepascal.org/
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. # Grup: geliştirme
  6. isim=fpc
  7. surum=2.6.4
  8. devir=1
  9. kaynak=(ftp://ftp.freepascal.org/pub/fpc/dist/$surum/source/fpcbuild-$surum.tar.gz
  10. http://crux.ster.zone/downloads/fpc/md5/2f440a0e40d134ed67db2fbf58c6e30a/x86_64-linux-ppcx64.bz2
  11. ftp://ftp.freepascal.org/pub/fpc/contrib/libgdb/v7.2/libgdb_mingw702.zip)
  12. derle() {
  13. bunzip2 x86_64-linux-ppcx64.bz2
  14. chmod 0755 x86_64-linux-ppcx64
  15. export LIBGDBDIR=$SRC/libgdb/win64/x86_64/
  16. cd fpcbuild-$surum/fpcsrc/
  17. make -j 1 PP=$SRC/x86_64-linux-ppcx64 build
  18. cp $SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64 \
  19. $SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64.new
  20. make -j 1 PP=$SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64.new build
  21. rm $SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64.new
  22. make -j 1 PP=$SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64 rtl_clean
  23. make -j 1 PP=$SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64 rtl packages_all utils
  24. set -- PP=$SRC/fpcbuild-$surum/fpcsrc/compiler/ppcx64 \
  25. FPCMAKE=$SRC/fpcbuild-$surum/fpcsrc/utils/fpcm/fpcmake \
  26. INSTALL_PREFIX=$PKG/usr \
  27. INSTALL_DOCDIR=$PKG/usr/share/doc/fpcbuild \
  28. INSTALL_MANDIR=$PKG/usr/share/man \
  29. INSTALL_SOURCEDIR=$PKG/usr/lib/fpc/fpcbuild-$surum/source
  30. make -j 1 "$@" compiler_install rtl_install packages_install utils_install
  31. ln -sf /usr/lib/fpc/$surum/ppcx64 $PKG/usr/bin/ppcx64
  32. }