12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- set -e
- program=lcms2
- version=2.13
- release=1
- pkgcategory=x-libs
- tarname=${program}-${version}.tar.gz
- fetch=https://sourceforge.net/projects/lcms/files/lcms/${version}/$tarname
- description="
- An ICC-based CMM for color management.
- Little CMS intends to be an OPEN SOURCE small-footprint color
- management engine, with special focus on accuracy and performance.
- It uses the International Color Consortium standard (ICC), which is
- the modern standard when regarding to color management. The ICC
- specification is widely used and is referred to in many International
- and other de-facto standards. It was approved as an International
- Standard, ISO 15076-1, in 2005.
- "
- homepage=https://www.littlecms.com
- license=MIT
- docs="AUTHORS COPYING ChangeLog"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --enable-static=no \
- --enable-shared=yes \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
-
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 {} +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|