added lazbuild to deb

git-svn-id: trunk@9855 -
This commit is contained in:
mattias 2006-09-09 21:53:36 +00:00
parent 1d275769bf
commit 570589a725
8 changed files with 18 additions and 11 deletions

6
.gitattributes vendored
View File

@ -2632,22 +2632,22 @@ tools/find_non_cvs_files.pl -text svneol=native#application/x-perl
tools/getallmofiles.sh -text svneol=native#application/x-sh tools/getallmofiles.sh -text svneol=native#application/x-sh
tools/getallpofiles.sh -text svneol=native#application/x-sh tools/getallpofiles.sh -text svneol=native#application/x-sh
tools/install/README.txt svneol=native#text/plain tools/install/README.txt svneol=native#text/plain
tools/install/build_fpc-src_rpm.sh svneol=native#text/plain
tools/install/build_fpc_rpm.sh svneol=native#text/plain
tools/install/build_fpc_snaphot_rpm.sh svneol=native#text/plain tools/install/build_fpc_snaphot_rpm.sh svneol=native#text/plain
tools/install/check_fpc_dependencies.sh svneol=native#text/plain tools/install/check_fpc_dependencies.sh svneol=native#text/plain
tools/install/create_clean_fpcsrc_directory.sh svneol=native#text/plain tools/install/create_clean_fpcsrc_directory.sh svneol=native#text/plain
tools/install/create_clean_lazarus_directory.sh svneol=native#text/plain tools/install/create_clean_lazarus_directory.sh svneol=native#text/plain
tools/install/create_fpc-src_deb.sh svneol=native#text/plain tools/install/create_fpc-src_deb.sh svneol=native#text/plain
tools/install/create_fpc-src_rpm.sh svneol=native#text/plain
tools/install/create_fpc_deb.sh svneol=native#text/plain tools/install/create_fpc_deb.sh svneol=native#text/plain
tools/install/create_fpc_export_tgz.sh svneol=native#text/plain tools/install/create_fpc_export_tgz.sh svneol=native#text/plain
tools/install/create_fpc_rpm.sh svneol=native#text/plain
tools/install/create_fpc_tgz_from_local_dir.sh svneol=native#text/plain tools/install/create_fpc_tgz_from_local_dir.sh svneol=native#text/plain
tools/install/create_lazarus_deb.sh svneol=native#text/plain tools/install/create_lazarus_deb.sh svneol=native#text/plain
tools/install/create_lazarus_export_tgz.sh svneol=native#text/plain tools/install/create_lazarus_export_tgz.sh svneol=native#text/plain
tools/install/create_lazarus_rpm.sh svneol=native#text/plain tools/install/create_lazarus_rpm.sh svneol=native#text/plain
tools/install/create_lazarus_snapshot_rpm.sh svneol=native#text/plain tools/install/create_lazarus_snapshot_rpm.sh svneol=native#text/plain
tools/install/cross_unix/HowToCreate_fpc_crosswin32_rpm.txt svneol=native#text/plain tools/install/cross_unix/HowToCreate_fpc_crosswin32_rpm.txt svneol=native#text/plain
tools/install/cross_unix/build_linux_cross_win32_rpm.sh svneol=native#text/plain tools/install/cross_unix/create_linux_cross_win32_rpm.sh svneol=native#text/plain
tools/install/cross_unix/update_cross_fpc.sh svneol=native#text/plain tools/install/cross_unix/update_cross_fpc.sh svneol=native#text/plain
tools/install/cvsexportlocal.pas svneol=native#text/pascal tools/install/cvsexportlocal.pas svneol=native#text/pascal
tools/install/debian_fpc/changelog svneol=native#text/plain tools/install/debian_fpc/changelog svneol=native#text/plain

View File

