-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdeb-opensfm.py
executable file
·65 lines (59 loc) · 1.45 KB
/
deb-opensfm.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env python3
from deblib import *
# General config
set_name("opensfm")
set_homepage("https://github.com/mapillary/OpenSfM")
#Download it
pkgversion = "0.1.0"
git_clone("https://github.com/mapillary/OpenSfM.git", branch="v" + pkgversion)
set_version(pkgversion)
add_version_suffix("-deb1")
set_debversion(1)
# Remove git
pack_source()
create_debian_dir()
#Use the existing COPYING file
copy_license()
build_depends += [
"libceres1-dev",
"python-exifread",
"python-pyproj",
"python-networkx",
"libboost-python-dev",
"python-gpxpy",
"cmake",
"pkg-config",
"libeigen3-dev",
"libgflags-dev",
"libopencv-dev",
"libgoogle-glog-dev",
"libsuitesparse-dev",
"python-xmltodict",
"libopengv-dev",
"libopengv-python",
"python-scipy"]
#Create the changelog (no messages - dummy)
create_dummy_changelog()
# Create rules file
build_config_python(python="python2")
build_config["install"].append(
"mv debian/opensfm/usr/lib/python2.7/site-packages debian/opensfm/usr/lib/python2.7/dist-packages"
)
write_rules()
#Create control file
intitialize_control()
control_add_package(
depends=[
"libceres1",
"libopengv-python",
"python-exifread",
"python-networkx",
"python-gpxpy",
"python-pyproj",
"python-opencv",
"python-scipy",
"python-xmltodict"
],
description="OpenSfM structure from motion implementation")
#Build it
commandline_interface()