summaryrefslogtreecommitdiff
path: root/manualPorts/hugin/Pkgfile
blob: c1749b5a542997e168f97a6f6586b23a10d9a7ae (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
# Description: Panorama photo stitcher
# URL: http://hugin.sourceforge.net/
# Maintainer: Erich Eckner, crux at eckner dot net
# Depends on: wxgtk enblend-enfuse exiv2 libpano13 python glew desktop-file-utils swig

name=hugin
version=2021.0.0
release=1
source=("https://downloads.sourceforge.net/project/${name}/${name}/${name}-${version%.*}/${name}-${version}.tar.bz2")

build() {

	cd "${SRC}/${name}-${version}"
	install -d build
	cd build
	cmake .. \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DENABLE_LAPACK=yes \
		-DBUILD_HSI=ON \
		-DUSE_GDKBACKEND_X11=ON \
		-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3

	make
	make DESTDIR="${PKG}" install
        rm -rf ${PKG}/usr/share/locale
	find "${PKG}" \( -name '*README*' -o -name '*COPYING*' \) -delete

}