@ -70,11 +70,11 @@ Creating the fpc and the fpc-src rpm:
If you have your own fpc sources you can build the fpc rpm with: If you have your own fpc sources you can build the fpc rpm with:
[]$ cd <lazarus_directory>/tools/install []$ cd <lazarus_directory>/tools/install
[]$ ./build_fpc_rpm.sh nodocs /path/to/your/fpc/sources/fpc []$ ./create_fpc_rpm.sh nodocs /path/to/your/fpc/sources/fpc
Then build the fpc-src rpm: Then build the fpc-src rpm:
[]$ ./build_fpc-src_rpm.sh /path/to/your/fpc/sources/fpc []$ ./create_fpc-src_rpm.sh /path/to/your/fpc/sources/fpc
Normally you can find the rpms under /usr/src/redhat/RPMS/i386/ Normally you can find the rpms under /usr/src/redhat/RPMS/i386/
and /usr/src/redhat/SRPMS/. and /usr/src/redhat/SRPMS/.

View File

@ -52,6 +52,7 @@ if [ -n "$FPCCfg" ]; then
MAKEOPTS="$MAKEOPTS -n @$FPCCfg" MAKEOPTS="$MAKEOPTS -n @$FPCCfg"
fi fi
make bigide OPT="$MAKEOPTS" USESVN2REVISIONINC=0 make bigide OPT="$MAKEOPTS" USESVN2REVISIONINC=0
make lazbuilder OPT="$MAKEOPTS"
make tools OPT="$MAKEOPTS" make tools OPT="$MAKEOPTS"
# build gtk2 .ppu # build gtk2 .ppu
export LCL_PLATFORM=gtk2 export LCL_PLATFORM=gtk2
@ -59,6 +60,7 @@ make lcl ideintf packager/registration bigidecomponents OPT="$MAKEOPTS"
export LCL_PLATFORM= export LCL_PLATFORM=
strip lazarus strip lazarus
strip startlazarus strip startlazarus
strip lazbuild
cd - cd -
# create control file # create control file
@ -85,6 +87,10 @@ install -m 644 $LazDestDir/images/ide_icon48x48.png $LazBuildDir/usr/share/pixma
install -m 644 $LazDestDir/install/lazarus.desktop $LazBuildDir/usr/share/applications/lazarus.desktop install -m 644 $LazDestDir/install/lazarus.desktop $LazBuildDir/usr/share/applications/lazarus.desktop
ln -s $LazDestDir/lazarus $LazBuildDir/usr/bin/lazarus ln -s $LazDestDir/lazarus $LazBuildDir/usr/bin/lazarus
ln -s $LazDestDir/startlazarus $LazBuildDir/usr/bin/startlazarus ln -s $LazDestDir/startlazarus $LazBuildDir/usr/bin/startlazarus
ln -s $LazDestDir/lazbuild $LazBuildDir/usr/bin/lazbuild
# docs
cat $LazBuildDir/docs/lazbuild.1 | gzip > $LazBuildDir/usr/share/man/man1/lazbuild.1.gz
# fixing permissions # fixing permissions
echo "fixing permissions ..." echo "fixing permissions ..."

View File

@ -9,7 +9,7 @@ First get the FPC sources and the binutils.
For example: For example:
[]$ cd <lazarusdir>/tools/install/cross_unix/ []$ cd <lazarusdir>/tools/install/cross_unix/
[]$ ./build_linux_cross_win32_rpm.sh downloadbinutils downloadfpc buildbinutils []$ ./create_linux_cross_win32_rpm.sh downloadbinutils downloadfpc buildbinutils
This will download the FPC svn to ~/freepascal/fpc, its install files to This will download the FPC svn to ~/freepascal/fpc, its install files to
~/freepascal/install and the binutils to ~/freepascal/binutils. ~/freepascal/install and the binutils to ~/freepascal/binutils.
@ -17,12 +17,12 @@ This will download the FPC svn to ~/freepascal/fpc, its install files to
Create the fpc rpm and install it: Create the fpc rpm and install it:
[]$ cd <lazarusdir>/tools/install []$ cd <lazarusdir>/tools/install
[]$ ./build_fpc_rpm.sh ~/freepascal/fpc []$ ./create_fpc_rpm.sh ~/freepascal/fpc
[]$ sudo rpm -Uvh <path_to_rpms>/RPMS/i386/fpc-<version>.i386.rpm []$ sudo rpm -Uvh <path_to_rpms>/RPMS/i386/fpc-<version>.i386.rpm
Then build the fpc_crosswin32 rpm and install it: Then build the fpc_crosswin32 rpm and install it:
[]$ cd <lazarusdir>/tools/install/cross_unix/ []$ cd <lazarusdir>/tools/install/cross_unix/
[]$ ./build_linux_cross_win32_rpm.sh buildcrossfpc buildcrosswin32rpm []$ ./create_linux_cross_win32_rpm.sh buildcrossfpc buildcrosswin32rpm
[]$ sudo rpm -Uvh <path_to_rpms>/RPMS/i386/fpc_crosswin32-<version>.i386.rpm []$ sudo rpm -Uvh <path_to_rpms>/RPMS/i386/fpc_crosswin32-<version>.i386.rpm
Now you can cross compile from linux to win32. Now you can cross compile from linux to win32.

