summaryrefslogtreecommitdiff
path: root/manualPorts/gimp-nufraw/Pkgfile
blob: 2f6f4c3a42fff2c877ad51c8aaded3b73f4eaa60 (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
# Description: Converter for raw files; utility and GIMP plugin
# URL: https://sourceforge.net/projects/nufraw/
# Maintainer: Erich Eckner, crux at eckner dot net
# Depends on: cfitsio exiv2 gtkimageview lcms2 lensfun libjpeg-turbo gimp

name=gimp-nufraw
version=0.42
release=1
source=("https://downloads.sourceforge.net/nufraw/nufraw-$version.tar.gz" nufraw-iostream.patch nufraw-exiv2-0.27.patch)

build() {
  cd "nufraw-$version"
  patch -p1 -i ../nufraw-iostream.patch # Add missing include
  patch -p1 -i ../nufraw-exiv2-0.27.patch # Fix build with exiv2 0.27 (Gentoo)

  autoreconf -fi

  mv nufraw.desktop{.desktop,}
  chmod +x generate_schemas.sh

  ./configure \
    --prefix=/usr \
    --enable-extras \
    --enable-mime \
    --enable-openmp \
    --with-gimp \
    --with-cinepaint \
    --enable-contrast
  make

  make DESTDIR="$PKG" install
  rm -f "$PKG/usr/bin/dcraw"
}