talimat 1.4 KB

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