From 673e5d1436650bbad45a48119bba0a6511a9037c Mon Sep 17 00:00:00 2001 From: Alexander Date: Thu, 29 Dec 2022 21:07:43 +0300 Subject: [PATCH] new stack iup --- README.md | 18 ++ iup/Makefile | 1 + .../without-lua-prefix-with-linux6.patch | 305 ++++++++++++++++++ iup/package.yml | 54 ++++ libcd/Makefile | 1 + .../without-lua-prefix-with-linux6.patch | 151 +++++++++ libcd/package.yml | 44 +++ libftgl/Makefile | 1 + .../without-lua-prefix-with-linux6.patch | 60 ++++ libftgl/package.yml | 37 +++ libim/Makefile | 1 + .../without-lua-prefix-with-linux6.patch | 151 +++++++++ libim/package.yml | 40 +++ libpdflib/Makefile | 1 + libpdflib/package.yml | 22 ++ lua/Makefile | 1 + ...e-shared-libraries-and-proper-prefix.patch | 82 +++++ lua/files/lua-5.3.pc | 20 ++ lua/package.yml | 23 ++ 19 files changed, 1013 insertions(+) create mode 100644 README.md create mode 100644 iup/Makefile create mode 100644 iup/files/without-lua-prefix-with-linux6.patch create mode 100644 iup/package.yml create mode 100644 libcd/Makefile create mode 100644 libcd/files/without-lua-prefix-with-linux6.patch create mode 100644 libcd/package.yml create mode 100644 libftgl/Makefile create mode 100644 libftgl/files/without-lua-prefix-with-linux6.patch create mode 100644 libftgl/package.yml create mode 100644 libim/Makefile create mode 100644 libim/files/without-lua-prefix-with-linux6.patch create mode 100644 libim/package.yml create mode 100644 libpdflib/Makefile create mode 100644 libpdflib/package.yml create mode 100644 lua/Makefile create mode 100644 lua/files/0001-Use-shared-libraries-and-proper-prefix.patch create mode 100644 lua/files/lua-5.3.pc create mode 100644 lua/package.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..ae58bfa --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# IUP stack + +- [Building Lua, IM, CD and IUP in Linux](https://www.tecgraf.puc-rio.br/iup/en/building.html) + +Set of packages: +- [IM](libim/) 3.15 +- [CD](libcd/) 5.14 +- [FTGL](libftgl/) 2.1.5 +- [PDFlib](libim/) 7.0.5 +- [IUP](iup/) 3.30 +- [Lua](lua/) 5.3.4 + +Packages have both static and dynamic versions of libraries. + +- [Lua](https://dev.getsol.us/source/lua/) - compiled with static libraries +- [FTGL](https://dev.getsol.us/source/ftgl/) - has some improvements in the version 2.1.5 + +In all packages, the `Lua` library version prefix has been removed using patches. At the same time, the library version **5.3** is set as a variable. diff --git a/iup/Makefile b/iup/Makefile new file mode 100644 index 0000000..0a42375 --- /dev/null +++ b/iup/Makefile @@ -0,0 +1 @@ +include ../Makefile.common diff --git a/iup/files/without-lua-prefix-with-linux6.patch b/iup/files/without-lua-prefix-with-linux6.patch new file mode 100644 index 0000000..6ac18a7 --- /dev/null +++ b/iup/files/without-lua-prefix-with-linux6.patch @@ -0,0 +1,305 @@ +diff --git a/srclua5/config.mak b/srclua5/config.mak +index 77a8920..2118290 100755 +--- a/srclua5/config.mak ++++ b/srclua5/config.mak +@@ -38,7 +38,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iup_mglplot.mak b/srclua5/iup_mglplot.mak +index 3c3407c..422eb8d 100755 +--- a/srclua5/iup_mglplot.mak ++++ b/srclua5/iup_mglplot.mak +@@ -42,7 +42,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iup_plot.mak b/srclua5/iup_plot.mak +index b2af19d..0ba78fb 100755 +--- a/srclua5/iup_plot.mak ++++ b/srclua5/iup_plot.mak +@@ -43,7 +43,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iup_scintilla.mak b/srclua5/iup_scintilla.mak +index 502bf59..08de8a1 100755 +--- a/srclua5/iup_scintilla.mak ++++ b/srclua5/iup_scintilla.mak +@@ -42,7 +42,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iupcd.mak b/srclua5/iupcd.mak +index 429cd3e..1ee8c72 100755 +--- a/srclua5/iupcd.mak ++++ b/srclua5/iupcd.mak +@@ -44,7 +44,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iupcontrols.mak b/srclua5/iupcontrols.mak +index cb00b95..492906f 100755 +--- a/srclua5/iupcontrols.mak ++++ b/srclua5/iupcontrols.mak +@@ -43,7 +43,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iupfiledlg.mak b/srclua5/iupfiledlg.mak +index 6c6cf98..64ca8b3 100755 +--- a/srclua5/iupfiledlg.mak ++++ b/srclua5/iupfiledlg.mak +@@ -40,7 +40,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iupgl.mak b/srclua5/iupgl.mak +index f633c1c..e1ae256 100755 +--- a/srclua5/iupgl.mak ++++ b/srclua5/iupgl.mak +@@ -41,7 +41,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iupglcontrols.mak b/srclua5/iupglcontrols.mak +index e6469f9..570d924 100755 +--- a/srclua5/iupglcontrols.mak ++++ b/srclua5/iupglcontrols.mak +@@ -42,7 +42,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iupim.mak b/srclua5/iupim.mak +index d2eb2d4..c3fc431 100755 +--- a/srclua5/iupim.mak ++++ b/srclua5/iupim.mak +@@ -42,7 +42,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iupimglib.mak b/srclua5/iupimglib.mak +index fb56ad6..08afb97 100755 +--- a/srclua5/iupimglib.mak ++++ b/srclua5/iupimglib.mak +@@ -40,7 +40,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iupluascripterdlg.mak b/srclua5/iupluascripterdlg.mak +index 56ae104..9132831 100755 +--- a/srclua5/iupluascripterdlg.mak ++++ b/srclua5/iupluascripterdlg.mak +@@ -42,7 +42,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iupole.mak b/srclua5/iupole.mak +index 0b625b6..75dd416 100755 +--- a/srclua5/iupole.mak ++++ b/srclua5/iupole.mak +@@ -41,7 +41,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iuptuio.mak b/srclua5/iuptuio.mak +index 853430c..09ecae1 100755 +--- a/srclua5/iuptuio.mak ++++ b/srclua5/iuptuio.mak +@@ -42,7 +42,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srclua5/iupweb.mak b/srclua5/iupweb.mak +index 9d7dff2..afe171a 100755 +--- a/srclua5/iupweb.mak ++++ b/srclua5/iupweb.mak +@@ -42,7 +42,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/srcluaconsole/config.mak b/srcluaconsole/config.mak +index 12baea3..8b02917 100755 +--- a/srcluaconsole/config.mak ++++ b/srcluaconsole/config.mak +@@ -41,7 +41,7 @@ ifdef USE_LUA54 + endif + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + ifneq ($(findstring SunOS, $(TEC_UNAME)), ) + ifneq ($(findstring x86, $(TEC_UNAME)), ) + FLAGS = -std=gnu99 +diff --git a/srcluascripter/config.mak b/srcluascripter/config.mak +index 76300c6..a201098 100755 +--- a/srcluascripter/config.mak ++++ b/srcluascripter/config.mak +@@ -38,7 +38,7 @@ ifdef USE_LUA54 + endif + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + ifneq ($(findstring SunOS, $(TEC_UNAME)), ) + ifneq ($(findstring x86, $(TEC_UNAME)), ) + FLAGS = -std=gnu99 +diff --git a/srcvled/config.mak b/srcvled/config.mak +index d072320..9daf3e8 100755 +--- a/srcvled/config.mak ++++ b/srcvled/config.mak +@@ -129,4 +129,6 @@ ifneq ($(findstring MacOS, $(TEC_UNAME)), ) + LIBS += fontconfig + endif + ++LIBS += gmodule-2.0 ++ + INCLUDES = ../src +diff --git a/srcweb/config.mak b/srcweb/config.mak +index c528f2c..0d321a4 100755 +--- a/srcweb/config.mak ++++ b/srcweb/config.mak +@@ -35,7 +35,7 @@ else + LINK_WEBKIT = Yes + + ifdef USE_GTK3 +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + DEFINES += USE_WEBKIT2 + STDINCS += $(GTK)/include/webkitgtk-4.0 + else +diff --git a/tecmake.mak b/tecmake.mak +index 48991a4..42d7131 100755 +--- a/tecmake.mak ++++ b/tecmake.mak +@@ -297,7 +297,7 @@ endif + + ifdef GTK_DEFAULT + ifndef USE_GTK2 +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + USE_GTK3 = Yes + endif + ifneq ($(findstring Linux4, $(TEC_UNAME)), ) +@@ -469,7 +469,7 @@ ifdef USE_LUA52 + LIBLUA_SFX := 52 + endif + ifdef USE_LUA53 +- LIBLUA_SFX := 53 ++# LIBLUA_SFX := 53 + endif + ifdef USE_LUA54 + LIBLUA_SFX := 54 +@@ -877,8 +877,8 @@ ifdef USE_LUA52 + endif + + ifdef USE_LUA53 +- LUA_SFX := 53 +- LIBLUA_SFX := 53 ++# LUA_SFX := 53 ++# LIBLUA_SFX := 53 + override USE_LUA = Yes + LUA := $(LUA53) + NO_LUALIB := Yes +@@ -1207,7 +1207,7 @@ ifdef USE_CD + ifneq ($(findstring Linux4, $(TEC_UNAME)), ) + LIBS += fontconfig + endif +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + LIBS += fontconfig + endif + ifneq ($(findstring cygw, $(TEC_UNAME)), ) +@@ -1245,7 +1245,7 @@ ifdef USE_IM + endif + + ifdef LINK_WEBKIT +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + LIBS += webkit2gtk-4.0 gio-2.0 + else + ifneq ($(findstring Linux4, $(TEC_UNAME)), ) +@@ -1476,7 +1476,7 @@ ifdef USE_GTK + ifneq ($(findstring FreeBSD, $(TEC_UNAME)), ) + STDINCS += /lib/X11R6/include/gtk-2.0 + endif +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + STDINCS += /usr/include/harfbuzz + endif + endif diff --git a/iup/package.yml b/iup/package.yml new file mode 100644 index 0000000..00aa7d6 --- /dev/null +++ b/iup/package.yml @@ -0,0 +1,54 @@ +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 +license : GPL-2.0-or-later # CHECK ME +component : PLEASE FILL ME IN +summary : PLEASE FILL ME IN +description: | + PLEASE FILL ME IN +builddeps : + - lsb-release + - libim-devel + - libcd-devel + - pkgconfig(lua) + - pkgconfig(gtk+-3.0) + - libglu-devel + - ftgl-devel + - libwebkit-gtk-devel +patterns : + - lua : + - /usr/bin/iuplua* + - /usr/lib64/libiuplua*.so + - /usr/lib64/*.so + - /usr/bin/{iupvled,iupview,ledc} + - devel : + - /usr/include + - /usr/lib64/*.a +environment: + export USE_PKGCONFIG=Yes + export USE_LUA53=Yes + 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 : | + %patch -p1 < $pkgfiles/without-lua-prefix-with-linux6.patch +build : | + %make -j1 +install : | + install -dm00755 $installdir/usr/lib64 + install -Dm00755 lib/Linux60_64/{*.so,*.a} $installdir/usr/lib64/ + install -Dm00755 lib/Linux60_64/Lua/{*.so,*.a} $installdir/usr/lib64/ + install -m00755 lib/Linux60_64/*.so $installdir/usr/lib64/ + install -dm00755 $installdir/usr/bin + install -m00755 bin/Linux60_64/{iupview,iupvled,ledc} $installdir/usr/bin + install -m00755 bin/Linux60_64/Lua/* $installdir/usr/bin + install -dm00755 $installdir/usr/include + install -m00755 include/* $installdir/usr/include diff --git a/libcd/Makefile b/libcd/Makefile new file mode 100644 index 0000000..0a42375 --- /dev/null +++ b/libcd/Makefile @@ -0,0 +1 @@ +include ../Makefile.common diff --git a/libcd/files/without-lua-prefix-with-linux6.patch b/libcd/files/without-lua-prefix-with-linux6.patch new file mode 100644 index 0000000..f5a645d --- /dev/null +++ b/libcd/files/without-lua-prefix-with-linux6.patch @@ -0,0 +1,151 @@ +diff --git a/src/cdlua5.mak b/src/cdlua5.mak +index e6631ef..d0558c8 100755 +--- a/src/cdlua5.mak ++++ b/src/cdlua5.mak +@@ -31,7 +31,7 @@ ifdef USE_LUA54 + LIBNAME := $(LIBNAME)54 + else + ifdef USE_LUA53 +- LIBNAME := $(LIBNAME)53 ++# LIBNAME := $(LIBNAME)53 + else + ifdef USE_LUA52 + LIBNAME := $(LIBNAME)52 +diff --git a/src/cdluacairo5.mak b/src/cdluacairo5.mak +index dea11d2..bb842db 100755 +--- a/src/cdluacairo5.mak ++++ b/src/cdluacairo5.mak +@@ -33,7 +33,7 @@ ifdef USE_LUA54 + LIBNAME := $(LIBNAME)54 + else + ifdef USE_LUA53 +- LIBNAME := $(LIBNAME)53 ++# LIBNAME := $(LIBNAME)53 + else + ifdef USE_LUA52 + LIBNAME := $(LIBNAME)52 +diff --git a/src/cdluacontextplus5.mak b/src/cdluacontextplus5.mak +index bdb05d8..5113e84 100755 +--- a/src/cdluacontextplus5.mak ++++ b/src/cdluacontextplus5.mak +@@ -43,7 +43,7 @@ ifdef USE_LUA54 + LIBNAME := $(LIBNAME)54 + else + ifdef USE_LUA53 +- LIBNAME := $(LIBNAME)53 ++# LIBNAME := $(LIBNAME)53 + else + ifdef USE_LUA52 + LIBNAME := $(LIBNAME)52 +diff --git a/src/cdluadirect2d5.mak b/src/cdluadirect2d5.mak +index 244a52e..85f2f1f 100755 +--- a/src/cdluadirect2d5.mak ++++ b/src/cdluadirect2d5.mak +@@ -33,7 +33,7 @@ ifdef USE_LUA54 + LIBNAME := $(LIBNAME)54 + else + ifdef USE_LUA53 +- LIBNAME := $(LIBNAME)53 ++# LIBNAME := $(LIBNAME)53 + else + ifdef USE_LUA52 + LIBNAME := $(LIBNAME)52 +diff --git a/src/cdluagl5.mak b/src/cdluagl5.mak +index 61ed576..21ef0b7 100755 +--- a/src/cdluagl5.mak ++++ b/src/cdluagl5.mak +@@ -33,7 +33,7 @@ ifdef USE_LUA54 + LIBNAME := $(LIBNAME)54 + else + ifdef USE_LUA53 +- LIBNAME := $(LIBNAME)53 ++# LIBNAME := $(LIBNAME)53 + else + ifdef USE_LUA52 + LIBNAME := $(LIBNAME)52 +diff --git a/src/cdluaim5.mak b/src/cdluaim5.mak +index 4858162..07c72a9 100755 +--- a/src/cdluaim5.mak ++++ b/src/cdluaim5.mak +@@ -32,7 +32,7 @@ ifdef USE_LUA54 + LIBNAME := $(LIBNAME)54 + else + ifdef USE_LUA53 +- LIBNAME := $(LIBNAME)53 ++# LIBNAME := $(LIBNAME)53 + else + ifdef USE_LUA52 + LIBNAME := $(LIBNAME)52 +diff --git a/src/cdluapdf5.mak b/src/cdluapdf5.mak +index fae16fb..8e1cd50 100755 +--- a/src/cdluapdf5.mak ++++ b/src/cdluapdf5.mak +@@ -33,7 +33,7 @@ ifdef USE_LUA54 + LIBNAME := $(LIBNAME)54 + else + ifdef USE_LUA53 +- LIBNAME := $(LIBNAME)53 ++# LIBNAME := $(LIBNAME)53 + else + ifdef USE_LUA52 + LIBNAME := $(LIBNAME)52 +diff --git a/tecmake.mak b/tecmake.mak +index 48991a4..42d7131 100755 +--- a/tecmake.mak ++++ b/tecmake.mak +@@ -297,7 +297,7 @@ endif + + ifdef GTK_DEFAULT + ifndef USE_GTK2 +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + USE_GTK3 = Yes + endif + ifneq ($(findstring Linux4, $(TEC_UNAME)), ) +@@ -469,7 +469,7 @@ ifdef USE_LUA52 + LIBLUA_SFX := 52 + endif + ifdef USE_LUA53 +- LIBLUA_SFX := 53 ++# LIBLUA_SFX := 53 + endif + ifdef USE_LUA54 + LIBLUA_SFX := 54 +@@ -877,8 +877,8 @@ ifdef USE_LUA52 + endif + + ifdef USE_LUA53 +- LUA_SFX := 53 +- LIBLUA_SFX := 53 ++# LUA_SFX := 53 ++# LIBLUA_SFX := 53 + override USE_LUA = Yes + LUA := $(LUA53) + NO_LUALIB := Yes +@@ -1207,7 +1207,7 @@ ifdef USE_CD + ifneq ($(findstring Linux4, $(TEC_UNAME)), ) + LIBS += fontconfig + endif +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + LIBS += fontconfig + endif + ifneq ($(findstring cygw, $(TEC_UNAME)), ) +@@ -1245,7 +1245,7 @@ ifdef USE_IM + endif + + ifdef LINK_WEBKIT +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + LIBS += webkit2gtk-4.0 gio-2.0 + else + ifneq ($(findstring Linux4, $(TEC_UNAME)), ) +@@ -1476,7 +1476,7 @@ ifdef USE_GTK + ifneq ($(findstring FreeBSD, $(TEC_UNAME)), ) + STDINCS += /lib/X11R6/include/gtk-2.0 + endif +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + STDINCS += /usr/include/harfbuzz + endif + endif diff --git a/libcd/package.yml b/libcd/package.yml new file mode 100644 index 0000000..d424a02 --- /dev/null +++ b/libcd/package.yml @@ -0,0 +1,44 @@ +name : libcd +version : 5 +release : 1 +source : + - https://sourceforge.net/projects/canvasdraw/files/5.14/Docs%20and%20Sources/cd-5.14_Sources.zip : 416190b4fac1ad1949e6e3ec4976ce6cdd68a4e1622a1dc891afb38593c0c982 +license : GPL-2.0-or-later # CHECK ME +component : PLEASE FILL ME IN +summary : PLEASE FILL ME IN +description: | + PLEASE FILL ME IN +builddeps : + - lsb-release + - pkgconfig(fontconfig) + - pkgconfig(gtk+-3.0) + - ftgl-devel + - pkgconfig(lua) + - libglu-devel + - libim-devel + - libpdflib-devel +patterns : + - lua : + - /usr/lib64/libcdlua*.so + - /usr/lib64/*.so + - devel : + - /usr/include + - /usr/lib64/libcd*.a +environment: + export USE_PKGCONFIG=Yes + export USE_LUA53=Yes + 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/without-lua-prefix-with-linux6.patch +build : | + %make -j1 +install : | + install -dm00755 $installdir/usr/lib64 + install -Dm00755 lib/Linux60_64/{*.so,*.a} $installdir/usr/lib64/ + install -Dm00755 lib/Linux60_64/Lua/{*.so,*.a} $installdir/usr/lib64/ + install -dm00755 $installdir/usr/include + install -m00755 include/* $installdir/usr/include diff --git a/libftgl/Makefile b/libftgl/Makefile new file mode 100644 index 0000000..0a42375 --- /dev/null +++ b/libftgl/Makefile @@ -0,0 +1 @@ +include ../Makefile.common diff --git a/libftgl/files/without-lua-prefix-with-linux6.patch b/libftgl/files/without-lua-prefix-with-linux6.patch new file mode 100644 index 0000000..1d2f9be --- /dev/null +++ b/libftgl/files/without-lua-prefix-with-linux6.patch @@ -0,0 +1,60 @@ +diff --git a/tecmake.mak b/tecmake.mak +index 48991a4..42d7131 100755 +--- a/tecmake.mak ++++ b/tecmake.mak +@@ -297,7 +297,7 @@ endif + + ifdef GTK_DEFAULT + ifndef USE_GTK2 +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + USE_GTK3 = Yes + endif + ifneq ($(findstring Linux4, $(TEC_UNAME)), ) +@@ -469,7 +469,7 @@ ifdef USE_LUA52 + LIBLUA_SFX := 52 + endif + ifdef USE_LUA53 +- LIBLUA_SFX := 53 ++# LIBLUA_SFX := 53 + endif + ifdef USE_LUA54 + LIBLUA_SFX := 54 +@@ -877,8 +877,8 @@ ifdef USE_LUA52 + endif + + ifdef USE_LUA53 +- LUA_SFX := 53 +- LIBLUA_SFX := 53 ++# LUA_SFX := 53 ++# LIBLUA_SFX := 53 + override USE_LUA = Yes + LUA := $(LUA53) + NO_LUALIB := Yes +@@ -1207,7 +1207,7 @@ ifdef USE_CD + ifneq ($(findstring Linux4, $(TEC_UNAME)), ) + LIBS += fontconfig + endif +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + LIBS += fontconfig + endif + ifneq ($(findstring cygw, $(TEC_UNAME)), ) +@@ -1245,7 +1245,7 @@ ifdef USE_IM + endif + + ifdef LINK_WEBKIT +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + LIBS += webkit2gtk-4.0 gio-2.0 + else + ifneq ($(findstring Linux4, $(TEC_UNAME)), ) +@@ -1476,7 +1476,7 @@ ifdef USE_GTK + ifneq ($(findstring FreeBSD, $(TEC_UNAME)), ) + STDINCS += /lib/X11R6/include/gtk-2.0 + endif +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + STDINCS += /usr/include/harfbuzz + endif + endif diff --git a/libftgl/package.yml b/libftgl/package.yml new file mode 100644 index 0000000..f560765 --- /dev/null +++ b/libftgl/package.yml @@ -0,0 +1,37 @@ +name : ftgl +version : 2.1.5 +release : 1 +source : + - https://sourceforge.net/projects/iup/files/3.30/Docs%20and%20Sources/ftgl-2.1.5_Sources.tar.gz : c9ca938cf856bc88be3d45107ad0c3a84ee575eda3cfebfded6e18230bd8bf9e +license : GPL-2.0-or-later # CHECK ME +component : PLEASE FILL ME IN +summary : PLEASE FILL ME IN +description: | + PLEASE FILL ME IN +builddeps : + - lsb-release + - pkgconfig(cppunit) + - pkgconfig(freetype2) + - pkgconfig(gl) + - pkgconfig(glu) + - pkgconfig(lua) +patterns : + - /usr/lib64/*.so + - devel : + - /usr/include + - /usr/lib64/*.a +environment: + export USE_PKGCONFIG=Yes + export USE_LUA53=Yes + export LUA_INC=/usr/include + export LUA_LIB=/usr/lib + export LUA_BIN=/usr/bin/lua +setup : | + %patch -p1 < $pkgfiles/without-lua-prefix-with-linux6.patch +build : | + %make -j1 +install : | + install -dm00755 $installdir/usr/lib64 + install -Dm00755 lib/Linux60_64/{*.so,*.a} $installdir/usr/lib64/ + install -dm00755 $installdir/usr/include/FTGL + install -Dm00755 include/FTGL/* $installdir/usr/include/FTGL diff --git a/libim/Makefile b/libim/Makefile new file mode 100644 index 0000000..0a42375 --- /dev/null +++ b/libim/Makefile @@ -0,0 +1 @@ +include ../Makefile.common diff --git a/libim/files/without-lua-prefix-with-linux6.patch b/libim/files/without-lua-prefix-with-linux6.patch new file mode 100644 index 0000000..a86aa4d --- /dev/null +++ b/libim/files/without-lua-prefix-with-linux6.patch @@ -0,0 +1,151 @@ +diff --git a/src/imlua5.mak b/src/imlua5.mak +index f137b89..58809dc 100755 +--- a/src/imlua5.mak ++++ b/src/imlua5.mak +@@ -46,7 +46,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/src/imlua_avi5.mak b/src/imlua_avi5.mak +index ff7cb22..c46d574 100755 +--- a/src/imlua_avi5.mak ++++ b/src/imlua_avi5.mak +@@ -36,7 +36,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/src/imlua_capture5.mak b/src/imlua_capture5.mak +index 5e11cb4..faab2dc 100755 +--- a/src/imlua_capture5.mak ++++ b/src/imlua_capture5.mak +@@ -36,7 +36,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/src/imlua_fftw35.mak b/src/imlua_fftw35.mak +index 5c46764..7c39ab8 100755 +--- a/src/imlua_fftw35.mak ++++ b/src/imlua_fftw35.mak +@@ -46,7 +46,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/src/imlua_jp25.mak b/src/imlua_jp25.mak +index d811c32..dd26799 100755 +--- a/src/imlua_jp25.mak ++++ b/src/imlua_jp25.mak +@@ -36,7 +36,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/src/imlua_process5.mak b/src/imlua_process5.mak +index 5ec9ec7..61af09f 100755 +--- a/src/imlua_process5.mak ++++ b/src/imlua_process5.mak +@@ -47,7 +47,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/src/imlua_wmv5.mak b/src/imlua_wmv5.mak +index 38c3572..24241a7 100755 +--- a/src/imlua_wmv5.mak ++++ b/src/imlua_wmv5.mak +@@ -36,7 +36,7 @@ ifdef USE_LUA54 + LUASFX = 54 + else + ifdef USE_LUA53 +- LUASFX = 53 ++# LUASFX = 53 + else + ifdef USE_LUA52 + LUASFX = 52 +diff --git a/tecmake.mak b/tecmake.mak +index 48991a4..42d7131 100755 +--- a/tecmake.mak ++++ b/tecmake.mak +@@ -297,7 +297,7 @@ endif + + ifdef GTK_DEFAULT + ifndef USE_GTK2 +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + USE_GTK3 = Yes + endif + ifneq ($(findstring Linux4, $(TEC_UNAME)), ) +@@ -469,7 +469,7 @@ ifdef USE_LUA52 + LIBLUA_SFX := 52 + endif + ifdef USE_LUA53 +- LIBLUA_SFX := 53 ++# LIBLUA_SFX := 53 + endif + ifdef USE_LUA54 + LIBLUA_SFX := 54 +@@ -877,8 +877,8 @@ ifdef USE_LUA52 + endif + + ifdef USE_LUA53 +- LUA_SFX := 53 +- LIBLUA_SFX := 53 ++# LUA_SFX := 53 ++# LIBLUA_SFX := 53 + override USE_LUA = Yes + LUA := $(LUA53) + NO_LUALIB := Yes +@@ -1207,7 +1207,7 @@ ifdef USE_CD + ifneq ($(findstring Linux4, $(TEC_UNAME)), ) + LIBS += fontconfig + endif +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + LIBS += fontconfig + endif + ifneq ($(findstring cygw, $(TEC_UNAME)), ) +@@ -1245,7 +1245,7 @@ ifdef USE_IM + endif + + ifdef LINK_WEBKIT +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + LIBS += webkit2gtk-4.0 gio-2.0 + else + ifneq ($(findstring Linux4, $(TEC_UNAME)), ) +@@ -1476,7 +1476,7 @@ ifdef USE_GTK + ifneq ($(findstring FreeBSD, $(TEC_UNAME)), ) + STDINCS += /lib/X11R6/include/gtk-2.0 + endif +- ifneq ($(findstring Linux5, $(TEC_UNAME)), ) ++ ifneq ($(findstring Linux5, $(subst Linux6,Linux5,$(TEC_UNAME))), ) + STDINCS += /usr/include/harfbuzz + endif + endif diff --git a/libim/package.yml b/libim/package.yml new file mode 100644 index 0000000..6dbbecc --- /dev/null +++ b/libim/package.yml @@ -0,0 +1,40 @@ +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 : + - lsb-release + - fftw-devel + - pkgconfig(lua) + - pkgconfig(libpng) +patterns : + - lua : + - /usr/lib64/libimlua*.so + - /usr/lib64/*.so + - devel : + - /usr/include + - /usr/lib64/libim*.a +environment: + export USE_PKGCONFIG=Yes + export USE_LUA53=Yes + export LUA_INC=/usr/include + export LUA_LIB=/usr/lib + export LUA_BIN=/usr/bin/lua +setup : | + %patch -p1 < $pkgfiles/without-lua-prefix-with-linux6.patch +build : | + %make -j1 +install : | + install -dm00755 $installdir/usr/lib64 + install -Dm00755 lib/Linux60_64/{*.so,*.a} $installdir/usr/lib64/ + install -Dm00755 lib/Linux60_64/Lua/{*.so,*.a} $installdir/usr/lib64/ + install -dm00755 $installdir/usr/include + install -m00755 include/* $installdir/usr/include diff --git a/libpdflib/Makefile b/libpdflib/Makefile new file mode 100644 index 0000000..0a42375 --- /dev/null +++ b/libpdflib/Makefile @@ -0,0 +1 @@ +include ../Makefile.common diff --git a/libpdflib/package.yml b/libpdflib/package.yml new file mode 100644 index 0000000..7faa76c --- /dev/null +++ b/libpdflib/package.yml @@ -0,0 +1,22 @@ +name : libpdflib +version : 7.0.5 +release : 1 +source : + - https://sourceforge.net/projects/canvasdraw/files/5.14/Docs%20and%20Sources/pdflib_lite-7.0.5_Sources.tar.gz : cecca665d5c17e410dc3a1f29bd26883b7905ceab171b1b2a8f5f57a31b51ba5 +license : GPL-2.0-or-later # CHECK ME +component : PLEASE FILL ME IN +summary : PLEASE FILL ME IN +description: | + PLEASE FILL ME IN +builddeps : + - lsb-release +patterns : + - /usr/lib64/*.so + - devel : + - /usr/include +build : | + %make +install : | + install -Dm00755 lib/Linux60_64/libpdflib.so $installdir/usr/lib64/libpdflib.so + install -dm00755 $installdir/usr/include + install -m00755 include/* $installdir/usr/include/ diff --git a/lua/Makefile b/lua/Makefile new file mode 100644 index 0000000..0a42375 --- /dev/null +++ b/lua/Makefile @@ -0,0 +1 @@ +include ../Makefile.common diff --git a/lua/files/0001-Use-shared-libraries-and-proper-prefix.patch b/lua/files/0001-Use-shared-libraries-and-proper-prefix.patch new file mode 100644 index 0000000..896affb --- /dev/null +++ b/lua/files/0001-Use-shared-libraries-and-proper-prefix.patch @@ -0,0 +1,82 @@ +From e137059046d0b9367465ce6088dd2fcbc185818e Mon Sep 17 00:00:00 2001 +From: Joshua Strobl +Date: Sat, 16 Sep 2017 19:39:28 +0300 +Subject: [PATCH 1/1] Use shared libraries and proper prefix. + +--- + Makefile | 2 +- + src/Makefile | 10 ++++++++-- + src/luaconf.h | 2 +- + 3 files changed, 10 insertions(+), 4 deletions(-) + +diff --git a/Makefile b/Makefile +index 119110d..19c9573 100644 +--- a/Makefile ++++ b/Makefile +@@ -52,7 +52,7 @@ R= $V.4 + all: $(PLAT) + + $(PLATS) clean: +- cd src && $(MAKE) $@ ++ cd src && $(MAKE) $@ V=$(V) R=$(R) + + test: dummy + src/lua -v +diff --git a/src/Makefile b/src/Makefile +index d71c75c..35ea2f5 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -7,7 +7,7 @@ + PLAT= none + + CC= gcc -std=gnu99 +-CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS) ++CFLAGS= -fPIC -O2 -Wall -Wextra -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1 $(SYSCFLAGS) $(MYCFLAGS) + LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) + LIBS= -lm $(SYSLIBS) $(MYLIBS) + +@@ -29,6 +29,7 @@ MYOBJS= + PLATS= aix bsd c89 freebsd generic linux macosx mingw posix solaris + + LUA_A= liblua.a ++LUA_SO= liblua.so + CORE_O= lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o \ + lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o \ + ltm.o lundump.o lvm.o lzio.o +@@ -43,7 +44,7 @@ LUAC_T= luac + LUAC_O= luac.o + + ALL_O= $(BASE_O) $(LUA_O) $(LUAC_O) +-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) ++ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO) + ALL_A= $(LUA_A) + + # Targets start here. +@@ -59,6 +60,11 @@ $(LUA_A): $(BASE_O) + $(AR) $@ $(BASE_O) + $(RANLIB) $@ + ++$(LUA_SO): $(CORE_O) $(LIB_O) ++ $(CC) -shared -ldl -Wl,-soname,$(LUA_SO).$(V) -o $@.$(R) $? -lm $(MYLDFLAGS) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO).$(V) ++ ln -sf $(LUA_SO).$(R) $(LUA_SO) ++ + $(LUA_T): $(LUA_O) $(LUA_A) + $(CC) -o $@ $(LDFLAGS) $(LUA_O) $(LUA_A) $(LIBS) + +diff --git a/src/luaconf.h b/src/luaconf.h +index f37bea0..e963d48 100644 +--- a/src/luaconf.h ++++ b/src/luaconf.h +@@ -200,7 +200,7 @@ + + #else /* }{ */ + +-#define LUA_ROOT "/usr/local/" ++#define LUA_ROOT "/usr/" + #define LUA_LDIR LUA_ROOT "share/lua/" LUA_VDIR "/" + #define LUA_CDIR LUA_ROOT "lib/lua/" LUA_VDIR "/" + #define LUA_PATH_DEFAULT \ +-- +2.14.1 + diff --git a/lua/files/lua-5.3.pc b/lua/files/lua-5.3.pc new file mode 100644 index 0000000..db61b11 --- /dev/null +++ b/lua/files/lua-5.3.pc @@ -0,0 +1,20 @@ +V=5.3 +R=5.3.4 + +prefix=/usr +INSTALL_BIN=${prefix}/bin +INSTALL_INC=${prefix}/include +INSTALL_LIB=${prefix}/lib +INSTALL_MAN=${prefix}/man/man1 +INSTALL_LMOD=${prefix}/share/lua/${V} +INSTALL_CMOD=${prefix}/lib/lua/${V} +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: Lua +Description: An Extensible Extension Language +Version: ${R} +Requires: +Libs: -L${libdir} -llua -lm +Cflags: -I${includedir} diff --git a/lua/package.yml b/lua/package.yml new file mode 100644 index 0000000..bf2d453 --- /dev/null +++ b/lua/package.yml @@ -0,0 +1,23 @@ +name : lua +version : 5.3.4 +release : 6 +source : + - https://www.lua.org/ftp/lua-5.3.4.tar.gz : f681aa518233bc407e23acf0f5887c884f17436f000d453b2491a9f11a52400c +license : MIT +component : programming +summary : Lightweight programming language +description: | + Lua is a powerful light-weight programming language designed for extending applications. It is also frequently used as a general-purpose, stand-alone language. Lua is implemented as a small library of C functions, written in ANSI C, and compiles unmodified in all known platforms. The implementation goals are simplicity, efficiency, portability, and low embedding cost. The result is a fast language engine with small footprint, making it ideal in embedded systems too. +patterns : + - devel : [/usr/bin] +setup : | + unset LD_AS_NEEDED + %patch -p1 < $pkgfiles/0001-Use-shared-libraries-and-proper-prefix.patch +build : | + unset LD_AS_NEEDED + %make linux +install : | + unset LD_AS_NEEDED + %make_install INSTALL_TOP=$installdir/usr TO_LIB="liblua.a liblua.so liblua.so.5.3 liblua.so.${version}" INSTALL_DATA="cp -d" INSTALL_MAN=$installdir/usr/share/man/man1 + install -Dm00644 $pkgfiles/lua-5.3.pc $installdir/usr/lib/pkgconfig/lua-5.3.pc + ln -s lua-5.3.pc $installdir/usr/lib/pkgconfig/lua.pc