2022-12-29 18:07:43 +00:00
name : iup
version : 3.30
release : 1
source :
- https://sourceforge.net/projects/iup/files/3.30/Docs%20and%20Sources/iup-3.30_Sources.zip : 656c6dd8edcfb4077f3cc43242e687212b9a70ddf10d509856316c3f87be1313
2023-02-04 10:45:22 +00:00
homepage : https://iup.sourceforge.net/
license : MIT
component : multimedia.graphics
summary : A multi-platform toolkit for building graphical user interfaces
2022-12-29 18:07:43 +00:00
description : |
2023-02-04 10:45:22 +00:00
IUP is a multi-platform toolkit for building graphical user interfaces. It offers a simple API in three basic languages : C, Lua and LED. IUP's purpose is to allow a program source code to be compiled in different systems without any modification.
2022-12-29 18:07:43 +00:00
builddeps :
2023-02-04 10:45:22 +00:00
- pkgconfig(ftgl)
- pkgconfig(glu)
- pkgconfig(lua)
- pkgconfig(webkit2gtk-4.0)
2022-12-29 18:07:43 +00:00
- lsb-release
- libim-devel
2023-05-11 06:53:16 +00:00
- libim-lua
2022-12-29 18:07:43 +00:00
- libcd-devel
2023-05-11 06:53:16 +00:00
- libcd-lua
2022-12-29 18:07:43 +00:00
patterns :
- lua :
- /usr/bin/iuplua*
2023-08-01 18:34:01 +00:00
- /usr/lib64/libiuplua*.so.*
- /usr/share/applications/iuplua*
- /usr/share/icons/iuplua*
2022-12-29 18:07:43 +00:00
environment :
export USE_PKGCONFIG=Yes
2023-05-11 06:23:06 +00:00
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
export IM_LIB=/usr/lib
export IM_INC=/usr/include
export CD_LIB=/usr/lib
export CD_INC=/usr/include
export FTGL_LIB=/usr/lib
export FTGL_INC=/usr/include
setup : |
2023-05-11 14:57:40 +00:00
%patch -p1 < $pkgfiles/0001-Disabling-static-linux6-support.patch
2023-08-01 18:34:01 +00:00
%patch -p1 < $pkgfiles/0002-fix-lua-sfx.patch
%patch -p1 < $pkgfiles/0003-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/{bin,lib64/pkgconfig,include,share/{icons,applications}}
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
install -m00755 bin/Linux63_64/{iupview,iupvled,ledc} $installdir/usr/bin
install -m00755 bin/Linux63_64/Lua/{iuplua,iupluascripter} $installdir/usr/bin
install -m00644 $pkgfiles/*.desktop $installdir/usr/share/applications
install -m00644 $pkgfiles/tecgraf-logo.png $installdir/usr/share/icons/iup.png
install -m00644 $pkgfiles/tecgraf-logo.png $installdir/usr/share/icons/iuplua.png