Skip to content

Commit dbdd367

Browse files
authored
Merge pull request #47 from cginternals/ppa-deployment
Add default deployment for ubuntu PPAs (refs #43)
2 parents dea9d03 + a971ed9 commit dbdd367

File tree

7 files changed

+158
-0
lines changed

7 files changed

+158
-0
lines changed

deploy/ubuntu-ppa/debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
cmake-init (2.0.0-0) UNRELEASED; urgency=low
3+
4+
* Initial release.
5+
6+
-- Willy Scheibel <[email protected]> Tue, 31 Jan 2017 13:30:00 +0100

deploy/ubuntu-ppa/debian/compat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9

deploy/ubuntu-ppa/debian/control

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Source: cmake-init
2+
Section: misc
3+
Priority: optional
4+
Maintainer: Willy Scheibel <[email protected]>
5+
Build-Depends: build-essential, cmake, qtbase5-dev, doxygen, graphviz
6+
Standards-Version: 3.8.0
7+
8+
Package: libcmake-init
9+
Architecture: any
10+
Depends:
11+
Homepage: https://github.com/cginternals/cmake-init
12+
Description: Template for reliable, cross-platform C++ project setup using cmake.
13+
14+
Package: libcmake-init-dev
15+
Architecture: any
16+
Depends: libcmake-init
17+
Homepage: https://github.com/cginternals/cmake-init
18+
Description: Template for reliable, cross-platform C++ project setup using cmake.
19+
20+
Package: libcmake-init-examples-data
21+
Architecture: any
22+
Homepage: https://github.com/cginternals/cmake-init
23+
Description: Template for reliable, cross-platform C++ project setup using cmake.
24+
25+
Package: libcmake-init-examples
26+
Architecture: any
27+
Depends: libcmake-init, libcmake-init-examples-data, libqt5core5a
28+
Homepage: https://github.com/cginternals/cmake-init
29+
Description: Template for reliable, cross-platform C++ project setup using cmake.
30+
31+
Package: libcmake-init-docs
32+
Architecture: any
33+
Homepage: https://github.com/cginternals/cmake-init
34+
Description: Template for reliable, cross-platform C++ project setup using cmake.
35+
36+
Package: libcmake-init-dbg
37+
Architecture: any
38+
Depends: libcmake-init, libcmake-init-dev
39+
Homepage: https://github.com/cginternals/cmake-init
40+
Description: Template for reliable, cross-platform C++ project setup using cmake.
41+
42+
Package: libcmake-init-all
43+
Architecture: any
44+
Depends: libcmake-init, libcmake-init-dev, libcmake-init-docs, libcmake-init-examples
45+
Homepage: https://github.com/cginternals/cmake-init
46+
Description: Template for reliable, cross-platform C++ project setup using cmake.

deploy/ubuntu-ppa/debian/copyright

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
This package was debianised by Willy Scheibel <[email protected]> on
2+
Tue, 31 Jan 2017 13:30:00 +0100
3+
4+
It was downloaded from:
5+
6+
https://github.com/cginternals/cmake-init
7+
8+
Upstream Author:
9+
10+
CG Internals
11+
12+
Copyright:
13+
14+
Copyright (c) 2015-2017 CG Internals GmbH and Computer Graphics Systems Group at the Hasso-Plattner-Institute, Germany.
15+
16+
License:
17+
18+
This software is available to you under the terms of the MIT license, see "https://github.com/cginternals/cmake-init/blob/master/LICENSE".

deploy/ubuntu-ppa/debian/rules

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
#!/usr/bin/make -f
2+
3+
BUILDDIR = build
4+
BUILDDEBUGDIR = build-debug
5+
6+
# firstly called by launchpad
7+
clean:
8+
rm -rf $(BUILDDIR)
9+
rm -rf $(BUILDDEBUGDIR)
10+
11+
# secondly called by launchpad
12+
build: build-arch
13+
14+
build-arch:
15+
mkdir $(BUILDDIR)
16+
cd $(BUILDDIR);cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DOPTION_BUILD_TESTS=Off -DOPTION_BUILD_EXAMPLES=On -DOPTION_BUILD_DOCS=On ..
17+
make -C $(BUILDDIR)
18+
mkdir $(BUILDDEBUGDIR)
19+
cd $(BUILDDEBUGDIR);cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=/usr -DOPTION_BUILD_TESTS=Off -DOPTION_BUILD_EXAMPLES=Off -DOPTION_BUILD_DOCS=Off ..
20+
make -C $(BUILDDEBUGDIR)
21+
22+
# thirdly called by launchpad
23+
binary: binary-arch
24+
25+
binary-arch: libcmake-init libcmake-init-dev libcmake-init-docs libcmake-init-dbg libcmake-init-examples-data libcmake-init-examples libcmake-init-all
26+
27+
libcmake-init:
28+
cd $(BUILDDIR); DESTDIR=../debian/tmp COMPONENT=runtime make component_install
29+
mkdir -p debian/tmp/DEBIAN
30+
dpkg-gencontrol -plibcmake-init
31+
dpkg --build debian/tmp ..
32+
rm -rf debian/tmp
33+
34+
libcmake-init-dev:
35+
cd $(BUILDDIR); DESTDIR=../debian/tmp COMPONENT=dev make component_install
36+
mkdir -p debian/tmp/DEBIAN
37+
dpkg-gencontrol -plibcmake-init-dev
38+
dpkg --build debian/tmp ..
39+
rm -rf debian/tmp
40+
41+
libcmake-init-docs:
42+
cd $(BUILDDIR); DESTDIR=../debian/tmp COMPONENT=docs make component_install
43+
mkdir -p debian/tmp/DEBIAN
44+
dpkg-gencontrol -plibcmake-init-docs
45+
dpkg --build debian/tmp ..
46+
rm -rf debian/tmp
47+
48+
libcmake-init-dbg:
49+
cd $(BUILDDEBUGDIR); DESTDIR=../debian/tmp COMPONENT=runtime make component_install
50+
cd $(BUILDDEBUGDIR); DESTDIR=../debian/tmp COMPONENT=dev make component_install
51+
rm -rf debian/tmp/usr/include
52+
rm debian/tmp/usr/share/*/*-config.cmake
53+
rm debian/tmp/usr/share/*/AUTHORS
54+
rm debian/tmp/usr/share/*/LICENSE
55+
rm debian/tmp/usr/share/*/README.md
56+
rm debian/tmp/usr/share/*/VERSION
57+
rm debian/tmp/usr/share/*/cmake/*/*-export.cmake
58+
mkdir -p debian/tmp/DEBIAN
59+
dpkg-gencontrol -plibcmake-init-dbg
60+
dpkg --build debian/tmp ..
61+
rm -rf debian/tmp
62+
63+
libcmake-init-examples-data:
64+
cd $(BUILDDIR); DESTDIR=../debian/tmp COMPONENT=examples_data make component_install
65+
mkdir -p debian/tmp/DEBIAN
66+
dpkg-gencontrol -plibcmake-init-examples-data
67+
dpkg --build debian/tmp ..
68+
rm -rf debian/tmp
69+
70+
libcmake-init-examples:
71+
cd $(BUILDDIR); DESTDIR=../debian/tmp COMPONENT=examples_qt make component_install
72+
mkdir -p debian/tmp/DEBIAN
73+
dpkg-gencontrol -plibcmake-init-examples
74+
dpkg --build debian/tmp ..
75+
rm -rf debian/tmp
76+
77+
libcmake-init-all:
78+
mkdir -p debian/tmp/DEBIAN
79+
dpkg-gencontrol -plibcmake-init-all
80+
dpkg --build debian/tmp ..
81+
rm -rf debian/tmp
82+
83+
.PHONY: build build-arch binary binary-arch clean libcmake-init libcmake-init-dev libcmake-init-docs libcmake-init-dbg libcmake-init-examples-data libcmake-init-examples libcmake-init-all
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (native)

deploy/ubuntu-ppa/recipe.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# bzr-builder format 0.3 deb-version {debupstream}+{revno}
2+
lp:cmake-init
3+
nest-part packaging lp:cmake-init deploy/ubuntu-ppa/debian debian master

0 commit comments

Comments
 (0)