mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 21:00:20 +02:00
debian packages: Split lazarus package into sevaral packages lazarus-ide lazarus-src lazarus-doc lazarus from Mazen
git-svn-id: trunk@14807 -
This commit is contained in:
parent
80966d6f64
commit
d5e6d33772
6
.gitattributes
vendored
6
.gitattributes
vendored
@ -1133,10 +1133,16 @@ debian/copyright svneol=native#text/plain
|
||||
debian/dirs svneol=native#text/plain
|
||||
debian/docs svneol=native#text/plain
|
||||
debian/install.sh svneol=native#text/plain
|
||||
debian/lazarus-doc.install svneol=native#text/plain
|
||||
debian/lazarus-ide.install svneol=native#text/plain
|
||||
debian/lazarus-ide.links svneol=native#text/plain
|
||||
debian/lazarus-ide.menu svneol=native#text/plain
|
||||
debian/lazarus-src.install svneol=native#text/plain
|
||||
debian/lazarus.substvars svneol=native#text/plain
|
||||
debian/links svneol=native#text/plain
|
||||
debian/menu svneol=native#text/plain
|
||||
debian/move-usr-lib.sh svneol=native#text/plain
|
||||
debian/orig-tar.sh svneol=native#text/plain
|
||||
debian/rules svneol=native#text/plain
|
||||
debian/watch svneol=native#text/plain
|
||||
debugger/breakpointsdlg.lfm svneol=native#text/plain
|
||||
|
39
debian/README.Debian
vendored
39
debian/README.Debian
vendored
@ -4,39 +4,16 @@ lazarus for Debian
|
||||
The main binary was renamed to ``lazarus-ide'' because the ``tct'' package
|
||||
already comes with an utility called ``lazarus''.
|
||||
|
||||
Note that when you first run Lazarus, you will be presented with the
|
||||
Note that when you first run Lazarus, you might be presented with the
|
||||
following notice:
|
||||
|
||||
"Free Pascal Sources not found
|
||||
Free Pascal Sources not found
|
||||
|
||||
The Free Pascal source directory was not found.
|
||||
Some code functions will not work.
|
||||
It is recommended that you install it and set the path
|
||||
Environment -> Environment Options -> Files"
|
||||
The Free Pascal source directory was not found.
|
||||
Some code functions will not work.
|
||||
It is recommended that you install it and set the path
|
||||
Environment -> Environment Options -> Files
|
||||
|
||||
"Lazarus directory not found
|
||||
|
||||
The current Lazarus directory "/usr/bin"
|
||||
does not look correct.
|
||||
Without it You will not be able to create LCL applications.
|
||||
Check Environment -> Environment Options -> Files"
|
||||
Please install the package fpc-source.
|
||||
|
||||
The latter warning is a bug in the current version of Lazarus which is
|
||||
being worked on. For the time being, please go to Environment ->
|
||||
Environment Options -> Files and configure it so that "Lazarus directory
|
||||
(default for all projects)" points to "/usr/lib/lazarus/" instead of
|
||||
"/usr/bin/".
|
||||
|
||||
If you find that you need the missing functions as in the former warning,
|
||||
please make sure you have a deb-src entry in your /etc/apt/sources.list, e.g.
|
||||
|
||||
deb-src http://http.us.debian.org/debian unstable main contrib non-free
|
||||
|
||||
And then retrieve the source for the package with
|
||||
|
||||
apt-get source lazarus
|
||||
|
||||
Afterwards, follow the same procedure as above, filling the directory where
|
||||
you have put the sources on the "FPC source directory" option.
|
||||
|
||||
-- Carlos Laviola <claviola@debian.org>, Wed, 18 Aug 2004 14:52:08 -0300
|
||||
-- Torsten Werner <twerner@debian.org> Sat, 29 Dec 2007 23:02:53 +0100
|
||||
|
45
debian/changelog
vendored
45
debian/changelog
vendored
@ -1,18 +1,57 @@
|
||||
lazarus (0.9.25-0-0) unstable; urgency=low
|
||||
lazarus (0.9.25-0) unstable; urgency=low
|
||||
|
||||
* Merged debian rules with official debian svn.
|
||||
|
||||
-- Mazen Neifer <mazen@freepascal.org> Fri, 28 Dec 2007 23:52:02 +0100
|
||||
-- Mazen Neifer <mazen@freepascal.org> Tue, 08 Apr 2008 22:35:37 +0200
|
||||
|
||||
lazarus (0.9.24-0-6) unstable; urgency=low
|
||||
|
||||
[ Mazen Neifer ]
|
||||
* Split lazarus package into sevaral packages
|
||||
+ lazarus-ide : for IDE and binary files
|
||||
+ lazarus-src : for source files
|
||||
+ lazarus-doc : for documentation
|
||||
+ lazarus : a meta package depending on previous packages
|
||||
|
||||
[ Torsten Werner ]
|
||||
* Add Build-Depends: fp-units-gtk2, fp-units-i386 [i386].
|
||||
* Several lintian cleanups.
|
||||
* Make sure that uscan will clean up the tarball for the next upstream
|
||||
version.
|
||||
|
||||
-- Torsten Werner <twerner@debian.org> Sat, 08 Mar 2008 19:28:47 +0100
|
||||
|
||||
lazarus (0.9.24-0-5) unstable; urgency=low
|
||||
|
||||
* Fixed 'make distclean' to ensure all generated files are deleted.
|
||||
|
||||
-- Mazen Neifer <mazen@freepascal.org> Sat, 16 Feb 2008 10:47:12 +0100
|
||||
|
||||
lazarus (0.9.24-0-4) unstable; urgency=low
|
||||
|
||||
* Ignore errors from fpcmake; we did not call this in older versions of the
|
||||
package anyway. (Closes: #458590)
|
||||
* Add FPC=fpc to 'make distclean', too.
|
||||
|
||||
-- Torsten Werner <twerner@debian.org> Wed, 02 Jan 2008 17:22:26 +0100
|
||||
|
||||
lazarus (0.9.24-0-3) unstable; urgency=low
|
||||
|
||||
[ Torsten Werner ]
|
||||
* Use fpc-depends to calculate dependencies more accurately.
|
||||
* Add Recommends: fpc-source. (Closes: #413806)
|
||||
* Use bzip2 for compressing the binary package and add
|
||||
Pre-Depends: dpkg (>= 1.10.24).
|
||||
* Change Standards-Version: 3.7.3.
|
||||
* Refer to GPL-2 and LGPL-2 in debian/copyright.
|
||||
|
||||
-- Torsten Werner <twerner@debian.org> Tue, 18 Dec 2007 20:22:02 +0100
|
||||
[ Mazen Neifer ]
|
||||
* Include README.Debian file for docs
|
||||
* Run fpcmake before building to ensure correct target dependencies
|
||||
* Include Copyright file
|
||||
* Set compat level to 5
|
||||
|
||||
-- Torsten Werner <twerner@debian.org> Sat, 29 Dec 2007 23:05:42 +0100
|
||||
|
||||
lazarus (0.9.24-0-2) unstable; urgency=low
|
||||
|
||||
|
65
debian/control
vendored
65
debian/control
vendored
@ -3,22 +3,20 @@ Section: devel
|
||||
Priority: optional
|
||||
Maintainer: Carlos Laviola <claviola@debian.org>
|
||||
Uploaders: Torsten Werner <twerner@debian.org>
|
||||
Build-Depends: debhelper (>= 5), fp-compiler (>= 2.2.0-3), fp-units-base,
|
||||
fp-units-db, fp-units-fcl, fp-units-gfx, fp-units-gtk, fp-units-misc,
|
||||
fp-units-net, fp-units-rtl, fp-utils, imagemagick, libgdk-pixbuf-dev
|
||||
Build-Depends: debhelper (>= 5), dpatch, fp-compiler (>= 2.2.0-3), fp-units-base,
|
||||
fp-units-db, fp-units-fcl, fp-units-gfx, fp-units-gtk, fp-units-gtk2,
|
||||
fp-units-i386 [i386], fp-units-misc, fp-units-net, fp-units-rtl, fp-utils,
|
||||
imagemagick, libgdk-pixbuf-dev
|
||||
Standards-Version: 3.7.3
|
||||
Homepage: http://www.lazarus.freepascal.org
|
||||
Vcs-Svn: https://bollin.googlecode.com/svn/lazarus/trunk
|
||||
Vcs-Browser: http://bollin.googlecode.com/svn/lazarus/trunk
|
||||
|
||||
Package: lazarus
|
||||
Architecture: i386 powerpc sparc amd64 arm
|
||||
Architecture: all
|
||||
Pre-Depends: dpkg (>= 1.10.24)
|
||||
Depends: ${shlibs:Depends}, fp-compiler, fp-units-base, fp-units-rtl,
|
||||
fp-units-fcl, fp-units-gtk, libgtk1.2-dev, libgdk-pixbuf-dev,
|
||||
${fpc-abi:Depends}
|
||||
Recommends: fp-units-db, fp-units-gfx, fp-units-gnome1, fp-units-misc,
|
||||
fp-units-net, fpc-source
|
||||
Depends: lazarus-ide, lazarus-src, lazarus-doc
|
||||
Recommends: fpc, fpc-source
|
||||
Suggests: fp-utils
|
||||
Description: Rapid Application Development (RAD) tool for Free Pascal
|
||||
Lazarus are the class libraries for Free Pascal that emulate Delphi.
|
||||
@ -37,3 +35,52 @@ Description: Rapid Application Development (RAD) tool for Free Pascal
|
||||
Component Library (LCL).
|
||||
.
|
||||
This IDE will eventually reach Delphi's full functionality.
|
||||
|
||||
Package: lazarus-ide
|
||||
Architecture: i386 powerpc sparc amd64 arm
|
||||
Pre-Depends: dpkg (>= 1.10.24)
|
||||
Depends: ${shlibs:Depends}, fp-compiler, fp-units-base, fp-units-rtl,
|
||||
fp-units-fcl, fp-units-gtk, libgtk1.2-dev, libgdk-pixbuf-dev,
|
||||
${fpc-abi:Depends}, lazarus-src
|
||||
Recommends: fp-units-db, fp-units-gfx, fp-units-gnome1, fp-units-misc,
|
||||
fp-units-net, fpc-source
|
||||
Suggests: fp-utils
|
||||
Description: Rapid Application Development (RAD) tool for Free Pascal
|
||||
Lazarus are the class libraries for Free Pascal that emulate Delphi.
|
||||
Free Pascal is a GPL'd compiler that runs on Linux, Win32, OS/2, 68K
|
||||
and other OS's. Free Pascal is designed to be able to understand and
|
||||
compile programs written with the Delphi syntax, which is object-oriented.
|
||||
Lazarus is the part of the missing puzzle that will allow you to develop
|
||||
Delphi-like programs in all of the above platforms.
|
||||
.
|
||||
This package contains the lazarus IDE, LCL and components.
|
||||
|
||||
Package: lazarus-src
|
||||
Section: devel
|
||||
Architecture: all
|
||||
Description: Rapid Application Development (RAD) tool for Free Pascal
|
||||
Lazarus are the class libraries for Free Pascal that emulate Delphi.
|
||||
Free Pascal is a GPL'd compiler that runs on Linux, Win32, OS/2, 68K
|
||||
and other OS's. Free Pascal is designed to be able to understand and
|
||||
compile programs written with the Delphi syntax, which is object-oriented.
|
||||
Lazarus is the part of the missing puzzle that will allow you to develop
|
||||
Delphi-like programs in all of the above platforms.
|
||||
.
|
||||
This package contains lazarus source code necessary for the IDE code tool to
|
||||
run (retrieving declarations and navigating in code).
|
||||
|
||||
Package: lazarus-doc
|
||||
Section: doc
|
||||
Architecture: all
|
||||
Description: Rapid Application Development (RAD) tool for Free Pascal
|
||||
Lazarus are the class libraries for Free Pascal that emulate Delphi.
|
||||
Free Pascal is a GPL'd compiler that runs on Linux, Win32, OS/2, 68K
|
||||
and other OS's. Free Pascal is designed to be able to understand and
|
||||
compile programs written with the Delphi syntax, which is object-oriented.
|
||||
Lazarus is the part of the missing puzzle that will allow you to develop
|
||||
Delphi-like programs in all of the above platforms.
|
||||
.
|
||||
This package contain documentation of the lazarus IDE and components. It can
|
||||
be viewed separately with any HTML browser or used by the IDE to as an
|
||||
integrated help (pressing <F1> on any LCL identifier will browse the help of
|
||||
that identifier).
|
||||
|
23
debian/copyright
vendored
23
debian/copyright
vendored
@ -3,7 +3,18 @@ Wed, 18 Aug 2004 14:45:08 -0300.
|
||||
|
||||
It was downloaded from http://www.lazarus.freepascal.org.
|
||||
|
||||
Upstream Authors: Andreas Hausladen, Andrew Haines, Andrew Johnson, Bob Wingard, Christian Iversen, Cliff Baeseman, Colin Western, Curtis White, Darek Mazur, Eric Chapman, GongYu, Hans-Joachim Ott, Jason King, Jeffrey A. Wormsley, Jeroen van Idekinge, Jesus Reyes, Karl Brandt, Keith Bowes, Ladislav Michl, Luis R. Hilario B., Marc Weustink, Martin Patik, Martin Smat, Martyn Ranyard, Mattias Gaertner, Michael A. Hess, Micha Nelissen, Michal Bukovjan, Olivier Guilbaud, Peter Dyson, Radek Cervinka, Raul Moratalla, Reimar Grabowski, Samuel Liddicott, Seppo Suutarla, Shane Miller, Stefan Hille, Tom Lisjac, Tony Maro, Vasily I. Volchenko, Vincent Snijders, Wojciech Malinowski
|
||||
Upstream Authors: Andreas Hausladen, Andrew Haines, Andrew Johnson, Bob
|
||||
Wingard, Christian Iversen, Cliff Baeseman, Colin Western, Curtis White,
|
||||
Darek Mazur, Eric Chapman, GongYu, Hans-Joachim Ott, Jason King, Jeffrey
|
||||
A. Wormsley, Jeroen van Idekinge, Jesus Reyes, Karl Brandt, Keith Bowes,
|
||||
Ladislav Michl, Luis R. Hilario B., Marc Weustink, Martin Patik, Martin
|
||||
Smat, Martyn Ranyard, Mattias Gaertner, Michael A. Hess, Micha Nelissen,
|
||||
Michal Bukovjan, Olivier Guilbaud, Peter Dyson, Radek Cervinka, Raul
|
||||
Moratalla, Reimar Grabowski, Samuel Liddicott, Seppo Suutarla, Shane
|
||||
Miller, Stefan Hille, Tom Lisjac, Tony Maro, Vasily I. Volchenko,
|
||||
Vincent Snijders, Wojciech Malinowski
|
||||
|
||||
Copyright: (C) 1999-2007 Lazarus development team
|
||||
|
||||
The Lazarus sources consists of several parts and each part has its own
|
||||
license. Three licenses are in use: The GPL, version 2, a modified LGPL
|
||||
@ -33,8 +44,10 @@ The source directory tree and respective licenses:
|
||||
+- codetools (GPL v2)
|
||||
|
|
||||
+- gtk
|
||||
|
|
||||
+- gtkglarea (modified LGPL)
|
||||
| |
|
||||
| +- gtkglarea (modified LGPL)
|
||||
|
|
||||
+- lazreport (modified LPGL)
|
||||
|
||||
|
||||
The IDE files are the files in the <lazarus>, designer, packager and debugger
|
||||
@ -60,8 +73,8 @@ COPYING.modifiedLGPL below:
|
||||
you are not obligated to do so. If you do not wish to do so, delete this
|
||||
exception statement from your version. "
|
||||
|
||||
See: /usr/share/common-licenses/GPL
|
||||
/usr/share/common-licenses/LGPL
|
||||
See: /usr/share/common-licenses/GPL-2
|
||||
/usr/share/common-licenses/LGPL-2
|
||||
|
||||
For full copies of the GPL and the LGPL.
|
||||
|
||||
|
2
debian/dirs
vendored
2
debian/dirs
vendored
@ -1,2 +0,0 @@
|
||||
usr/bin
|
||||
usr/lib/lazarus
|
1
debian/lazarus-doc.install
vendored
Normal file
1
debian/lazarus-doc.install
vendored
Normal file
@ -0,0 +1 @@
|
||||
/usr/share/doc/lazarus
|
52
debian/lazarus-ide.install
vendored
Normal file
52
debian/lazarus-ide.install
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
/usr/lib/lazarus/lazarus
|
||||
/usr/lib/lazarus/lazbuild
|
||||
/usr/lib/lazarus/startlazarus
|
||||
/usr/lib/lazarus/components/codetools
|
||||
#/usr/lib/lazarus/components/custom
|
||||
#/usr/lib/lazarus/components/rx
|
||||
#/usr/lib/lazarus/components/sqlite
|
||||
/usr/lib/lazarus/components/cgi
|
||||
/usr/lib/lazarus/components/fpcunit
|
||||
/usr/lib/lazarus/components/memds
|
||||
/usr/lib/lazarus/components/sqldb
|
||||
/usr/lib/lazarus/components/printers
|
||||
/usr/lib/lazarus/components/projecttemplates
|
||||
/usr/lib/lazarus/components/rtticontrols
|
||||
/usr/lib/lazarus/components/sdf
|
||||
/usr/lib/lazarus/components/synedit
|
||||
#/usr/lib/lazarus/components/synunihighlighter
|
||||
/usr/lib/lazarus/components/tachart
|
||||
/usr/lib/lazarus/components/tdbf
|
||||
/usr/lib/lazarus/components/turbopower_ipro
|
||||
#/usr/lib/lazarus/components/lazreport
|
||||
#/usr/lib/lazarus/components/chmhelp
|
||||
#/usr/lib/lazarus/components/macfiles
|
||||
#/usr/lib/lazarus/components/mpaslex
|
||||
#/usr/lib/lazarus/components/opengl
|
||||
#/usr/lib/lazarus/components/dbexport
|
||||
#/usr/lib/lazarus/components/popupnotifier
|
||||
#/usr/lib/lazarus/components/simpleideintf
|
||||
#/usr/lib/lazarus/components/daemon
|
||||
#/usr/lib/lazarus/components/fpweb
|
||||
#/usr/lib/lazarus/components/editortoolbar
|
||||
#/usr/lib/lazarus/components/prettymessages
|
||||
#/usr/lib/lazarus/components/lazthread
|
||||
#/usr/lib/lazarus/components/datadict
|
||||
#/usr/lib/lazarus/components/customform
|
||||
#/usr/lib/lazarus/components/prettyformat
|
||||
#/usr/lib/lazarus/components/h2pas
|
||||
#/usr/lib/lazarus/components/images
|
||||
#/usr/lib/lazarus/converter
|
||||
#/usr/lib/lazarus/debugger
|
||||
/usr/lib/lazarus/designer
|
||||
#/usr/lib/lazarus/doceditor
|
||||
/usr/lib/lazarus/examples
|
||||
#/usr/lib/lazarus/ide
|
||||
/usr/lib/lazarus/ideintf
|
||||
#/usr/lib/lazarus/languages
|
||||
/usr/lib/lazarus/lcl
|
||||
/usr/lib/lazarus/packager
|
||||
/usr/lib/lazarus/tools
|
||||
/usr/lib/lazarus/units
|
||||
/usr/share/pixmaps
|
||||
/usr/share/applications
|
3
debian/lazarus-ide.links
vendored
Normal file
3
debian/lazarus-ide.links
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
/usr/lib/lazarus/startlazarus /usr/bin/startlazarus
|
||||
/usr/lib/lazarus/startlazarus /usr/bin/lazarus-ide
|
||||
/usr/lib/lazarus/lazarus /usr/lib/lazarus/lazarus-ide
|
6
debian/lazarus-ide.menu
vendored
Normal file
6
debian/lazarus-ide.menu
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
?package(lazarus-ide):needs="X11"\
|
||||
title="Lazarus IDE"\
|
||||
section="Applications/Programming"\
|
||||
hints="Programming,Delphi"\
|
||||
icon="/usr/share/pixmaps/lazarus.xpm"\
|
||||
command="/usr/bin/lazarus-ide"
|
13
debian/lazarus-src.install
vendored
Normal file
13
debian/lazarus-src.install
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
/usr/lib/lazarus/components
|
||||
/usr/lib/lazarus/debugger
|
||||
/usr/lib/lazarus/examples
|
||||
/usr/lib/lazarus/ide
|
||||
/usr/lib/lazarus/lcl
|
||||
/usr/lib/lazarus/designer
|
||||
/usr/lib/lazarus/packager
|
||||
/usr/lib/lazarus/test
|
||||
/usr/lib/lazarus/doceditor
|
||||
/usr/lib/lazarus/ideintf
|
||||
/usr/lib/lazarus/tools
|
||||
/usr/lib/lazarus/converter
|
||||
|
1
debian/lazarus.substvars
vendored
1
debian/lazarus.substvars
vendored
@ -1 +0,0 @@
|
||||
shlibs:Depends=libc6 (>= 2.3.2.ds1-4), libgdk-pixbuf2 (>= 0.22.0-3), libglib1.2 (>= 1.2.0), libgtk1.2 (>= 1.2.10-4), libx11-6 | xlibs (>> 4.1.0), libxext6 | xlibs (>> 4.1.0), libxi6 | xlibs (>> 4.1.0)
|
2
debian/links
vendored
2
debian/links
vendored
@ -1,2 +0,0 @@
|
||||
/usr/lib/lazarus/startlazarus /usr/bin/startlazarus
|
||||
/usr/lib/lazarus/startlazarus /usr/bin/lazarus-ide
|
6
debian/menu
vendored
6
debian/menu
vendored
@ -1,6 +0,0 @@
|
||||
?package(lazarus):needs="X11"\
|
||||
title="Lazarus IDE"\
|
||||
section="Applications/Programming"\
|
||||
hints="Programming,Delphi"\
|
||||
icon="/usr/share/pixmaps/lazarus.xpm"\
|
||||
command="/usr/bin/lazarus-ide"
|
20
debian/move-usr-lib.sh
vendored
20
debian/move-usr-lib.sh
vendored
@ -1,20 +0,0 @@
|
||||
LAZDEBDIR=$1
|
||||
LAZTARGET=lib
|
||||
for i in `find -maxdepth 1 -not -name debian -and -not -name install -and -not -name '.'`; do
|
||||
cp -Rl $i $LAZDEBDIR/usr/$LAZTARGET/lazarus
|
||||
done
|
||||
rm -f $LAZDEBDIR/usr/$LAZTARGET/lazarus/COPYING.GPL
|
||||
rm -f $LAZDEBDIR/usr/$LAZTARGET/lazarus/COPYING.LGPL
|
||||
rm -f $LAZDEBDIR/usr/$LAZTARGET/lazarus/COPYING.modifiedLGPL
|
||||
rm -f $LAZDEBDIR/usr/$LAZTARGET/lazarus/COPYING
|
||||
if [ "$LAZTARGET" = "share" ]; then
|
||||
cd $LAZDEBDIR/usr/share/lazarus
|
||||
mv lazarus ../../lib/lazarus
|
||||
mv startlazarus ../../lib/lazarus
|
||||
mv tools/svn2revisioninc ../../lib/lazarus/tools/svn2revisioninc
|
||||
for i in `find -type d -name 'lib' -or -name 'units'`; do
|
||||
d=`dirname $i`
|
||||
mkdir -p ../../lib/lazarus/$d
|
||||
mv $i ../../lib/lazarus/$d
|
||||
done
|
||||
fi
|
18
debian/orig-tar.sh
vendored
Normal file
18
debian/orig-tar.sh
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
# called by uscan with '--upstream-version' <version> <file>
|
||||
DIR=lazarus
|
||||
|
||||
# clean up the upstream tarball
|
||||
tar xzf $3
|
||||
rm -f $DIR/debian/*.ex $DIR/debian/*.EX $DIR/debian/files
|
||||
tar czf $3 $DIR
|
||||
rm -rf $DIR
|
||||
|
||||
# move to directory 'tarballs'
|
||||
if [ -r .svn/deb-layout ]; then
|
||||
. .svn/deb-layout
|
||||
mv $3 $origDir
|
||||
echo "moved $3 to $origDir"
|
||||
fi
|
||||
|
247
debian/rules
vendored
247
debian/rules
vendored
@ -1,16 +1,66 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
# Sample debian/rules that uses debhelper.
|
||||
# GNU copyright 1997 to 1999 by Joey Hess.
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
# stolen from cdbs:
|
||||
DEB_DH_BUILDDEB_ARGS := -- -Z bzip2
|
||||
|
||||
# Define FPC and FPCDIR if it was not set
|
||||
ifndef FPC
|
||||
export FPC=fpc
|
||||
endif
|
||||
ifndef FPCDIR
|
||||
export FPCDIR=/usr/lib/fpc/2.2.0
|
||||
endif
|
||||
# Get directories
|
||||
CURDIR:=$(shell pwd)
|
||||
BUILD_DIR=$(CURDIR)/debian/build
|
||||
INSTALL_DIR=$(CURDIR)/debian/tmp
|
||||
DOC_DIR=$(INSTALL_DIR)/usr/share/doc
|
||||
EXAMPLE_TEMP=$(DOC_DIR)/fpc-$(FPCVERSION)
|
||||
INSTALLOPTS=INSTALL_PREFIX=$(INSTALL_DIR)/usr
|
||||
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
LAZDEBDIR = $(CURDIR)/debian/lazarus
|
||||
###################
|
||||
# Clean
|
||||
#
|
||||
|
||||
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
||||
INSTALL_PROGRAM += -s
|
||||
endif
|
||||
clean: clean-patched unpatch
|
||||
clean-patched:
|
||||
@echo "--- Cleaning"
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-arch-stamp install-arch-stamp arrange-arch-stamp configure-stamp lazbuild
|
||||
rm -f build-doc-stamp install-doc-stamp
|
||||
rm -f build-indep-stamp install-indep-stamp
|
||||
rm -f debian-files-stamp
|
||||
rm -f debian/*.files debian/*.docs debian/*.examples debian/*.postinst debian/*.postrm
|
||||
$(MAKE) distclean
|
||||
-(find . -name \*.a | xargs rm)
|
||||
dh_clean
|
||||
|
||||
patch: patch-stamp
|
||||
|
||||
patch-stamp:
|
||||
dpatch apply-all
|
||||
touch patch-stamp
|
||||
|
||||
unpatch:
|
||||
dpatch deapply-all
|
||||
rm -rf patch-stamp debian/patched
|
||||
|
||||
###################
|
||||
# Debian files
|
||||
#
|
||||
|
||||
debian-files: debian-files-stamp
|
||||
debian-files-stamp: patch
|
||||
@echo "--- Creating/fixing *.install files"
|
||||
#/bin/bash debian/fixdeb debian $(FPCTARGET) $(PPNEW)
|
||||
touch debian-files-stamp
|
||||
|
||||
###################
|
||||
# Arch packages
|
||||
#
|
||||
|
||||
configure: configure-stamp
|
||||
configure-stamp:
|
||||
@ -19,74 +69,149 @@ configure-stamp:
|
||||
find -name 'Makefile.fpc' | xargs fpcmake
|
||||
touch configure-stamp
|
||||
|
||||
build: patch build-stamp
|
||||
|
||||
build-stamp: configure-stamp
|
||||
build-arch: build-arch-stamp
|
||||
build-arch-stamp: debian-files-stamp configure-stamp
|
||||
@echo "--- Building"
|
||||
dh_testdir
|
||||
$(MAKE) USESVN2REVISIONINC=0 FPC=fpc
|
||||
touch build-stamp
|
||||
$(MAKE) lcl packager/registration ideintf bigidecomponents examples
|
||||
$(MAKE) lcl packager/registration ideintf bigidecomponents examples LCL_PLATFORM=gtk2
|
||||
$(MAKE) bigide USESVN2REVISIONINC=0
|
||||
$(MAKE) lazbuilder
|
||||
$(MAKE) tools
|
||||
touch build-arch-stamp
|
||||
|
||||
clean: clean-patched unpatch
|
||||
|
||||
clean-patched:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp configure-stamp lazbuild debian/*.ex debian/files
|
||||
$(MAKE) distclean
|
||||
dh_clean
|
||||
|
||||
patch: patch-stamp
|
||||
|
||||
patch-stamp:
|
||||
#dpatch apply-all
|
||||
touch patch-stamp
|
||||
|
||||
unpatch:
|
||||
#dpatch deapply-all
|
||||
rm -rf patch-stamp debian/patched
|
||||
|
||||
install: build
|
||||
install-arch: install-arch-stamp
|
||||
install-arch-stamp: build-arch-stamp debian-files-stamp
|
||||
@echo "--- Installing"
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
# copy lazarus to /usr/share
|
||||
install -d $(LAZDEBDIR)/usr/lib/lazarus
|
||||
install -d $(LAZDEBDIR)/usr/bin
|
||||
sh $(CURDIR)/debian/move-usr-lib.sh $(LAZDEBDIR)
|
||||
# copy lazarus to /usr/lib
|
||||
install -d $(INSTALL_DIR)/usr/bin
|
||||
install -d $(INSTALL_DIR)/usr/lib/lazarus
|
||||
cp -Rfpl -t $(INSTALL_DIR)/usr/lib/lazarus lazarus lazbuild startlazarus
|
||||
find -name '*.ppu' -or -name '*.[oa]' -or -name '*.so*' | xargs cp -Rfpl --parents -t $(INSTALL_DIR)/usr/lib/lazarus
|
||||
# copy icons and menu entries for the GNOME menu
|
||||
install -d $(LAZDEBDIR)/usr/share/pixmaps
|
||||
install -d $(LAZDEBDIR)/usr/share/applications
|
||||
install -d $(LAZDEBDIR)/usr/bin
|
||||
convert -geometry 32x32 $(CURDIR)/images/ide_icon48x48.png $(LAZDEBDIR)/usr/share/pixmaps/lazarus.xpm
|
||||
chmod 644 $(LAZDEBDIR)/usr/share/pixmaps/lazarus.xpm
|
||||
install -m 644 $(CURDIR)/install/lazarus.desktop $(LAZDEBDIR)/usr/share/applications/lazarus.desktop
|
||||
install -d $(INSTALL_DIR)/usr/share/pixmaps
|
||||
install -d $(INSTALL_DIR)/usr/share/applications
|
||||
convert -geometry 32x32 $(CURDIR)/images/ide_icon48x48.png $(INSTALL_DIR)/usr/share/pixmaps/lazarus.xpm
|
||||
chmod 644 $(INSTALL_DIR)/usr/share/pixmaps/lazarus.xpm
|
||||
install -m 644 $(CURDIR)/install/lazarus.desktop $(INSTALL_DIR)/usr/share/applications/lazarus.desktop
|
||||
touch install-arch-stamp
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install
|
||||
arrange-arch: arrange-arch-stamp
|
||||
arrange-arch-stamp: install-arch-stamp debian-files-stamp
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_install -s --sourcedir=debian/tmp --list-missing
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: build install
|
||||
touch arrange-arch-stamp
|
||||
|
||||
build-indep: patch
|
||||
install-indep:
|
||||
touch install-indep-stamp
|
||||
|
||||
###################
|
||||
# Documentation
|
||||
#
|
||||
|
||||
build-doc: patch build-doc-stamp
|
||||
build-doc-stamp: debian-files-stamp
|
||||
@echo "--- Building Documentation"
|
||||
dh_testdir
|
||||
#$(MAKE) -C docs $(CONVERTER) $(BUILDOPTS) FPDOC=$(NEWFPDOC)
|
||||
touch build-indep-stamp
|
||||
|
||||
install-doc: install-doc-stamp
|
||||
install-doc-stamp: build-doc-stamp debian-files-stamp
|
||||
@echo "--- Installing Documentation"
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
install -d $(INSTALL_DIR)/usr/share/doc/lazarus
|
||||
cp -Rfpl -t $(INSTALL_DIR)/usr/share/doc/lazarus docs/*
|
||||
touch install-doc-stamp
|
||||
|
||||
###################
|
||||
# Source
|
||||
#
|
||||
|
||||
install-source: install-source-stamp
|
||||
install-source-stamp:
|
||||
@echo "--- Cleaning the tree and copying the source code"
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
$(MAKE) distclean
|
||||
install -d $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
cp -r $(CURDIR)/components $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
cp -r $(CURDIR)/debugger $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
cp -r $(CURDIR)/examples $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
cp -r $(CURDIR)/ide $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
cp -r $(CURDIR)/ide $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
cp -r $(CURDIR)/lcl $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
cp -r $(CURDIR)/designer $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
cp -r $(CURDIR)/packager $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
cp -r $(CURDIR)/test $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
cp -r $(CURDIR)/doceditor $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
cp -r $(CURDIR)/ideintf $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
cp -r $(CURDIR)/tools $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
cp -r $(CURDIR)/converter $(INSTALL_DIR)/usr/lib/lazarus/
|
||||
find $(INSTALL_DIR) -name '*.bmp' -exec chmod 644 '{}' ';'
|
||||
$(RM) $(INSTALL_DIR)/usr/lib/lazarus/components/lazreport/license*.txt
|
||||
touch install-source-stamp
|
||||
|
||||
###################
|
||||
# Generic
|
||||
#
|
||||
|
||||
build: build-arch build-indep
|
||||
install: install-arch install-indep
|
||||
binary: binary-arch binary-indep
|
||||
|
||||
|
||||
###################
|
||||
# Deb building
|
||||
#
|
||||
|
||||
binary-indep: build-doc install-doc install-source debian-files
|
||||
@echo "--- Building: arch-indep packages"
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installdocs -i
|
||||
dh_installchangelogs -i
|
||||
dh_install -i --sourcedir=debian/tmp --list-missing
|
||||
dh_compress -i -X.pdf
|
||||
dh_fixperms -i
|
||||
dh_installdeb -i
|
||||
dh_gencontrol -i
|
||||
dh_md5sums -i
|
||||
dh_builddeb -i $(DEB_DH_BUILDDEB_ARGS)
|
||||
|
||||
binary-arch: build-arch arrange-arch debian-files
|
||||
@echo "--- Building: arch packages"
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_link
|
||||
dh_installchangelogs
|
||||
dh_installdocs
|
||||
dh_installexamples
|
||||
dh_installdocs -a
|
||||
dh_installchangelogs -a
|
||||
dh_installexamples -a
|
||||
dh_installmenu
|
||||
dh_installman
|
||||
fpc-depends
|
||||
dh_installman -s
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb -- -Z bzip2
|
||||
dh_compress -a
|
||||
dh_fixperms -a
|
||||
dh_installdeb -s
|
||||
dh_shlibdeps -s
|
||||
dh_gencontrol -s
|
||||
dh_md5sums -s
|
||||
dh_builddeb -s $(DEB_DH_BUILDDEB_ARGS)
|
||||
|
||||
.PHONY: build clean binary binary-arch \
|
||||
binary-indep debian-files build-arch \
|
||||
install install-indep install-arch \
|
||||
configure
|
||||
|
||||
get-orig-source:
|
||||
-uscan --upstream-version=0 --rename
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure
|
||||
|
2
debian/watch
vendored
2
debian/watch
vendored
@ -1,3 +1,3 @@
|
||||
version=3
|
||||
http://sf.net/lazarus/lazarus-(.*).tar.gz
|
||||
http://sf.net/lazarus/lazarus-(.*).tar.gz debian debian/orig-tar.sh
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user