2011-08-01 00:19:33 +08:00
|
|
|
#
|
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
|
|
|
|
pkgname=hugin-tools
|
|
|
|
_pkgname=hugin
|
2012-11-26 07:02:28 +08:00
|
|
|
pkgver=2012.0.0
|
2013-07-28 00:51:03 +08:00
|
|
|
pkgrel=5
|
2011-08-01 00:19:33 +08:00
|
|
|
pkgdesc="Hugin libs and tools to be used by Kipi-plugins"
|
2012-11-01 11:15:39 +08:00
|
|
|
arch=('x86_64')
|
2011-08-01 00:19:33 +08:00
|
|
|
url="http://hugin.sourceforge.net/"
|
|
|
|
license=('LGPL')
|
2012-11-26 07:02:28 +08:00
|
|
|
depends=('boost-libs' 'enblend-enfuse' 'exiv2' 'openexr' 'libpano13>=2.9.18'
|
2013-07-28 00:51:03 +08:00
|
|
|
'lapack' 'desktop-file-utils' 'icu' 'libxt' 'lensfun' 'libpng' 'libxrandr')
|
2013-01-29 06:19:40 +08:00
|
|
|
makedepends=('zip' 'cmake' 'boost' 'mesa' 'tclap')
|
2011-08-01 00:19:33 +08:00
|
|
|
conflict=('hugin')
|
2011-08-13 00:42:50 +08:00
|
|
|
provides=('hugin')
|
2012-11-26 07:02:28 +08:00
|
|
|
source=("http://downloads.sourceforge.net/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2")
|
2013-07-28 00:51:03 +08:00
|
|
|
sha1sums=('53f97d030716e66dc5a49c7e786686a9d5262b8d')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${_pkgname}-${pkgver}"
|
|
|
|
sed 's/Luk.... Jirkovsk../Lukas Jirkovsky/g' -i doc/deghosting_mask.pod
|
|
|
|
# pod2man limitation (makepkg uses LC_ALL=C and Unicode chars take two bytes)
|
|
|
|
}
|
2011-08-01 00:19:33 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}"
|
2012-11-26 07:02:28 +08:00
|
|
|
|
2013-07-28 00:51:03 +08:00
|
|
|
mkdir -p build
|
2012-11-01 11:15:39 +08:00
|
|
|
cd build
|
2011-08-01 00:19:33 +08:00
|
|
|
|
|
|
|
# this makes possible to compile all the hugin tools without GUis
|
|
|
|
sed -i -e "s~FIND_PACKAGE(wxWidgets REQUIRED)~~g" ${srcdir}/${_pkgname}-${pkgver}/CMakeLists.txt
|
2013-07-28 00:51:03 +08:00
|
|
|
mkdir -p ${srcdir}/${_pkgname}-${pkgver}/src/hugin_base/PT
|
2011-08-01 00:19:33 +08:00
|
|
|
cp ${srcdir}/${_pkgname}-${pkgver}/src/hugin1/PT/*.h ${srcdir}/${_pkgname}-${pkgver}/src/hugin_base/PT
|
|
|
|
|
|
|
|
cmake "${srcdir}/${_pkgname}-${pkgver}" \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_EXE_LINKER_FLAGS="-lpthread" \
|
2013-01-29 06:19:40 +08:00
|
|
|
-DENABLE_LAPACK=yes \
|
|
|
|
-DBUILD_HSI=no
|
2011-08-01 00:19:33 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2013-01-29 06:19:40 +08:00
|
|
|
package() {
|
2011-08-01 00:19:33 +08:00
|
|
|
cd "${srcdir}/build"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2013-05-12 00:34:59 +08:00
|
|
|
|
|
|
|
# Remove frontend files
|
2013-05-19 01:09:14 +08:00
|
|
|
rm -rf "${pkgdir}"/usr/share/applications
|
2013-05-12 00:34:59 +08:00
|
|
|
rm -rf "${pkgdir}"/usr/share/man
|
|
|
|
rm -rf "${pkgdir}"/usr/share/locale
|
2011-08-01 00:19:33 +08:00
|
|
|
}
|