2022-12-29 18:07:43 +00:00
name : libcd
2023-02-04 10:45:22 +00:00
version : "5.14"
2022-12-29 18:07:43 +00:00
release : 1
source :
- https://sourceforge.net/projects/canvasdraw/files/5.14/Docs%20and%20Sources/cd-5.14_Sources.zip : 416190b4fac1ad1949e6e3ec4976ce6cdd68a4e1622a1dc891afb38593c0c982
2023-02-04 10:45:22 +00:00
homepage : https://www.tecgraf.puc-rio.br/cd/
license : MIT
component : multimedia.graphics
summary : Canvas Draw - 2D vector graphics library
2022-12-29 18:07:43 +00:00
description : |
2023-02-04 10:45:22 +00:00
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.
2022-12-29 18:07:43 +00:00
builddeps :
- pkgconfig(fontconfig)
2023-02-04 10:45:22 +00:00
- pkgconfig(ftgl)
- pkgconfig(glu)
2022-12-29 18:07:43 +00:00
- pkgconfig(gtk+-3.0)
- pkgconfig(lua)
2023-08-01 18:34:01 +00:00
- pdflib-devel
2022-12-29 18:07:43 +00:00
- libim-devel
2023-05-11 06:53:16 +00:00
- libim-lua
2023-02-04 10:45:22 +00:00
- lsb-release
2022-12-29 18:07:43 +00:00
patterns :
- devel :
2023-08-01 18:34:01 +00:00
- /usr/lib64/libcdlua*.so
- lua :
- /usr/lib64/libcdlua*.so.*
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
setup : |
2023-05-11 14:57:40 +00:00
%patch -p1 < $pkgfiles/0001-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/{lib64/pkgconfig,include}
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/