summaryrefslogtreecommitdiff
path: root/manualPorts/hugin/Pkgfile
blob: 675ba6f2e4dd49ec4a9282fc0b62b1ce51275d24 (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=2020.0.0
release=2
source=("https://downloads.sourceforge.net/project/${name}/${name}/${name}-${version%.*}/${name}-${version}.tar.bz2" hugin-openexr3.patch)

build() {

	cd "${SRC}/${name}-${version}"
	patch -p1 -i ../hugin-openexr3.patch
	rm CMakeModules/FindZLIB.cmake
	install -d build
	cd build
	cmake .. \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DENABLE_LAPACK=yes

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

}