blob: 65a9da988ff8d0ddbf7a39b506a7293ad5d96744 (
plain)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=hugin-hg
pkgver=r9024.a3a195f9a8e6
pkgrel=1
pkgdesc="Panorama photo stitcher"
arch=(x86_64)
url="https://hugin.sourceforge.io/"
license=(GPL-2.0-only)
depends=(
blas
#boost-libs
#enblend-enfuse
exiv2
fftw
#flann #fails to build with this
#glew
glibc
glu
hicolor-icon-theme
imath
lapack
lcms2
#lensfun
libepoxy
libgcc
libglvnd
libgomp
#libjpeg-turbo
libpano13
#libpng
libstdc++
libtiff
libx11
#libxi
#libxmu
openexr # -- Could not find OPTIONAL package OPENEXR
python
sqlite
vigra
wxwidgets-common
wxwidgets-gtk3
)
makedepends=(
#boost
cmake
mercurial
mesa
swig
tclap
)
optdepends=(
'darktable: RAW import using darktable'
'dcraw: RAW import using dcraw'
'perl-image-exiftool: GPano tags support'
'rawtherapee: RAW import using rawtherapee'
)
provides=(hugin)
conflicts=(hugin)
source=("hg+http://hg.code.sf.net/p/hugin/hugin")
sha256sums=('SKIP')
prepare() {
cd "hugin"
#hg import --no-commit ../pylong.patch
}
pkgver() {
cd "hugin"
printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}
build() {
local _flags=(
-DENABLE_LAPACK=yes
-DBUILD_WITH_EPOXY=ON
-DBUILD_HSI=ON
-DUSE_GDKBACKEND_X11=ON
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config
)
cmake -B build -S "hugin" -Wno-author \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
"${_flags[@]}"
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
|