View File

@ -33,13 +33,14 @@ if [ -n "$FPCCfg" ]; then
fi fi
make bigide OPT="$MAKEOPTS" USESVN2REVISIONINC=0 make bigide OPT="$MAKEOPTS" USESVN2REVISIONINC=0
make tools OPT="$MAKEOPTS" make tools OPT="$MAKEOPTS"
make lazbuild OPT="$MAKEOPTS" make lazbuilder OPT="$MAKEOPTS"
# build gtk2 .ppu # build gtk2 .ppu
export LCL_PLATFORM=gtk2 export LCL_PLATFORM=gtk2
make lcl ideintf packager/registration bigidecomponents OPT="$MAKEOPTS" make lcl ideintf packager/registration bigidecomponents OPT="$MAKEOPTS"
export LCL_PLATFORM= export LCL_PLATFORM=
strip lazarus strip lazarus
strip startlazarus strip startlazarus
strip lazbuild
%install %install
[ %{buildroot} != "/" ] && ( rm -rf %{buildroot} ) [ %{buildroot} != "/" ] && ( rm -rf %{buildroot} )
@ -48,14 +49,14 @@ mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/pixmaps mkdir -p %{buildroot}%{_datadir}/pixmaps
# mkdir -p %{buildroot}%{_datadir}/gnome/apps/Development # mkdir -p %{buildroot}%{_datadir}/gnome/apps/Development
mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_mandir} mkdir -p %{buildroot}%{_mandir}/man1
cp -a lazarus/* %{buildroot}%{_libdir}/%{name}/ cp -a lazarus/* %{buildroot}%{_libdir}/%{name}/
install -m 644 lazarus/images/ide_icon48x48.png %{buildroot}%{_datadir}/pixmaps/lazarus.png install -m 644 lazarus/images/ide_icon48x48.png %{buildroot}%{_datadir}/pixmaps/lazarus.png
install -m 644 lazarus/install/lazarus.desktop %{buildroot}%{_datadir}/applications/lazarus.desktop install -m 644 lazarus/install/lazarus.desktop %{buildroot}%{_datadir}/applications/lazarus.desktop
ln -sf ../%{_lib}/%{name}/lazarus %{buildroot}%{_bindir}/lazarus ln -sf ../%{_lib}/%{name}/lazarus %{buildroot}%{_bindir}/lazarus
ln -sf ../%{_lib}/%{name}/startlazarus %{buildroot}%{_bindir}/startlazarus ln -sf ../%{_lib}/%{name}/startlazarus %{buildroot}%{_bindir}/startlazarus
ln -sf ../%{_lib}/%{name}/lazbuild %{buildroot}%{_bindir}/lazbuild ln -sf ../%{_lib}/%{name}/lazbuild %{buildroot}%{_bindir}/lazbuild
cat lazarus/docs/lazbuild.1 | gzip > %{_mandir}/man1/lazbuild.1.gz cat lazarus/docs/lazbuild.1 | gzip > %{buildroot}%{_mandir}/man1/lazbuild.1.gz
%clean %clean
[ %{buildroot} != "/" ] && ( rm -rf %{buildroot} ) [ %{buildroot} != "/" ] && ( rm -rf %{buildroot} )