diff --git a/community/vigra/PKGBUILD b/community/vigra/PKGBUILD deleted file mode 100644 index c219bfeef..000000000 --- a/community/vigra/PKGBUILD +++ /dev/null @@ -1,59 +0,0 @@ -# Maintainer: Bruno Pagani -# Contributor: AndyRTR -# Contributor: Lukas Jirkovsky - -# ALARM: Kevin Mihelich -# - build v5 with -DCMAKE_CXX_FLAGS=-std=c++11 -DWITH_BOOST_THREAD=1 to fix FTBFS - -pkgname=vigra -pkgver=1.11.1.r45+g8acd73a5 -pkgrel=6 -pkgdesc="Computer vision library" -arch=(x86_64) -url="https://ukoethe.github.io/vigra/" -license=(custom:MIT) -depends=(libpng libtiff openexr gcc-libs sh hdf5 fftw) -makedepends=(git cmake boost python-numpy) -checkdepends=(python-nose) -optdepends=('python: for python bindings' - 'boost-libs: for python bindings') -source=(git+https://github.com/ukoethe/vigra#commit=8acd73a5e0408326e2a3c1ed1c2c70ffe2b954d0 - vigra-openexr3.patch) -sha256sums=(SKIP - 2572717e39f916c7c463b8f49306b683c5923906be2721f7da181c58b3a2b34b) - -pkgver() { - cd ${pkgname} - git describe --long --tags | sed 's/^Version-//;s/\([^-]*-g\)/r\1/;s/-/./g;s/\.g/+g/' -} - -prepare() { - cd ${pkgbase} - # Fix build with openexr 3 - patch -p1 < ../vigra-openexr3.patch -} - -build() { - cmake -B build -S ${pkgbase} \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DPYTHON_EXECUTABLE=/usr/bin/python \ - -DWITH_OPENEXR=true \ - -DWITH_VIGRANUMPY=1 \ - -DDOCINSTALL=share/doc \ - -DCMAKE_C_FLAGS="-DH5_USE_110_API" \ - -DCMAKE_CXX_FLAGS="-DH5_USE_110_API" \ - $([ $CARCH == arm ] && echo "-DCMAKE_CXX_FLAGS=-std=c++11 -DWITH_BOOST_THREAD=1") - make -C build -} - -# Numerous failures, upstream almost dead -# https://github.com/ukoethe/vigra/issues/409 -# https://github.com/ukoethe/vigra/issues/491 -#check() { -# make -C build -j1 -k check -#} - -package() { - make -C build DESTDIR="${pkgdir}" install - install -Dm644 ${pkgbase}/LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}/ -} diff --git a/community/vigra/vigra-openexr3.patch b/community/vigra/vigra-openexr3.patch deleted file mode 100644 index f87e55218..000000000 --- a/community/vigra/vigra-openexr3.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff --git a/config/FindOpenEXR.cmake b/config/FindOpenEXR.cmake -index ef36cdbf..0423e247 100644 ---- a/config/FindOpenEXR.cmake -+++ b/config/FindOpenEXR.cmake -@@ -23,6 +23,16 @@ - # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -+find_package(OpenEXR 3.0 CONFIG QUIET) -+if(TARGET OpenEXR::OpenEXR) -+ find_package(Threads) -+ SET(OPENEXR_FOUND TRUE) -+ SET(OPENEXR_INCLUDE_DIR OpenEXR::OpenEXR) -+ SET(OPENEXR_LIBRARIES OpenEXR::OpenEXR) -+ SET(OPENEXR_VERSION ${OpenEXR_VERSION}) -+ return() -+endif() -+ - FIND_PATH(OPENEXR_INCLUDE_DIR ImfRgbaFile.h PATH_SUFFIXES OpenEXR) - - FOREACH(V "" -2_2 -2_1 -2_0 -1_7)