mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 01:00:34 +01:00
* Use fpcsubst tool to automatically set FPC version into configuration files.
git-svn-id: trunk@16110 -
This commit is contained in:
parent
f54fad676b
commit
145802bcea
18
debian/rules
vendored
18
debian/rules
vendored
@ -3,18 +3,25 @@
|
||||
|
||||
DEB_DH_BUILDDEB_ARGS := -- -Z bzip2
|
||||
|
||||
# Define FPC
|
||||
ifndef FPC
|
||||
FPC=/usr/bin/fpc
|
||||
endif
|
||||
# Set FPCVER
|
||||
FPCVER=$(shell ${FPC} -iV)
|
||||
# Get directories
|
||||
CURDIR:=$(shell pwd)
|
||||
BUILD_DIR=$(CURDIR)/debian/build
|
||||
INSTALL_DIR=$(CURDIR)/debian/tmp
|
||||
DOC_DIR=$(INSTALL_DIR)/usr/share/doc
|
||||
# Get utils
|
||||
ifndef FPC
|
||||
export FPC=fpc
|
||||
ifndef MKDIR
|
||||
MKDIR=mkdir -p
|
||||
endif
|
||||
ifndef LAZBUILD
|
||||
LAZBUILD=lazbuild
|
||||
endif
|
||||
# Set default compilation options
|
||||
BUILDOPTS=PP=$(FPC)
|
||||
INSTALLOPTS=INSTALL_PREFIX=$(INSTALL_DIR)/usr
|
||||
# Get fpcmake from path if none is specified.
|
||||
@ -23,7 +30,7 @@ FPCMAKE=fpcmake
|
||||
endif
|
||||
# Define FPCDIR if it was not set
|
||||
ifndef FPCDIR
|
||||
export FPCDIR=/usr/share/fpcsrc/$(shell ${FPC} -iV)
|
||||
export FPCDIR=/usr/share/fpcsrc/${FPCVER}
|
||||
endif
|
||||
|
||||
#export DH_VERBOSE=1
|
||||
@ -112,9 +119,12 @@ install-arch-stamp: build-arch-stamp debian-files-stamp
|
||||
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
|
||||
# Install man pages
|
||||
# Install man pages
|
||||
$(MAKE) -C install/man installman $(INSTALLOPTS) INSTALL_PREFIX=$(INSTALL_DIR)/usr/share
|
||||
touch install-arch-stamp
|
||||
# Install configuration files
|
||||
${MKDIR} $(INSTALL_DIR)/etc/lazarus
|
||||
fpcsubst -d FPCVER=${FPCVER} -i ${CURDIR}/tools/install/linux/environmentoptions.xml -o $(INSTALL_DIR)/etc/lazarus/environmentoptions.xml
|
||||
|
||||
arrange-arch: arrange-arch-stamp
|
||||
arrange-arch-stamp: install-arch-stamp debian-files-stamp
|
||||
|
||||
Loading…
Reference in New Issue
Block a user