name : libcd version : "5.14" release : 1 source : - https://sourceforge.net/projects/canvasdraw/files/5.14/Docs%20and%20Sources/cd-5.14_Sources.zip : 416190b4fac1ad1949e6e3ec4976ce6cdd68a4e1622a1dc891afb38593c0c982 homepage : https://www.tecgraf.puc-rio.br/cd/ license : MIT component : multimedia.graphics summary : Canvas Draw - 2D vector graphics library description: | CD (Canvas Draw) is a platform-independent graphics library. It is implemented in several platforms using native graphics libraries: Microsoft Windows (GDI) and X-Windows (XLIB). The library contains functions to support both vector and image applications, and the visualization surface can be either a window or a more abstract surface, such as Image, Clipboard, Metafile, PS, and so on. builddeps : - pkgconfig(fontconfig) - pkgconfig(ftgl) - pkgconfig(glu) - pkgconfig(gtk+-3.0) - pkgconfig(lua) - libim-devel - libim-lua - libpdflib-devel - lsb-release patterns : - lua : - /usr/lib64/libcdlua*.so - /usr/lib64/*.so - devel : - /usr/include environment: export USE_PKGCONFIG=Yes export USE_LUA_VERSION=53 export LIBLUA_SFX= export LUA_SFX= 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 setup : | %patch -p1 < $pkgfiles/0001-Linux6-support.patch build : | %make -j1 install : | install -dm00755 $installdir/usr/lib64 install -Dm00755 lib/Linux63_64/*.so $installdir/usr/lib64/ install -Dm00755 lib/Linux63_64/Lua53/*.so $installdir/usr/lib64/ install -dm00755 $installdir/usr/include install -m00755 include/* $installdir/usr/include