3
# Code::Blocks debian/rules file
6
include /usr/share/dpatch/dpatch.make
8
# Uncomment this to turn on verbose mode.
11
# Get the package version from the changelog
12
VERSION=$(shell parsechangelog | grep ^Version | awk -F": " '{print $$2}' | cut -d"-" -f1)
14
# These are used for cross-compiling and for saving the configure script
15
# from having to guess our platform (since we know it already)
16
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
17
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
22
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
28
config.status: configure patch-stamp
31
# Update config.sub/guess
32
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
33
cp -f /usr/share/misc/config.sub config.sub
35
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
36
cp -f /usr/share/misc/config.guess config.guess
41
--with-contrib-plugins=all \
42
--host=$(DEB_HOST_GNU_TYPE) \
43
--build=$(DEB_BUILD_GNU_TYPE) \
45
--docdir=\$${prefix}/share/doc \
46
--mandir=\$${prefix}/share/man \
47
--infodir=\$${prefix}/share/info
52
build-stamp: config.status
55
# Add here commands to compile the package.
65
# Add here commands to clean up after the build process.
66
[ ! -f Makefile ] || $(MAKE) distclean
68
dh_clean rm config.log \
70
config.sub config.guess \
71
src/plugins/contrib/codesnippets/resources/codesnippets.zip \
72
src/plugins/scriptedwizard/resources/scriptedwizard.zip
78
dh_installdirs -ptmp usr/share/doc
80
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
82
# Move the plugins folder from /usr/share/codeblocks/plugins to its proper place
83
mkdir -p $(CURDIR)/debian/tmp/usr/lib/codeblocks/plugins
84
mv $(CURDIR)/debian/tmp/usr/share/codeblocks/plugins/ $(CURDIR)/debian/tmp/usr/lib/codeblocks/
86
# Add the override to its proper place
87
mkdir -p $(CURDIR)/debian/tmp/usr/share/lintian/overrides
88
cp $(CURDIR)/debian/codeblocks.lintian-overrides $(CURDIR)/debian/tmp/usr/share/lintian/overrides/codeblocks
90
# Build architecture-independent files here.
91
binary-indep: build install
92
# We have nothing to do by default.
94
# Build architecture-dependent files here.
95
binary-arch: build install
98
dh_installchangelogs ChangeLog
101
dh_install --fail-missing --sourcedir=debian/tmp
108
dh_strip --dbg-package=codeblocks-dbg
119
cd .. && wget http://internap.dl.sourceforge.net/sourceforge/codeblocks/codeblocks-8.02-src.tar.bz2 && \
120
bunzip2 codeblocks-${VERSION}-src.tar.bz2 && \
121
gzip -9 codeblocks-${VERSION}-src.tar && \
122
mv codeblocks-${VERSION}-src.tar.gz codeblocks_${VERSION}.orig.tar.gz
124
binary: binary-indep binary-arch
125
.PHONY: build clean binary-indep binary-arch binary install
3
include /usr/share/cdbs/1/class/autotools.mk
4
include /usr/share/cdbs/1/rules/debhelper.mk
6
DEB_BUILD_PARALLEL= yes
7
DEB_PARALLEL_JOBS := $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1)
9
ifneq (,$(filter $(DEB_PARALLEL_JOBS),-1 0))
13
DEB_CONFIGURE_EXTRA_FLAGS=--with-contrib-plugins=all --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
15
DEB_INSTALL_CHANGELOGS_ALL= ChangeLog
16
DEB_DBG_PACKAGE_libcodeblocks0= codeblocks-dbg
17
DEB_DBG_PACKAGE_libwxsmithlib0= codeblocks-contrib-dbg
19
DEB_DH_MAKESHLIBS_ARGS_codeblocks-contrib= -Ncodeblocks-contrib
20
DEB_DH_BUILDDEB_ARGS= -- -Zlzma
23
./debian/get-orig-source