iup-stack-solus/libim/package.yml

49 lines
1.8 KiB
YAML
Raw Permalink Normal View History

2022-12-29 18:07:43 +00:00
name : libim
version : 3.15
release : 1
source :
- https://sourceforge.net/projects/imtoolkit/files/3.15/Docs%20and%20Sources/im-3.15_Sources.zip : 3d46af9ed19b41fc0cbeb52c2b5983bb04b6da60a0990819ffe3fcc39f6ffe96
homepage : https://imtoolkit.sourceforge.net/
license : MIT
component : multimedia.library
summary : IM is a toolkit for Digital Imaging
description: |
IM is based on 4 concepts: Image Representation, Storage, Processing and Capture. The main goal of the library is to provide a simple API and abstraction of images for scientific applications.
The most popular file formats are supported: TIFF, BMP, PNG, JPEG, GIF and AVI. Image representation includes scientific data types, and about a hundred Image Processing operations are available.
builddeps :
2023-02-04 10:45:22 +00:00
- pkgconfig(fftw3)
2022-12-29 18:07:43 +00:00
- pkgconfig(lua)
- pkgconfig(libpng)
2023-02-04 10:45:22 +00:00
- lsb-release
2023-08-01 18:34:01 +00:00
rundeps:
- lua-devel:
- libim-lua
2022-12-29 18:07:43 +00:00
patterns :
- lua :
2023-08-01 18:34:01 +00:00
- /usr/lib64/libimlua*.so.*
- lua-devel :
- /usr/include/tecgraf/im/imlua*.h
2022-12-29 18:07:43 +00:00
- /usr/lib64/libimlua*.so
2023-08-01 18:34:01 +00:00
- /usr/lib64/pkgconfig/*lua.pc
2022-12-29 18:07:43 +00:00
environment:
export USE_PKGCONFIG=Yes
export USE_LUA_VERSION=53
export LIBLUA_SFX=
export LUA_SFX=
2022-12-29 18:07:43 +00:00
export LUA_INC=/usr/include
export LUA_LIB=/usr/lib
export LUA_BIN=/usr/bin/lua
2023-08-01 18:34:01 +00:00
setup : |
%patch -p1 < $pkgfiles/0001-fix-lua-sfx.patch
%patch -p1 < $pkgfiles/0002-shared-links.patch
2022-12-29 18:07:43 +00:00
build : |
%make -j1
install : |
2023-08-01 18:34:01 +00:00
install -dm00755 $installdir/usr/{lib64/pkgconfig,include/tecgraf/im}
install -m00644 $pkgfiles/*.pc $installdir/usr/lib64/pkgconfig
rm lib/Linux63_64/{*.a,Lua/*.a}
chmod -R 00755 lib/Linux63_64/*
mv lib/Linux63_64/*.* $installdir/usr/lib64/
mv lib/Linux63_64/Lua/* $installdir/usr/lib64/
install -m00644 include/* $installdir/usr/include/tecgraf/im/